QuotaName Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.QuotaName

Implements

public final class QuotaName
implements JsonSerializable<QuotaName>

The name of the quota.

Constructor Summary

Constructor Description
QuotaName()

Creates an instance of QuotaName class.

Method Summary

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

Reads an instance of QuotaName from the JsonReader.

String localizedValue()

Get the localizedValue property: The localized name of the quota.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The unlocalized name (or ID) of the quota.

QuotaName withLocalizedValue(String localizedValue)

Set the localizedValue property: The localized name of the quota.

QuotaName withValue(String value)

Set the value property: The unlocalized name (or ID) of the quota.

Methods inherited from java.lang.Object

Constructor Details

QuotaName

public QuotaName()

Creates an instance of QuotaName class.

Method Details

fromJson

public static QuotaName fromJson(JsonReader jsonReader)

Reads an instance of QuotaName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

localizedValue

public String localizedValue()

Get the localizedValue property: The localized name of the quota.

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: The unlocalized name (or ID) of the quota.

Returns:

the value value.

withLocalizedValue

public QuotaName withLocalizedValue(String localizedValue)

Set the localizedValue property: The localized name of the quota.

Parameters:

localizedValue - the localizedValue value to set.

Returns:

the QuotaName object itself.

withValue

public QuotaName withValue(String value)

Set the value property: The unlocalized name (or ID) of the quota.

Parameters:

value - the value value to set.

Returns:

the QuotaName object itself.

Applies to