Class ResourceType
java.lang.Object
com.azure.resourcemanager.authorization.models.ResourceType
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceType>
public final class ResourceType
extends Object
implements com.azure.json.JsonSerializable<ResourceType>
Resource Type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: The resource type display name.static ResourceTypefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceType from the JsonReader.name()Get the name property: The resource type name.Get the operations property: The resource type operations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDisplayName(String displayName) Set the displayName property: The resource type display name.Set the name property: The resource type name.withOperations(List<ProviderOperation> operations) Set the operations property: The resource type operations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResourceType
public ResourceType()Creates an instance of ResourceType class.
-
-
Method Details
-
name
Get the name property: The resource type name.- Returns:
- the name value.
-
withName
Set the name property: The resource type name.- Parameters:
name- the name value to set.- Returns:
- the ResourceType object itself.
-
displayName
Get the displayName property: The resource type display name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The resource type display name.- Parameters:
displayName- the displayName value to set.- Returns:
- the ResourceType object itself.
-
operations
Get the operations property: The resource type operations.- Returns:
- the operations value.
-
withOperations
Set the operations property: The resource type operations.- Parameters:
operations- the operations value to set.- Returns:
- the ResourceType object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceType>- Throws:
IOException
-
fromJson
Reads an instance of ResourceType from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceType if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResourceType.
-