@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TransitGatewayAttachment extends Object implements Serializable, Cloneable
Describes an attachment between a resource and a transit gateway.
Constructor and Description |
---|
TransitGatewayAttachment() |
Modifier and Type | Method and Description |
---|---|
TransitGatewayAttachment |
clone() |
boolean |
equals(Object obj) |
TransitGatewayAttachmentAssociation |
getAssociation()
The association.
|
Date |
getCreationTime()
The creation time.
|
String |
getResourceId()
The ID of the resource.
|
String |
getResourceOwnerId()
The ID of the Amazon Web Services account that owns the resource.
|
String |
getResourceType()
The resource type.
|
String |
getState()
The attachment state.
|
List<Tag> |
getTags()
The tags for the attachment.
|
String |
getTransitGatewayAttachmentId()
The ID of the attachment.
|
String |
getTransitGatewayId()
The ID of the transit gateway.
|
String |
getTransitGatewayOwnerId()
The ID of the Amazon Web Services account that owns the transit gateway.
|
int |
hashCode() |
void |
setAssociation(TransitGatewayAttachmentAssociation association)
The association.
|
void |
setCreationTime(Date creationTime)
The creation time.
|
void |
setResourceId(String resourceId)
The ID of the resource.
|
void |
setResourceOwnerId(String resourceOwnerId)
The ID of the Amazon Web Services account that owns the resource.
|
void |
setResourceType(String resourceType)
The resource type.
|
void |
setState(String state)
The attachment state.
|
void |
setTags(Collection<Tag> tags)
The tags for the attachment.
|
void |
setTransitGatewayAttachmentId(String transitGatewayAttachmentId)
The ID of the attachment.
|
void |
setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
|
void |
setTransitGatewayOwnerId(String transitGatewayOwnerId)
The ID of the Amazon Web Services account that owns the transit gateway.
|
String |
toString()
Returns a string representation of this object.
|
TransitGatewayAttachment |
withAssociation(TransitGatewayAttachmentAssociation association)
The association.
|
TransitGatewayAttachment |
withCreationTime(Date creationTime)
The creation time.
|
TransitGatewayAttachment |
withResourceId(String resourceId)
The ID of the resource.
|
TransitGatewayAttachment |
withResourceOwnerId(String resourceOwnerId)
The ID of the Amazon Web Services account that owns the resource.
|
TransitGatewayAttachment |
withResourceType(String resourceType)
The resource type.
|
TransitGatewayAttachment |
withResourceType(TransitGatewayAttachmentResourceType resourceType)
The resource type.
|
TransitGatewayAttachment |
withState(String state)
The attachment state.
|
TransitGatewayAttachment |
withState(TransitGatewayAttachmentState state)
The attachment state.
|
TransitGatewayAttachment |
withTags(Collection<Tag> tags)
The tags for the attachment.
|
TransitGatewayAttachment |
withTags(Tag... tags)
The tags for the attachment.
|
TransitGatewayAttachment |
withTransitGatewayAttachmentId(String transitGatewayAttachmentId)
The ID of the attachment.
|
TransitGatewayAttachment |
withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
|
TransitGatewayAttachment |
withTransitGatewayOwnerId(String transitGatewayOwnerId)
The ID of the Amazon Web Services account that owns the transit gateway.
|
public void setTransitGatewayAttachmentId(String transitGatewayAttachmentId)
The ID of the attachment.
transitGatewayAttachmentId
- The ID of the attachment.public String getTransitGatewayAttachmentId()
The ID of the attachment.
public TransitGatewayAttachment withTransitGatewayAttachmentId(String transitGatewayAttachmentId)
The ID of the attachment.
transitGatewayAttachmentId
- The ID of the attachment.public void setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
transitGatewayId
- The ID of the transit gateway.public String getTransitGatewayId()
The ID of the transit gateway.
public TransitGatewayAttachment withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
transitGatewayId
- The ID of the transit gateway.public void setTransitGatewayOwnerId(String transitGatewayOwnerId)
The ID of the Amazon Web Services account that owns the transit gateway.
transitGatewayOwnerId
- The ID of the Amazon Web Services account that owns the transit gateway.public String getTransitGatewayOwnerId()
The ID of the Amazon Web Services account that owns the transit gateway.
public TransitGatewayAttachment withTransitGatewayOwnerId(String transitGatewayOwnerId)
The ID of the Amazon Web Services account that owns the transit gateway.
transitGatewayOwnerId
- The ID of the Amazon Web Services account that owns the transit gateway.public void setResourceOwnerId(String resourceOwnerId)
The ID of the Amazon Web Services account that owns the resource.
resourceOwnerId
- The ID of the Amazon Web Services account that owns the resource.public String getResourceOwnerId()
The ID of the Amazon Web Services account that owns the resource.
public TransitGatewayAttachment withResourceOwnerId(String resourceOwnerId)
The ID of the Amazon Web Services account that owns the resource.
resourceOwnerId
- The ID of the Amazon Web Services account that owns the resource.public void setResourceType(String resourceType)
The resource type. Note that the tgw-peering
resource type has been deprecated.
resourceType
- The resource type. Note that the tgw-peering
resource type has been deprecated.TransitGatewayAttachmentResourceType
public String getResourceType()
The resource type. Note that the tgw-peering
resource type has been deprecated.
tgw-peering
resource type has been deprecated.TransitGatewayAttachmentResourceType
public TransitGatewayAttachment withResourceType(String resourceType)
The resource type. Note that the tgw-peering
resource type has been deprecated.
resourceType
- The resource type. Note that the tgw-peering
resource type has been deprecated.TransitGatewayAttachmentResourceType
public TransitGatewayAttachment withResourceType(TransitGatewayAttachmentResourceType resourceType)
The resource type. Note that the tgw-peering
resource type has been deprecated.
resourceType
- The resource type. Note that the tgw-peering
resource type has been deprecated.TransitGatewayAttachmentResourceType
public void setResourceId(String resourceId)
The ID of the resource.
resourceId
- The ID of the resource.public String getResourceId()
The ID of the resource.
public TransitGatewayAttachment withResourceId(String resourceId)
The ID of the resource.
resourceId
- The ID of the resource.public void setState(String state)
The attachment state. Note that the initiating
state has been deprecated.
state
- The attachment state. Note that the initiating
state has been deprecated.TransitGatewayAttachmentState
public String getState()
The attachment state. Note that the initiating
state has been deprecated.
initiating
state has been deprecated.TransitGatewayAttachmentState
public TransitGatewayAttachment withState(String state)
The attachment state. Note that the initiating
state has been deprecated.
state
- The attachment state. Note that the initiating
state has been deprecated.TransitGatewayAttachmentState
public TransitGatewayAttachment withState(TransitGatewayAttachmentState state)
The attachment state. Note that the initiating
state has been deprecated.
state
- The attachment state. Note that the initiating
state has been deprecated.TransitGatewayAttachmentState
public void setAssociation(TransitGatewayAttachmentAssociation association)
The association.
association
- The association.public TransitGatewayAttachmentAssociation getAssociation()
The association.
public TransitGatewayAttachment withAssociation(TransitGatewayAttachmentAssociation association)
The association.
association
- The association.public void setCreationTime(Date creationTime)
The creation time.
creationTime
- The creation time.public Date getCreationTime()
The creation time.
public TransitGatewayAttachment withCreationTime(Date creationTime)
The creation time.
creationTime
- The creation time.public List<Tag> getTags()
The tags for the attachment.
public void setTags(Collection<Tag> tags)
The tags for the attachment.
tags
- The tags for the attachment.public TransitGatewayAttachment withTags(Tag... tags)
The tags for the attachment.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for the attachment.public TransitGatewayAttachment withTags(Collection<Tag> tags)
The tags for the attachment.
tags
- The tags for the attachment.public String toString()
toString
in class Object
Object.toString()
public TransitGatewayAttachment clone()