StructuredPojo
, ToCopyableBuilder<Locale.Builder,Locale>
@Generated("software.amazon.awssdk:codegen") public class Locale extends Object implements StructuredPojo, ToCopyableBuilder<Locale.Builder,Locale>
The Locale data structure represents a geographical region or location.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Locale.Builder |
Modifier and Type | Method | Description |
---|---|---|
static Locale.Builder |
builder() |
|
String |
country() |
The country of the locale.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends Locale.Builder> |
serializableBuilderClass() |
|
String |
subdivision() |
The state or subdivision of the locale.
|
Locale.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public 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.
public 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.
public Locale.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Locale.Builder,Locale>
public static Locale.Builder builder()
public static Class<? extends Locale.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.