@Generated(value="software.amazon.awssdk:codegen") public final class TransitGatewayAttachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TransitGatewayAttachment.Builder,TransitGatewayAttachment>
Describes an attachment between a resource and a transit gateway.
Modifier and Type | Class and Description |
---|---|
static interface |
TransitGatewayAttachment.Builder |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String transitGatewayAttachmentId()
The ID of the attachment.
public String transitGatewayId()
The ID of the transit gateway.
public String transitGatewayOwnerId()
The ID of the AWS account that owns the transit gateway.
public String resourceOwnerId()
The ID of the AWS account that owns the resource.
public TransitGatewayAttachmentResourceType resourceType()
The resource type.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return TransitGatewayAttachmentResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service
is available from resourceTypeAsString()
.
TransitGatewayAttachmentResourceType
public String resourceTypeAsString()
The resource type.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return TransitGatewayAttachmentResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service
is available from resourceTypeAsString()
.
TransitGatewayAttachmentResourceType
public String resourceId()
The ID of the resource.
public TransitGatewayAttachmentState state()
The attachment state.
If the service returns an enum value that is not available in the current SDK version, state
will return
TransitGatewayAttachmentState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from stateAsString()
.
TransitGatewayAttachmentState
public String stateAsString()
The attachment state.
If the service returns an enum value that is not available in the current SDK version, state
will return
TransitGatewayAttachmentState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from stateAsString()
.
TransitGatewayAttachmentState
public TransitGatewayAttachmentAssociation association()
The association.
public Instant creationTime()
The creation time.
public List<Tag> tags()
The tags for the attachment.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public TransitGatewayAttachment.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<TransitGatewayAttachment.Builder,TransitGatewayAttachment>
public static TransitGatewayAttachment.Builder builder()
public static Class<? extends TransitGatewayAttachment.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.