Class DirectConnectGatewayAttachment

    • 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, attachmentState will return DirectConnectGatewayAttachmentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from attachmentStateAsString().

        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, attachmentState will return DirectConnectGatewayAttachmentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from attachmentStateAsString().

        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
      • 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)