@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class City extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the city associated with the IP address.
Constructor and Description |
---|
City() |
Modifier and Type | Method and Description |
---|---|
City |
clone() |
boolean |
equals(Object obj) |
String |
getCityName()
The city name of the remote IP address.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCityName(String cityName)
The city name of the remote IP address.
|
String |
toString()
Returns a string representation of this object.
|
City |
withCityName(String cityName)
The city name of the remote IP address.
|
public void setCityName(String cityName)
The city name of the remote IP address.
cityName
- The city name of the remote IP address.public String getCityName()
The city name of the remote IP address.
public City withCityName(String cityName)
The city name of the remote IP address.
cityName
- The city 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.