@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.ConnectionState
public String getConnectionState()
The state of the connection.
ConnectionState
public Connection withConnectionState(String connectionState)
The state of the connection.
connectionState
- The state of the connection.ConnectionState
public Connection withConnectionState(ConnectionState connectionState)
The state of the connection.
connectionState
- The state of the connection.ConnectionState
public 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.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
authorizationType
- The authorization type specified for the connection. OAUTH tokens are refreshed when a 401 or 407 response is returned.
ConnectionAuthorizationType
public String getAuthorizationType()
The authorization type specified for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
ConnectionAuthorizationType
public Connection withAuthorizationType(String authorizationType)
The authorization type specified for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
authorizationType
- The authorization type specified for the connection. OAUTH tokens are refreshed when a 401 or 407 response is returned.
ConnectionAuthorizationType
public Connection withAuthorizationType(ConnectionAuthorizationType authorizationType)
The authorization type specified for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
authorizationType
- The authorization type specified for the connection. OAUTH tokens are refreshed when a 401 or 407 response is returned.
ConnectionAuthorizationType
public 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 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.