Class MicrosoftGraphLocaleInfo
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphLocaleInfo
localeInfo.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphLocaleInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: localeInfo.Get the displayName property: A name representing the user's locale in natural language, for example, 'English (United States)'.locale()Get the locale property: A locale representation for the user, which includes the user's preferred language and country/region.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: localeInfo.withDisplayName(String displayName) Set the displayName property: A name representing the user's locale in natural language, for example, 'English (United States)'.withLocale(String locale) Set the locale property: A locale representation for the user, which includes the user's preferred language and country/region.
-
Constructor Details
-
MicrosoftGraphLocaleInfo
public MicrosoftGraphLocaleInfo()Creates an instance of MicrosoftGraphLocaleInfo class.
-
-
Method Details
-
displayName
Get the displayName property: A name representing the user's locale in natural language, for example, 'English (United States)'.- Returns:
- the displayName value.
-
withDisplayName
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.
-
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.
-
withLocale
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.
-
additionalProperties
Get the additionalProperties property: localeInfo.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: localeInfo.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphLocaleInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-