Class MicrosoftGraphLocaleInfo
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphLocaleInfo
-
public final class MicrosoftGraphLocaleInfo extends Object
localeInfo.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphLocaleInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)'.String
locale()
Get the locale property: A locale representation for the user, which includes the user's preferred language and country/region.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.
-
-
-
Method Detail
-
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.
-
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.
-
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.
-
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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: localeInfo.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphLocaleInfo withAdditionalProperties(Map<String,Object> additionalProperties)
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.
-
-