你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphLocaleInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphLocaleInfo

Implements

public final class MicrosoftGraphLocaleInfo
implements JsonSerializable<MicrosoftGraphLocaleInfo>

localeInfo.

Constructor Summary

Constructor Description
MicrosoftGraphLocaleInfo()

Creates an instance of MicrosoftGraphLocaleInfo class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: localeInfo.

String displayName()

Get the displayName property: A name representing the user's locale in natural language, for example, 'English (United States)'.

static MicrosoftGraphLocaleInfo fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphLocaleInfo from the JsonReader.

String locale()

Get the locale property: A locale representation for the user, which includes the user's preferred language and country/region.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphLocaleInfo withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: localeInfo.

MicrosoftGraphLocaleInfo withDisplayName(String displayName)

Set the displayName property: A name representing the user's locale in natural language, for example, 'English (United States)'.

MicrosoftGraphLocaleInfo withLocale(String locale)

Set the locale property: A locale representation for the user, which includes the user's preferred language and country/region.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphLocaleInfo

public MicrosoftGraphLocaleInfo()

Creates an instance of MicrosoftGraphLocaleInfo class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: localeInfo.

Returns:

the additionalProperties value.

displayName

public String displayName()

Get the displayName property: A name representing the user's locale in natural language, for example, 'English (United States)'.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphLocaleInfo fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphLocaleInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

locale

public String locale()

Get the locale property: A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2.

Returns:

the locale value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphLocaleInfo withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: localeInfo.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphLocaleInfo object itself.

withDisplayName

public MicrosoftGraphLocaleInfo withDisplayName(String displayName)

Set the displayName property: A name representing the user's locale in natural language, for example, 'English (United States)'.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphLocaleInfo object itself.

withLocale

public MicrosoftGraphLocaleInfo withLocale(String locale)

Set the locale property: A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2.

Parameters:

locale - the locale value to set.

Returns:

the MicrosoftGraphLocaleInfo object itself.

Applies to