Class Alias
- java.lang.Object
-
- com.azure.resourcemanager.resources.models.Alias
-
public final class Alias extends Object
The alias type.
-
-
Constructor Summary
Constructors Constructor Description Alias()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AliasPathMetadatadefaultMetadata()Get the defaultMetadata property: The default alias path metadata.StringdefaultPath()Get the defaultPath property: The default path for an alias.AliasPatterndefaultPattern()Get the defaultPattern property: The default pattern for an alias.Stringname()Get the name property: The alias name.List<AliasPath>paths()Get the paths property: The paths for an alias.AliasTypetype()Get the type property: The type of the alias.voidvalidate()Validates the instance.AliaswithDefaultPath(String defaultPath)Set the defaultPath property: The default path for an alias.AliaswithDefaultPattern(AliasPattern defaultPattern)Set the defaultPattern property: The default pattern for an alias.AliaswithName(String name)Set the name property: The alias name.AliaswithPaths(List<AliasPath> paths)Set the paths property: The paths for an alias.AliaswithType(AliasType type)Set the type property: The type of the alias.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The alias name.- Returns:
- the name value.
-
withName
public Alias withName(String name)
Set the name property: The alias name.- Parameters:
name- the name value to set.- Returns:
- the Alias object itself.
-
paths
public List<AliasPath> paths()
Get the paths property: The paths for an alias.- Returns:
- the paths value.
-
withPaths
public Alias withPaths(List<AliasPath> paths)
Set the paths property: The paths for an alias.- Parameters:
paths- the paths value to set.- Returns:
- the Alias object itself.
-
type
public AliasType type()
Get the type property: The type of the alias.- Returns:
- the type value.
-
withType
public Alias withType(AliasType type)
Set the type property: The type of the alias.- Parameters:
type- the type value to set.- Returns:
- the Alias object itself.
-
defaultPath
public String defaultPath()
Get the defaultPath property: The default path for an alias.- Returns:
- the defaultPath value.
-
withDefaultPath
public Alias withDefaultPath(String defaultPath)
Set the defaultPath property: The default path for an alias.- Parameters:
defaultPath- the defaultPath value to set.- Returns:
- the Alias object itself.
-
defaultPattern
public AliasPattern defaultPattern()
Get the defaultPattern property: The default pattern for an alias.- Returns:
- the defaultPattern value.
-
withDefaultPattern
public Alias withDefaultPattern(AliasPattern defaultPattern)
Set the defaultPattern property: The default pattern for an alias.- Parameters:
defaultPattern- the defaultPattern value to set.- Returns:
- the Alias object itself.
-
defaultMetadata
public AliasPathMetadata 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.
-
-