@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IpCity extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the city that an IP address originated from.
Constructor and Description |
---|
IpCity() |
Modifier and Type | Method and Description |
---|---|
IpCity |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the city.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the city.
|
String |
toString()
Returns a string representation of this object.
|
IpCity |
withName(String name)
The name of the city.
|
public void setName(String name)
The name of the city.
name
- The name of the city.public String getName()
The name of the city.
public IpCity withName(String name)
The name of the city.
name
- The name of the city.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.