Class AliasPattern
java.lang.Object
com.azure.resourcemanager.resources.models.AliasPattern
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AliasPattern>
public final class AliasPattern
extends Object
implements com.azure.json.JsonSerializable<AliasPattern>
The type of the pattern for an alias path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AliasPatternfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AliasPattern from the JsonReader.phrase()Get the phrase property: The alias pattern phrase.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of alias pattern.voidvalidate()Validates the instance.variable()Get the variable property: The alias pattern variable.withPhrase(String phrase) Set the phrase property: The alias pattern phrase.withType(AliasPatternType type) Set the type property: The type of alias pattern.withVariable(String variable) Set the variable property: The alias pattern variable.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
-
AliasPattern
public AliasPattern()Creates an instance of AliasPattern class.
-
-
Method Details
-
phrase
Get the phrase property: The alias pattern phrase.- Returns:
- the phrase value.
-
withPhrase
Set the phrase property: The alias pattern phrase.- Parameters:
phrase- the phrase value to set.- Returns:
- the AliasPattern object itself.
-
variable
Get the variable property: The alias pattern variable.- Returns:
- the variable value.
-
withVariable
Set the variable property: The alias pattern variable.- Parameters:
variable- the variable value to set.- Returns:
- the AliasPattern object itself.
-
type
Get the type property: The type of alias pattern.- Returns:
- the type value.
-
withType
Set the type property: The type of alias pattern.- Parameters:
type- the type value to set.- Returns:
- the AliasPattern 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<AliasPattern>- Throws:
IOException
-
fromJson
Reads an instance of AliasPattern from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AliasPattern 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 AliasPattern.
-