AliasPath Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. AliasPath
- com.
Implements
public final class AliasPath
implements JsonSerializable<AliasPath>
The type of the paths for alias.
Constructor Summary
Constructor | Description |
---|---|
AliasPath() |
Creates an instance of Alias |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
apiVersions()
Get the api |
static
Alias |
fromJson(JsonReader jsonReader)
Reads an instance of Alias |
Alias |
metadata()
Get the metadata property: The metadata of the alias path. |
String |
path()
Get the path property: The path of an alias. |
Alias |
pattern()
Get the pattern property: The pattern for an alias path. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Alias |
withApiVersions(List<String> apiVersions)
Set the api |
Alias |
withPath(String path)
Set the path property: The path of an alias. |
Alias |
withPattern(AliasPattern pattern)
Set the pattern property: The pattern for an alias path. |
Methods inherited from java.lang.Object
Constructor Details
AliasPath
public AliasPath()
Creates an instance of AliasPath class.
Method Details
apiVersions
public List
Get the apiVersions property: The API versions.
Returns:
fromJson
public static AliasPath fromJson(JsonReader jsonReader)
Reads an instance of AliasPath from the JsonReader.
Parameters:
Returns:
Throws:
metadata
public AliasPathMetadata metadata()
Get the metadata property: The metadata of the alias path. If missing, fall back to the default metadata of the alias.
Returns:
path
public String path()
Get the path property: The path of an alias.
Returns:
pattern
public AliasPattern pattern()
Get the pattern property: The pattern for an alias path.
Returns:
toJson
validate
public void validate()
Validates the instance.
withApiVersions
public AliasPath withApiVersions(List
Set the apiVersions property: The API versions.
Parameters:
Returns:
withPath
public AliasPath withPath(String path)
Set the path property: The path of an alias.
Parameters:
Returns:
withPattern
public AliasPath withPattern(AliasPattern pattern)
Set the pattern property: The pattern for an alias path.
Parameters:
Returns:
Applies to
Azure SDK for Java