@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConnectionDetails extends Object implements Serializable, Cloneable, StructuredPojo
Information about a connection.
Constructor and Description |
---|
ConnectionDetails() |
Modifier and Type | Method and Description |
---|---|
ConnectionDetails |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAllowedIps()
The allowed IP addresses.
|
String |
getClientPublicKey()
The public key of the client.
|
String |
getClientTunnelAddress()
The client tunnel address.
|
String |
getServerEndpoint()
The endpoint for the server.
|
String |
getServerPublicKey()
The public key of the server.
|
String |
getServerTunnelAddress()
The server tunnel address.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowedIps(Collection<String> allowedIps)
The allowed IP addresses.
|
void |
setClientPublicKey(String clientPublicKey)
The public key of the client.
|
void |
setClientTunnelAddress(String clientTunnelAddress)
The client tunnel address.
|
void |
setServerEndpoint(String serverEndpoint)
The endpoint for the server.
|
void |
setServerPublicKey(String serverPublicKey)
The public key of the server.
|
void |
setServerTunnelAddress(String serverTunnelAddress)
The server tunnel address.
|
String |
toString()
Returns a string representation of this object.
|
ConnectionDetails |
withAllowedIps(Collection<String> allowedIps)
The allowed IP addresses.
|
ConnectionDetails |
withAllowedIps(String... allowedIps)
The allowed IP addresses.
|
ConnectionDetails |
withClientPublicKey(String clientPublicKey)
The public key of the client.
|
ConnectionDetails |
withClientTunnelAddress(String clientTunnelAddress)
The client tunnel address.
|
ConnectionDetails |
withServerEndpoint(String serverEndpoint)
The endpoint for the server.
|
ConnectionDetails |
withServerPublicKey(String serverPublicKey)
The public key of the server.
|
ConnectionDetails |
withServerTunnelAddress(String serverTunnelAddress)
The server tunnel address.
|
public void setClientPublicKey(String clientPublicKey)
The public key of the client.
clientPublicKey
- The public key of the client.public String getClientPublicKey()
The public key of the client.
public ConnectionDetails withClientPublicKey(String clientPublicKey)
The public key of the client.
clientPublicKey
- The public key of the client.public void setServerPublicKey(String serverPublicKey)
The public key of the server.
serverPublicKey
- The public key of the server.public String getServerPublicKey()
The public key of the server.
public ConnectionDetails withServerPublicKey(String serverPublicKey)
The public key of the server.
serverPublicKey
- The public key of the server.public void setServerEndpoint(String serverEndpoint)
The endpoint for the server.
serverEndpoint
- The endpoint for the server.public String getServerEndpoint()
The endpoint for the server.
public ConnectionDetails withServerEndpoint(String serverEndpoint)
The endpoint for the server.
serverEndpoint
- The endpoint for the server.public void setClientTunnelAddress(String clientTunnelAddress)
The client tunnel address.
clientTunnelAddress
- The client tunnel address.public String getClientTunnelAddress()
The client tunnel address.
public ConnectionDetails withClientTunnelAddress(String clientTunnelAddress)
The client tunnel address.
clientTunnelAddress
- The client tunnel address.public void setServerTunnelAddress(String serverTunnelAddress)
The server tunnel address.
serverTunnelAddress
- The server tunnel address.public String getServerTunnelAddress()
The server tunnel address.
public ConnectionDetails withServerTunnelAddress(String serverTunnelAddress)
The server tunnel address.
serverTunnelAddress
- The server tunnel address.public List<String> getAllowedIps()
The allowed IP addresses.
public void setAllowedIps(Collection<String> allowedIps)
The allowed IP addresses.
allowedIps
- The allowed IP addresses.public ConnectionDetails withAllowedIps(String... allowedIps)
The allowed IP addresses.
NOTE: This method appends the values to the existing list (if any). Use
setAllowedIps(java.util.Collection)
or withAllowedIps(java.util.Collection)
if you want to
override the existing values.
allowedIps
- The allowed IP addresses.public ConnectionDetails withAllowedIps(Collection<String> allowedIps)
The allowed IP addresses.
allowedIps
- The allowed IP addresses.public String toString()
toString
in class Object
Object.toString()
public ConnectionDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.