Class DirectConnectGatewayAttachment
- java.lang.Object
-
- software.amazon.awssdk.services.directconnect.model.DirectConnectGatewayAttachment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DirectConnectGatewayAttachment.Builder,DirectConnectGatewayAttachment>
@Generated("software.amazon.awssdk:codegen") public final class DirectConnectGatewayAttachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DirectConnectGatewayAttachment.Builder,DirectConnectGatewayAttachment>
Information about an attachment between a Direct Connect gateway and a virtual interface.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDirectConnectGatewayAttachment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectConnectGatewayAttachmentStateattachmentState()The state of the attachment.StringattachmentStateAsString()The state of the attachment.DirectConnectGatewayAttachmentTypeattachmentType()The type of attachment.StringattachmentTypeAsString()The type of attachment.static DirectConnectGatewayAttachment.Builderbuilder()StringdirectConnectGatewayId()The ID of the Direct Connect gateway.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends DirectConnectGatewayAttachment.Builder>serializableBuilderClass()StringstateChangeError()The error message if the state of an object failed to advance.DirectConnectGatewayAttachment.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvirtualInterfaceId()The ID of the virtual interface.StringvirtualInterfaceOwnerAccount()The ID of the Amazon Web Services account that owns the virtual interface.StringvirtualInterfaceRegion()The Amazon Web Services Region where the virtual interface is located.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
directConnectGatewayId
public final String directConnectGatewayId()
The ID of the Direct Connect gateway.
- Returns:
- The ID of the Direct Connect gateway.
-
virtualInterfaceId
public final String virtualInterfaceId()
The ID of the virtual interface.
- Returns:
- The ID of the virtual interface.
-
virtualInterfaceRegion
public final String virtualInterfaceRegion()
The Amazon Web Services Region where the virtual interface is located.
- Returns:
- The Amazon Web Services Region where the virtual interface is located.
-
virtualInterfaceOwnerAccount
public final String virtualInterfaceOwnerAccount()
The ID of the Amazon Web Services account that owns the virtual interface.
- Returns:
- The ID of the Amazon Web Services account that owns the virtual interface.
-
attachmentState
public final DirectConnectGatewayAttachmentState attachmentState()
The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after calling DeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
If the service returns an enum value that is not available in the current SDK version,
attachmentStatewill returnDirectConnectGatewayAttachmentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattachmentStateAsString().- Returns:
- The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after calling DeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
-
- See Also:
DirectConnectGatewayAttachmentState
-
-
attachmentStateAsString
public final String attachmentStateAsString()
The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after calling DeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
If the service returns an enum value that is not available in the current SDK version,
attachmentStatewill returnDirectConnectGatewayAttachmentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattachmentStateAsString().- Returns:
- The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after calling DeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
-
- See Also:
DirectConnectGatewayAttachmentState
-
-
attachmentType
public final DirectConnectGatewayAttachmentType attachmentType()
The type of attachment.
If the service returns an enum value that is not available in the current SDK version,
attachmentTypewill returnDirectConnectGatewayAttachmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattachmentTypeAsString().- Returns:
- The type of attachment.
- See Also:
DirectConnectGatewayAttachmentType
-
attachmentTypeAsString
public final String attachmentTypeAsString()
The type of attachment.
If the service returns an enum value that is not available in the current SDK version,
attachmentTypewill returnDirectConnectGatewayAttachmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattachmentTypeAsString().- Returns:
- The type of attachment.
- See Also:
DirectConnectGatewayAttachmentType
-
stateChangeError
public final String stateChangeError()
The error message if the state of an object failed to advance.
- Returns:
- The error message if the state of an object failed to advance.
-
toBuilder
public DirectConnectGatewayAttachment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DirectConnectGatewayAttachment.Builder,DirectConnectGatewayAttachment>
-
builder
public static DirectConnectGatewayAttachment.Builder builder()
-
serializableBuilderClass
public static Class<? extends DirectConnectGatewayAttachment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-