Alias Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. Alias
- com.
Implements
public final class Alias
implements JsonSerializable<Alias>
The alias type.
Constructor Summary
Constructor | Description |
---|---|
Alias() |
Creates an instance of Alias class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Alias |
defaultMetadata()
Get the default |
String |
defaultPath()
Get the default |
Alias |
defaultPattern()
Get the default |
static Alias |
fromJson(JsonReader jsonReader)
Reads an instance of Alias from the Json |
String |
name()
Get the name property: The alias name. |
List<Alias |
paths()
Get the paths property: The paths for an alias. |
Json |
toJson(JsonWriter jsonWriter) |
Alias |
type()
Get the type property: The type of the alias. |
void |
validate()
Validates the instance. |
Alias |
withDefaultPath(String defaultPath)
Set the default |
Alias |
withDefaultPattern(AliasPattern defaultPattern)
Set the default |
Alias |
withName(String name)
Set the name property: The alias name. |
Alias |
withPaths(List<AliasPath> paths)
Set the paths property: The paths for an alias. |
Alias |
withType(AliasType type)
Set the type property: The type of the alias. |
Methods inherited from java.lang.Object
Constructor Details
Alias
public Alias()
Creates an instance of Alias class.
Method Details
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:
defaultPath
public String defaultPath()
Get the defaultPath property: The default path for an alias.
Returns:
defaultPattern
public AliasPattern defaultPattern()
Get the defaultPattern property: The default pattern for an alias.
Returns:
fromJson
public static Alias fromJson(JsonReader jsonReader)
Reads an instance of Alias from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The alias name.
Returns:
paths
public List
Get the paths property: The paths for an alias.
Returns:
toJson
type
public AliasType type()
Get the type property: The type of the alias.
Returns:
validate
public void validate()
Validates the instance.
withDefaultPath
public Alias withDefaultPath(String defaultPath)
Set the defaultPath property: The default path for an alias.
Parameters:
Returns:
withDefaultPattern
public Alias withDefaultPattern(AliasPattern defaultPattern)
Set the defaultPattern property: The default pattern for an alias.
Parameters:
Returns:
withName
public Alias withName(String name)
Set the name property: The alias name.
Parameters:
Returns:
withPaths
public Alias withPaths(List
Set the paths property: The paths for an alias.
Parameters:
Returns:
withType
public Alias withType(AliasType type)
Set the type property: The type of the alias.
Parameters:
Returns:
Applies to
Azure SDK for Java