Class ResourceTypeAliases
java.lang.Object
com.azure.resourcemanager.resources.models.ResourceTypeAliases
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceTypeAliases>
public final class ResourceTypeAliases
extends Object
implements com.azure.json.JsonSerializable<ResourceTypeAliases>
The resource type aliases definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliases()Get the aliases property: The aliases for property names.static ResourceTypeAliasesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceTypeAliases from the JsonReader.Get the resourceType property: The resource type name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAliases(List<Alias> aliases) Set the aliases property: The aliases for property names.withResourceType(String resourceType) Set the resourceType property: The resource type name.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
-
ResourceTypeAliases
public ResourceTypeAliases()Creates an instance of ResourceTypeAliases class.
-
-
Method Details
-
resourceType
Get the resourceType property: The resource type name.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: The resource type name.- Parameters:
resourceType- the resourceType value to set.- Returns:
- the ResourceTypeAliases object itself.
-
aliases
Get the aliases property: The aliases for property names.- Returns:
- the aliases value.
-
withAliases
Set the aliases property: The aliases for property names.- Parameters:
aliases- the aliases value to set.- Returns:
- the ResourceTypeAliases 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<ResourceTypeAliases>- Throws:
IOException
-
fromJson
Reads an instance of ResourceTypeAliases from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceTypeAliases 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 ResourceTypeAliases.
-