AliasPattern Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. AliasPattern
- com.
Implements
public final class AliasPattern
implements JsonSerializable<AliasPattern>
The type of the pattern for an alias path.
Constructor Summary
Constructor | Description |
---|---|
AliasPattern() |
Creates an instance of Alias |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Alias |
fromJson(JsonReader jsonReader)
Reads an instance of Alias |
String |
phrase()
Get the phrase property: The alias pattern phrase. |
Json |
toJson(JsonWriter jsonWriter) |
Alias |
type()
Get the type property: The type of alias pattern. |
void |
validate()
Validates the instance. |
String |
variable()
Get the variable property: The alias pattern variable. |
Alias |
withPhrase(String phrase)
Set the phrase property: The alias pattern phrase. |
Alias |
withType(AliasPatternType type)
Set the type property: The type of alias pattern. |
Alias |
withVariable(String variable)
Set the variable property: The alias pattern variable. |
Methods inherited from java.lang.Object
Constructor Details
AliasPattern
public AliasPattern()
Creates an instance of AliasPattern class.
Method Details
fromJson
public static AliasPattern fromJson(JsonReader jsonReader)
Reads an instance of AliasPattern from the JsonReader.
Parameters:
Returns:
Throws:
phrase
public String phrase()
Get the phrase property: The alias pattern phrase.
Returns:
toJson
type
public AliasPatternType type()
Get the type property: The type of alias pattern.
Returns:
validate
public void validate()
Validates the instance.
variable
public String variable()
Get the variable property: The alias pattern variable.
Returns:
withPhrase
public AliasPattern withPhrase(String phrase)
Set the phrase property: The alias pattern phrase.
Parameters:
Returns:
withType
public AliasPattern withType(AliasPatternType type)
Set the type property: The type of alias pattern.
Parameters:
Returns:
withVariable
public AliasPattern withVariable(String variable)
Set the variable property: The alias pattern variable.
Parameters:
Returns:
Applies to
Azure SDK for Java