Partager via


LocalizableString Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.LocalizableString

Implements

public final class LocalizableString
implements JsonSerializable<LocalizableString>

Localizable string object containing the name and a localized value.

Constructor Summary

Constructor Description
LocalizableString()

Creates an instance of LocalizableString class.

Method Summary

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

Reads an instance of LocalizableString from the JsonReader.

String localizedValue()

Get the localizedValue property: Localized name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Non-localized name.

LocalizableString withLocalizedValue(String localizedValue)

Set the localizedValue property: Localized name.

LocalizableString withValue(String value)

Set the value property: Non-localized name.

Methods inherited from java.lang.Object

Constructor Details

LocalizableString

public LocalizableString()

Creates an instance of LocalizableString class.

Method Details

fromJson

public static LocalizableString fromJson(JsonReader jsonReader)

Reads an instance of LocalizableString from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

localizedValue

public String localizedValue()

Get the localizedValue property: Localized 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: Non-localized name.

Returns:

the value value.

withLocalizedValue

public LocalizableString withLocalizedValue(String localizedValue)

Set the localizedValue property: Localized name.

Parameters:

localizedValue - the localizedValue value to set.

Returns:

the LocalizableString object itself.

withValue

public LocalizableString withValue(String value)

Set the value property: Non-localized name.

Parameters:

value - the value value to set.

Returns:

the LocalizableString object itself.

Applies to