@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SocketAddress extends Object implements Serializable, Cloneable, StructuredPojo
Information about the socket address.
| Constructor and Description |
|---|
SocketAddress() |
| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
clone() |
boolean |
equals(Object obj) |
String |
getName()
Name of a socket address.
|
Integer |
getPort()
Port of a socket address.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
Name of a socket address.
|
void |
setPort(Integer port)
Port of a socket address.
|
String |
toString()
Returns a string representation of this object.
|
SocketAddress |
withName(String name)
Name of a socket address.
|
SocketAddress |
withPort(Integer port)
Port of a socket address.
|
public void setName(String name)
Name of a socket address.
name - Name of a socket address.public String getName()
Name of a socket address.
public SocketAddress withName(String name)
Name of a socket address.
name - Name of a socket address.public void setPort(Integer port)
Port of a socket address.
port - Port of a socket address.public Integer getPort()
Port of a socket address.
public SocketAddress withPort(Integer port)
Port of a socket address.
port - Port of a socket address.public String toString()
toString in class ObjectObject.toString()public SocketAddress clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.