@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 |
Modifier and Type | Method and Description |
---|---|
TransitGatewayAttachmentAssociation |
association()
The association.
|
static TransitGatewayAttachment.Builder |
builder() |
Instant |
creationTime()
The creation time.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
resourceId()
The ID of the resource.
|
String |
resourceOwnerId()
The ID of the AWS account that owns the resource.
|
TransitGatewayAttachmentResourceType |
resourceType()
The resource type.
|
String |
resourceTypeAsString()
The resource type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TransitGatewayAttachment.Builder> |
serializableBuilderClass() |
TransitGatewayAttachmentState |
state()
The attachment state.
|
String |
stateAsString()
The attachment state.
|
List<Tag> |
tags()
The tags for the attachment.
|
TransitGatewayAttachment.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
transitGatewayAttachmentId()
The ID of the attachment.
|
String |
transitGatewayId()
The ID of the transit gateway.
|
String |
transitGatewayOwnerId()
The ID of the AWS account that owns the transit gateway.
|
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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TransitGatewayAttachment.Builder,TransitGatewayAttachment>
public static TransitGatewayAttachment.Builder builder()
public static Class<? extends TransitGatewayAttachment.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.