@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Connection extends Object implements Serializable, Cloneable, StructuredPojo
Details about a WebSocket connection.
Constructor and Description |
---|
Connection() |
Modifier and Type | Method and Description |
---|---|
Connection |
clone() |
boolean |
equals(Object obj) |
Date |
getCreated()
The date and time when the connection was created.
|
String |
getId()
The identifier used to indicate a specific WebSocket connection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreated(Date created)
The date and time when the connection was created.
|
void |
setId(String id)
The identifier used to indicate a specific WebSocket connection.
|
String |
toString()
Returns a string representation of this object.
|
Connection |
withCreated(Date created)
The date and time when the connection was created.
|
Connection |
withId(String id)
The identifier used to indicate a specific WebSocket connection.
|
public void setCreated(Date created)
The date and time when the connection was created.
created
- The date and time when the connection was created.public Date getCreated()
The date and time when the connection was created.
public Connection withCreated(Date created)
The date and time when the connection was created.
created
- The date and time when the connection was created.public void setId(String id)
The identifier used to indicate a specific WebSocket connection.
id
- The identifier used to indicate a specific WebSocket connection.public String getId()
The identifier used to indicate a specific WebSocket connection.
public Connection withId(String id)
The identifier used to indicate a specific WebSocket connection.
id
- The identifier used to indicate a specific WebSocket connection.public String toString()
toString
in class Object
Object.toString()
public Connection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.