Share via


ProfileEnumValidValuesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.customerinsights.models.ProfileEnumValidValuesFormat

Implements

public final class ProfileEnumValidValuesFormat
implements JsonSerializable<ProfileEnumValidValuesFormat>

Valid enum values in case of an enum property.

Constructor Summary

Constructor Description
ProfileEnumValidValuesFormat()

Creates an instance of ProfileEnumValidValuesFormat class.

Method Summary

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

Reads an instance of ProfileEnumValidValuesFormat from the JsonReader.

Map<String,String> localizedValueNames()

Get the localizedValueNames property: Localized names of the enum member.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer value()

Get the value property: The integer value of the enum member.

ProfileEnumValidValuesFormat withLocalizedValueNames(Map<String,String> localizedValueNames)

Set the localizedValueNames property: Localized names of the enum member.

ProfileEnumValidValuesFormat withValue(Integer value)

Set the value property: The integer value of the enum member.

Methods inherited from java.lang.Object

Constructor Details

ProfileEnumValidValuesFormat

public ProfileEnumValidValuesFormat()

Creates an instance of ProfileEnumValidValuesFormat class.

Method Details

fromJson

public static ProfileEnumValidValuesFormat fromJson(JsonReader jsonReader)

Reads an instance of ProfileEnumValidValuesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

localizedValueNames

public Map<String,String> localizedValueNames()

Get the localizedValueNames property: Localized names of the enum member.

Returns:

the localizedValueNames value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public Integer value()

Get the value property: The integer value of the enum member.

Returns:

the value value.

withLocalizedValueNames

public ProfileEnumValidValuesFormat withLocalizedValueNames(Map<String,String> localizedValueNames)

Set the localizedValueNames property: Localized names of the enum member.

Parameters:

localizedValueNames - the localizedValueNames value to set.

Returns:

the ProfileEnumValidValuesFormat object itself.

withValue

public ProfileEnumValidValuesFormat withValue(Integer value)

Set the value property: The integer value of the enum member.

Parameters:

value - the value value to set.

Returns:

the ProfileEnumValidValuesFormat object itself.

Applies to