@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Country extends Object implements Serializable, Cloneable, StructuredPojo
Information about a country.
Constructor and Description |
---|
Country() |
Modifier and Type | Method and Description |
---|---|
Country |
clone() |
boolean |
equals(Object obj) |
String |
getCountryCode()
The 2-letter ISO 3166 country code for the country.
|
String |
getCountryName()
The name of the country.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCountryCode(String countryCode)
The 2-letter ISO 3166 country code for the country.
|
void |
setCountryName(String countryName)
The name of the country.
|
String |
toString()
Returns a string representation of this object.
|
Country |
withCountryCode(String countryCode)
The 2-letter ISO 3166 country code for the country.
|
Country |
withCountryName(String countryName)
The name of the country.
|
public void setCountryCode(String countryCode)
The 2-letter ISO 3166 country code for the country.
countryCode
- The 2-letter ISO 3166 country code for the country.public String getCountryCode()
The 2-letter ISO 3166 country code for the country.
public Country withCountryCode(String countryCode)
The 2-letter ISO 3166 country code for the country.
countryCode
- The 2-letter ISO 3166 country code for the country.public void setCountryName(String countryName)
The name of the country.
countryName
- The name of the country.public String getCountryName()
The name of the country.
public Country withCountryName(String countryName)
The name of the country.
countryName
- The name of the country.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.