你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphLocaleInfo Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphLocaleInfo
- com.
Implements
public final class MicrosoftGraphLocaleInfo
implements JsonSerializable<MicrosoftGraphLocaleInfo>
localeInfo.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphLocaleInfo() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
String |
displayName()
Get the display |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
String |
locale()
Get the locale property: A locale representation for the user, which includes the user's preferred language and country/region. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
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
Get the additionalProperties property: localeInfo.
Returns:
displayName
public String displayName()
Get the displayName property: A name representing the user's locale in natural language, for example, 'English (United States)'.
Returns:
fromJson
public static MicrosoftGraphLocaleInfo fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphLocaleInfo from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
withAdditionalProperties
public MicrosoftGraphLocaleInfo withAdditionalProperties(Map
Set the additionalProperties property: localeInfo.
Parameters:
Returns:
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:
Returns:
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:
Returns: