Class Locale
- java.lang.Object
-
- software.amazon.awssdk.services.mturk.model.Locale
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Locale.Builder,Locale>
@Generated("software.amazon.awssdk:codegen") public final class Locale extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Locale.Builder,Locale>
The Locale data structure represents a geographical region or location.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLocale.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Locale.Builderbuilder()Stringcountry()The country of the locale.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Locale.Builder>serializableBuilderClass()Stringsubdivision()The state or subdivision of the locale.Locale.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
country
public final String country()
The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.
- Returns:
- The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.
-
subdivision
public final String subdivision()
The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.
- Returns:
- The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.
-
toBuilder
public Locale.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Locale.Builder,Locale>
-
builder
public static Locale.Builder builder()
-
serializableBuilderClass
public static Class<? extends Locale.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-