@Generated(value="software.amazon.awssdk:codegen") public final class DirectConnectGateway extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DirectConnectGateway.Builder,DirectConnectGateway>
Information about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private gateway or transit gateways.
Modifier and Type | Class and Description |
---|---|
static interface |
DirectConnectGateway.Builder |
Modifier and Type | Method and Description |
---|---|
Long |
amazonSideAsn()
The autonomous system number (ASN) for the Amazon side of the connection.
|
static DirectConnectGateway.Builder |
builder() |
String |
directConnectGatewayId()
The ID of the Direct Connect gateway.
|
String |
directConnectGatewayName()
The name of the Direct Connect gateway.
|
DirectConnectGatewayState |
directConnectGatewayState()
The state of the Direct Connect gateway.
|
String |
directConnectGatewayStateAsString()
The state of the Direct Connect gateway.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
ownerAccount()
The ID of the AWS account that owns the Direct Connect gateway.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DirectConnectGateway.Builder> |
serializableBuilderClass() |
String |
stateChangeError()
The error message if the state of an object failed to advance.
|
DirectConnectGateway.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String directConnectGatewayId()
The ID of the Direct Connect gateway.
public final String directConnectGatewayName()
The name of the Direct Connect gateway.
public final Long amazonSideAsn()
The autonomous system number (ASN) for the Amazon side of the connection.
public final String ownerAccount()
The ID of the AWS account that owns the Direct Connect gateway.
public final DirectConnectGatewayState directConnectGatewayState()
The state of the Direct Connect gateway. The following are the possible values:
pending
: The initial state after calling CreateDirectConnectGateway.
available
: The Direct Connect gateway is ready for use.
deleting
: The initial state after calling DeleteDirectConnectGateway.
deleted
: The Direct Connect gateway is deleted and cannot pass traffic.
If the service returns an enum value that is not available in the current SDK version,
directConnectGatewayState
will return DirectConnectGatewayState.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from directConnectGatewayStateAsString()
.
pending
: The initial state after calling CreateDirectConnectGateway.
available
: The Direct Connect gateway is ready for use.
deleting
: The initial state after calling DeleteDirectConnectGateway.
deleted
: The Direct Connect gateway is deleted and cannot pass traffic.
DirectConnectGatewayState
public final String directConnectGatewayStateAsString()
The state of the Direct Connect gateway. The following are the possible values:
pending
: The initial state after calling CreateDirectConnectGateway.
available
: The Direct Connect gateway is ready for use.
deleting
: The initial state after calling DeleteDirectConnectGateway.
deleted
: The Direct Connect gateway is deleted and cannot pass traffic.
If the service returns an enum value that is not available in the current SDK version,
directConnectGatewayState
will return DirectConnectGatewayState.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from directConnectGatewayStateAsString()
.
pending
: The initial state after calling CreateDirectConnectGateway.
available
: The Direct Connect gateway is ready for use.
deleting
: The initial state after calling DeleteDirectConnectGateway.
deleted
: The Direct Connect gateway is deleted and cannot pass traffic.
DirectConnectGatewayState
public final String stateChangeError()
The error message if the state of an object failed to advance.
public DirectConnectGateway.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DirectConnectGateway.Builder,DirectConnectGateway>
public static DirectConnectGateway.Builder builder()
public static Class<? extends DirectConnectGateway.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()