UsageName Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.UsageName

Implements

public final class UsageName
implements JsonSerializable<UsageName>

The usage names.

Constructor Summary

Constructor Description
UsageName()

Creates an instance of UsageName class.

Method Summary

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

Reads an instance of UsageName from the JsonReader.

String localizedValue()

Get the localizedValue property: A localized string describing the resource name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: A string describing the resource name.

UsageName withLocalizedValue(String localizedValue)

Set the localizedValue property: A localized string describing the resource name.

UsageName withValue(String value)

Set the value property: A string describing the resource name.

Methods inherited from java.lang.Object

Constructor Details

UsageName

public UsageName()

Creates an instance of UsageName class.

Method Details

fromJson

public static UsageName fromJson(JsonReader jsonReader)

Reads an instance of UsageName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

localizedValue

public String localizedValue()

Get the localizedValue property: A localized string describing the resource name.

Returns:

the localizedValue value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: A string describing the resource name.

Returns:

the value value.

withLocalizedValue

public UsageName withLocalizedValue(String localizedValue)

Set the localizedValue property: A localized string describing the resource name.

Parameters:

localizedValue - the localizedValue value to set.

Returns:

the UsageName object itself.

withValue

public UsageName withValue(String value)

Set the value property: A string describing the resource name.

Parameters:

value - the value value to set.

Returns:

the UsageName object itself.

Applies to