Class AliasPattern
- java.lang.Object
-
- com.azure.resourcemanager.resources.models.AliasPattern
-
public final class AliasPattern extends Object
The type of the pattern for an alias path.
-
-
Constructor Summary
Constructors Constructor Description AliasPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringphrase()Get the phrase property: The alias pattern phrase.AliasPatternTypetype()Get the type property: The type of alias pattern.voidvalidate()Validates the instance.Stringvariable()Get the variable property: The alias pattern variable.AliasPatternwithPhrase(String phrase)Set the phrase property: The alias pattern phrase.AliasPatternwithType(AliasPatternType type)Set the type property: The type of alias pattern.AliasPatternwithVariable(String variable)Set the variable property: The alias pattern variable.
-
-
-
Method Detail
-
phrase
public String phrase()
Get the phrase property: The alias pattern phrase.- Returns:
- the phrase value.
-
withPhrase
public AliasPattern withPhrase(String phrase)
Set the phrase property: The alias pattern phrase.- Parameters:
phrase- the phrase value to set.- Returns:
- the AliasPattern object itself.
-
variable
public String variable()
Get the variable property: The alias pattern variable.- Returns:
- the variable value.
-
withVariable
public AliasPattern withVariable(String variable)
Set the variable property: The alias pattern variable.- Parameters:
variable- the variable value to set.- Returns:
- the AliasPattern object itself.
-
type
public AliasPatternType type()
Get the type property: The type of alias pattern.- Returns:
- the type value.
-
withType
public AliasPattern withType(AliasPatternType type)
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.
-
-