@Generated(value="software.amazon.awssdk:codegen") public final class Connection extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Connection.Builder,Connection>
Contains information about a connection.
Modifier and Type | Class and Description |
---|---|
static interface |
Connection.Builder |
Modifier and Type | Method and Description |
---|---|
ConnectionAuthorizationType |
authorizationType()
The authorization type specified for the connection.
|
String |
authorizationTypeAsString()
The authorization type specified for the connection.
|
static Connection.Builder |
builder() |
String |
connectionArn()
The ARN of the connection.
|
ConnectionState |
connectionState()
The state of the connection.
|
String |
connectionStateAsString()
The state of the connection.
|
Instant |
creationTime()
A time stamp for the time that the connection was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastAuthorizedTime()
A time stamp for the time that the connection was last authorized.
|
Instant |
lastModifiedTime()
A time stamp for the time that the connection was last modified.
|
String |
name()
The name of the connection.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Connection.Builder> |
serializableBuilderClass() |
String |
stateReason()
The reason that the connection is in the connection state.
|
Connection.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String connectionArn()
The ARN of the connection.
public final String name()
The name of the connection.
public final ConnectionState connectionState()
The state of the connection.
If the service returns an enum value that is not available in the current SDK version, connectionState
will return ConnectionState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from connectionStateAsString()
.
ConnectionState
public final String connectionStateAsString()
The state of the connection.
If the service returns an enum value that is not available in the current SDK version, connectionState
will return ConnectionState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from connectionStateAsString()
.
ConnectionState
public final String stateReason()
The reason that the connection is in the connection state.
public final ConnectionAuthorizationType authorizationType()
The authorization type specified for the connection.
If the service returns an enum value that is not available in the current SDK version, authorizationType
will return ConnectionAuthorizationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from authorizationTypeAsString()
.
ConnectionAuthorizationType
public final String authorizationTypeAsString()
The authorization type specified for the connection.
If the service returns an enum value that is not available in the current SDK version, authorizationType
will return ConnectionAuthorizationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from authorizationTypeAsString()
.
ConnectionAuthorizationType
public final Instant creationTime()
A time stamp for the time that the connection was created.
public final Instant lastModifiedTime()
A time stamp for the time that the connection was last modified.
public final Instant lastAuthorizedTime()
A time stamp for the time that the connection was last authorized.
public Connection.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Connection.Builder,Connection>
public static Connection.Builder builder()
public static Class<? extends Connection.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.