共用方式為


Name Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.Name

Implements

public final class Name
implements JsonSerializable<Name>

ARM Usage Name.

Constructor Summary

Constructor Description
Name()

Creates an instance of Name class.

Method Summary

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

Reads an instance of Name from the JsonReader.

String localizedValue()

Get the localizedValue property: Usage name localized value.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Usage name value.

Name withLocalizedValue(String localizedValue)

Set the localizedValue property: Usage name localized value.

Name withValue(String value)

Set the value property: Usage name value.

Methods inherited from java.lang.Object

Constructor Details

Name

public Name()

Creates an instance of Name class.

Method Details

fromJson

public static Name fromJson(JsonReader jsonReader)

Reads an instance of Name from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

localizedValue

public String localizedValue()

Get the localizedValue property: Usage name localized value.

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: Usage name value.

Returns:

the value value.

withLocalizedValue

public Name withLocalizedValue(String localizedValue)

Set the localizedValue property: Usage name localized value.

Parameters:

localizedValue - the localizedValue value to set.

Returns:

the Name object itself.

withValue

public Name withValue(String value)

Set the value property: Usage name value.

Parameters:

value - the value value to set.

Returns:

the Name object itself.

Applies to