@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IpCountry extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the country that an IP address originated from.
Constructor and Description |
---|
IpCountry() |
Modifier and Type | Method and Description |
---|---|
IpCountry |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from.
|
String |
getName()
The name of the country that the IP address originated from.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCode(String code)
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from.
|
void |
setName(String name)
The name of the country that the IP address originated from.
|
String |
toString()
Returns a string representation of this object.
|
IpCountry |
withCode(String code)
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from.
|
IpCountry |
withName(String name)
The name of the country that the IP address originated from.
|
public void setCode(String code)
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from. For example, US for the United States.
code
- The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from.
For example, US for the United States.public String getCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from. For example, US for the United States.
public IpCountry withCode(String code)
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from. For example, US for the United States.
code
- The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from.
For example, US for the United States.public void setName(String name)
The name of the country that the IP address originated from.
name
- The name of the country that the IP address originated from.public String getName()
The name of the country that the IP address originated from.
public IpCountry withName(String name)
The name of the country that the IP address originated from.
name
- The name of the country that the IP address originated from.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.