ResourceName Class

  • java.lang.Object
    • com.azure.resourcemanager.quota.models.ResourceName

Implements

public final class ResourceName
implements JsonSerializable<ResourceName>

Name of the resource provided by the resource Provider. When requesting quota, use this property name.

Constructor Summary

Constructor Description
ResourceName()

Creates an instance of ResourceName class.

Method Summary

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

Reads an instance of ResourceName from the JsonReader.

String localizedValue()

Get the localizedValue property: Resource display name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Resource name.

ResourceName withValue(String value)

Set the value property: Resource name.

Methods inherited from java.lang.Object

Constructor Details

ResourceName

public ResourceName()

Creates an instance of ResourceName class.

Method Details

fromJson

public static ResourceName fromJson(JsonReader jsonReader)

Reads an instance of ResourceName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

localizedValue

public String localizedValue()

Get the localizedValue property: Resource display 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: Resource name.

Returns:

the value value.

withValue

public ResourceName withValue(String value)

Set the value property: Resource name.

Parameters:

value - the value value to set.

Returns:

the ResourceName object itself.

Applies to