Alias Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.Alias

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
AliasPathMetadata defaultMetadata()

Get the defaultMetadata property: The default alias path metadata.

String defaultPath()

Get the defaultPath property: The default path for an alias.

AliasPattern defaultPattern()

Get the defaultPattern property: The default pattern for an alias.

static Alias fromJson(JsonReader jsonReader)

Reads an instance of Alias from the JsonReader.

String name()

Get the name property: The alias name.

List<AliasPath> paths()

Get the paths property: The paths for an alias.

JsonWriter toJson(JsonWriter jsonWriter)
AliasType type()

Get the type property: The type of the alias.

void validate()

Validates the instance.

Alias withDefaultPath(String defaultPath)

Set the defaultPath property: The default path for an alias.

Alias withDefaultPattern(AliasPattern defaultPattern)

Set the defaultPattern property: The default pattern for an alias.

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:

the defaultMetadata value.

defaultPath

public String defaultPath()

Get the defaultPath property: The default path for an alias.

Returns:

the defaultPath value.

defaultPattern

public AliasPattern defaultPattern()

Get the defaultPattern property: The default pattern for an alias.

Returns:

the defaultPattern value.

fromJson

public static Alias fromJson(JsonReader jsonReader)

Reads an instance of Alias from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Alias if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Alias.

name

public String name()

Get the name property: The alias name.

Returns:

the name value.

paths

public List paths()

Get the paths property: The paths for an alias.

Returns:

the paths value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public AliasType type()

Get the type property: The type of the alias.

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

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.

withPaths

public Alias withPaths(List paths)

Set the paths property: The paths for an alias.

Parameters:

paths - the paths value to set.

Returns:

the Alias object itself.

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.

Applies to