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