Compartilhar via


AliasPattern Class

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

Implements

public final class AliasPattern
implements JsonSerializable<AliasPattern>

The type of the pattern for an alias path.

Constructor Summary

Constructor Description
AliasPattern()

Creates an instance of AliasPattern class.

Method Summary

Modifier and Type Method and Description
static AliasPattern fromJson(JsonReader jsonReader)

Reads an instance of AliasPattern from the JsonReader.

String phrase()

Get the phrase property: The alias pattern phrase.

JsonWriter toJson(JsonWriter jsonWriter)
AliasPatternType type()

Get the type property: The type of alias pattern.

void validate()

Validates the instance.

String variable()

Get the variable property: The alias pattern variable.

AliasPattern withPhrase(String phrase)

Set the phrase property: The alias pattern phrase.

AliasPattern withType(AliasPatternType type)

Set the type property: The type of alias pattern.

AliasPattern withVariable(String variable)

Set the variable property: The alias pattern variable.

Methods inherited from java.lang.Object

Constructor Details

AliasPattern

public AliasPattern()

Creates an instance of AliasPattern class.

Method Details

fromJson

public static AliasPattern fromJson(JsonReader jsonReader)

Reads an instance of AliasPattern from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AliasPattern 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 AliasPattern.

phrase

public String phrase()

Get the phrase property: The alias pattern phrase.

Returns:

the phrase value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public AliasPatternType type()

Get the type property: The type of alias pattern.

Returns:

the type value.

validate

public void validate()

Validates the instance.

variable

public String variable()

Get the variable property: The alias pattern variable.

Returns:

the variable 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.

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.

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.

Applies to