Class Alias
java.lang.Object
com.azure.resourcemanager.resources.models.Alias
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Alias>
The alias type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultMetadata property: The default alias path metadata.Get the defaultPath property: The default path for an alias.Get the defaultPattern property: The default pattern for an alias.static AliasfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Alias from the JsonReader.name()Get the name property: The alias name.paths()Get the paths property: The paths for an alias.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the alias.voidvalidate()Validates the instance.withDefaultPath(String defaultPath) Set the defaultPath property: The default path for an alias.withDefaultPattern(AliasPattern defaultPattern) Set the defaultPattern property: The default pattern for an alias.Set the name property: The alias name.Set the paths property: The paths for an alias.Set the type property: The type of the alias.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
-
Alias
public Alias()Creates an instance of Alias class.
-
-
Method Details
-
name
Get the name property: The alias name.- Returns:
- the name value.
-
withName
Set the name property: The alias name.- Parameters:
name- the name value to set.- Returns:
- the Alias object itself.
-
paths
Get the paths property: The paths for an alias.- Returns:
- the paths value.
-
withPaths
Set the paths property: The paths for an alias.- Parameters:
paths- the paths value to set.- Returns:
- the Alias object itself.
-
type
Get the type property: The type of the alias.- Returns:
- the type value.
-
withType
Set the type property: The type of the alias.- Parameters:
type- the type value to set.- Returns:
- the Alias object itself.
-
defaultPath
Get the defaultPath property: The default path for an alias.- Returns:
- the defaultPath value.
-
withDefaultPath
Set the defaultPath property: The default path for an alias.- Parameters:
defaultPath- the defaultPath value to set.- Returns:
- the Alias object itself.
-
defaultPattern
Get the defaultPattern property: The default pattern for an alias.- Returns:
- the defaultPattern value.
-
withDefaultPattern
Set the defaultPattern property: The default pattern for an alias.- Parameters:
defaultPattern- the defaultPattern value to set.- Returns:
- the Alias object itself.
-
defaultMetadata
Get the defaultMetadata property: The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata.- Returns:
- the defaultMetadata value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Alias>- Throws:
IOException
-
fromJson
Reads an instance of Alias from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Alias 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 Alias.
-