@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Connection extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a connection.
| Constructor and Description |
|---|
Connection() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
clone() |
boolean |
equals(Object obj) |
String |
getAuthorizationType()
The authorization type specified for the connection.
|
String |
getConnectionArn()
The ARN of the connection.
|
String |
getConnectionState()
The state of the connection.
|
Date |
getCreationTime()
A time stamp for the time that the connection was created.
|
Date |
getLastAuthorizedTime()
A time stamp for the time that the connection was last authorized.
|
Date |
getLastModifiedTime()
A time stamp for the time that the connection was last modified.
|
String |
getName()
The name of the connection.
|
String |
getStateReason()
The reason that the connection is in the connection state.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAuthorizationType(String authorizationType)
The authorization type specified for the connection.
|
void |
setConnectionArn(String connectionArn)
The ARN of the connection.
|
void |
setConnectionState(String connectionState)
The state of the connection.
|
void |
setCreationTime(Date creationTime)
A time stamp for the time that the connection was created.
|
void |
setLastAuthorizedTime(Date lastAuthorizedTime)
A time stamp for the time that the connection was last authorized.
|
void |
setLastModifiedTime(Date lastModifiedTime)
A time stamp for the time that the connection was last modified.
|
void |
setName(String name)
The name of the connection.
|
void |
setStateReason(String stateReason)
The reason that the connection is in the connection state.
|
String |
toString()
Returns a string representation of this object.
|
Connection |
withAuthorizationType(ConnectionAuthorizationType authorizationType)
The authorization type specified for the connection.
|
Connection |
withAuthorizationType(String authorizationType)
The authorization type specified for the connection.
|
Connection |
withConnectionArn(String connectionArn)
The ARN of the connection.
|
Connection |
withConnectionState(ConnectionState connectionState)
The state of the connection.
|
Connection |
withConnectionState(String connectionState)
The state of the connection.
|
Connection |
withCreationTime(Date creationTime)
A time stamp for the time that the connection was created.
|
Connection |
withLastAuthorizedTime(Date lastAuthorizedTime)
A time stamp for the time that the connection was last authorized.
|
Connection |
withLastModifiedTime(Date lastModifiedTime)
A time stamp for the time that the connection was last modified.
|
Connection |
withName(String name)
The name of the connection.
|
Connection |
withStateReason(String stateReason)
The reason that the connection is in the connection state.
|
public void setConnectionArn(String connectionArn)
The ARN of the connection.
connectionArn - The ARN of the connection.public String getConnectionArn()
The ARN of the connection.
public Connection withConnectionArn(String connectionArn)
The ARN of the connection.
connectionArn - The ARN of the connection.public void setName(String name)
The name of the connection.
name - The name of the connection.public String getName()
The name of the connection.
public Connection withName(String name)
The name of the connection.
name - The name of the connection.public void setConnectionState(String connectionState)
The state of the connection.
connectionState - The state of the connection.ConnectionStatepublic String getConnectionState()
The state of the connection.
ConnectionStatepublic Connection withConnectionState(String connectionState)
The state of the connection.
connectionState - The state of the connection.ConnectionStatepublic Connection withConnectionState(ConnectionState connectionState)
The state of the connection.
connectionState - The state of the connection.ConnectionStatepublic void setStateReason(String stateReason)
The reason that the connection is in the connection state.
stateReason - The reason that the connection is in the connection state.public String getStateReason()
The reason that the connection is in the connection state.
public Connection withStateReason(String stateReason)
The reason that the connection is in the connection state.
stateReason - The reason that the connection is in the connection state.public void setAuthorizationType(String authorizationType)
The authorization type specified for the connection.
authorizationType - The authorization type specified for the connection.ConnectionAuthorizationTypepublic String getAuthorizationType()
The authorization type specified for the connection.
ConnectionAuthorizationTypepublic Connection withAuthorizationType(String authorizationType)
The authorization type specified for the connection.
authorizationType - The authorization type specified for the connection.ConnectionAuthorizationTypepublic Connection withAuthorizationType(ConnectionAuthorizationType authorizationType)
The authorization type specified for the connection.
authorizationType - The authorization type specified for the connection.ConnectionAuthorizationTypepublic void setCreationTime(Date creationTime)
A time stamp for the time that the connection was created.
creationTime - A time stamp for the time that the connection was created.public Date getCreationTime()
A time stamp for the time that the connection was created.
public Connection withCreationTime(Date creationTime)
A time stamp for the time that the connection was created.
creationTime - A time stamp for the time that the connection was created.public void setLastModifiedTime(Date lastModifiedTime)
A time stamp for the time that the connection was last modified.
lastModifiedTime - A time stamp for the time that the connection was last modified.public Date getLastModifiedTime()
A time stamp for the time that the connection was last modified.
public Connection withLastModifiedTime(Date lastModifiedTime)
A time stamp for the time that the connection was last modified.
lastModifiedTime - A time stamp for the time that the connection was last modified.public void setLastAuthorizedTime(Date lastAuthorizedTime)
A time stamp for the time that the connection was last authorized.
lastAuthorizedTime - A time stamp for the time that the connection was last authorized.public Date getLastAuthorizedTime()
A time stamp for the time that the connection was last authorized.
public Connection withLastAuthorizedTime(Date lastAuthorizedTime)
A time stamp for the time that the connection was last authorized.
lastAuthorizedTime - A time stamp for the time that the connection was last authorized.public String toString()
toString in class ObjectObject.toString()public Connection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.