@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SocketAddress extends Object implements Serializable, Cloneable, StructuredPojo
An IP address/port combination.
Constructor and Description |
---|
SocketAddress() |
Modifier and Type | Method and Description |
---|---|
SocketAddress |
clone() |
boolean |
equals(Object obj) |
String |
getIpAddress()
The IP address for the socket address.
|
Integer |
getPort()
The port for the socket address.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIpAddress(String ipAddress)
The IP address for the socket address.
|
void |
setPort(Integer port)
The port for the socket address.
|
String |
toString()
Returns a string representation of this object.
|
SocketAddress |
withIpAddress(String ipAddress)
The IP address for the socket address.
|
SocketAddress |
withPort(Integer port)
The port for the socket address.
|
public void setIpAddress(String ipAddress)
The IP address for the socket address.
ipAddress
- The IP address for the socket address.public String getIpAddress()
The IP address for the socket address.
public SocketAddress withIpAddress(String ipAddress)
The IP address for the socket address.
ipAddress
- The IP address for the socket address.public void setPort(Integer port)
The port for the socket address.
port
- The port for the socket address.public Integer getPort()
The port for the socket address.
public SocketAddress withPort(Integer port)
The port for the socket address.
port
- The port for the socket address.public String toString()
toString
in class Object
Object.toString()
public SocketAddress clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.