@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Locale extends Object implements Serializable, Cloneable, StructuredPojo
The Locale data structure represents a geographical region or location.
Constructor and Description |
---|
Locale() |
Modifier and Type | Method and Description |
---|---|
Locale |
clone() |
boolean |
equals(Object obj) |
String |
getCountry()
The country of the locale.
|
String |
getSubdivision()
The state or subdivision of the locale.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCountry(String country)
The country of the locale.
|
void |
setSubdivision(String subdivision)
The state or subdivision of the locale.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Locale |
withCountry(String country)
The country of the locale.
|
Locale |
withSubdivision(String subdivision)
The state or subdivision of the locale.
|
public void setCountry(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.
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 getCountry()
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 Locale withCountry(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.
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 void setSubdivision(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.
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 String getSubdivision()
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 withSubdivision(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.
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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.