Class AliasPath
java.lang.Object
com.azure.resourcemanager.resources.models.AliasPath
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AliasPath>
The type of the paths for alias.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the apiVersions property: The API versions.static AliasPathfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AliasPath from the JsonReader.metadata()Get the metadata property: The metadata of the alias path.path()Get the path property: The path of an alias.pattern()Get the pattern property: The pattern for an alias path.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApiVersions(List<String> apiVersions) Set the apiVersions property: The API versions.Set the path property: The path of an alias.withPattern(AliasPattern pattern) Set the pattern property: The pattern for an alias path.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
-
AliasPath
public AliasPath()Creates an instance of AliasPath class.
-
-
Method Details
-
path
Get the path property: The path of an alias.- Returns:
- the path value.
-
withPath
Set the path property: The path of an alias.- Parameters:
path- the path value to set.- Returns:
- the AliasPath object itself.
-
apiVersions
Get the apiVersions property: The API versions.- Returns:
- the apiVersions value.
-
withApiVersions
Set the apiVersions property: The API versions.- Parameters:
apiVersions- the apiVersions value to set.- Returns:
- the AliasPath object itself.
-
pattern
Get the pattern property: The pattern for an alias path.- Returns:
- the pattern value.
-
withPattern
Set the pattern property: The pattern for an alias path.- Parameters:
pattern- the pattern value to set.- Returns:
- the AliasPath object itself.
-
metadata
Get the metadata property: The metadata of the alias path. If missing, fall back to the default metadata of the alias.- Returns:
- the metadata 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<AliasPath>- Throws:
IOException
-
fromJson
Reads an instance of AliasPath from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AliasPath 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 AliasPath.
-