@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TransitGatewayVpcAttachment extends Object implements Serializable, Cloneable
Describes a VPC attachment.
Constructor and Description |
---|
TransitGatewayVpcAttachment() |
Modifier and Type | Method and Description |
---|---|
TransitGatewayVpcAttachment |
clone() |
boolean |
equals(Object obj) |
Date |
getCreationTime()
The creation time.
|
TransitGatewayVpcAttachmentOptions |
getOptions()
The VPC attachment options.
|
String |
getState()
The state of the VPC attachment.
|
List<String> |
getSubnetIds()
The IDs of the subnets.
|
List<Tag> |
getTags()
The tags for the VPC attachment.
|
String |
getTransitGatewayAttachmentId()
The ID of the attachment.
|
String |
getTransitGatewayId()
The ID of the transit gateway.
|
String |
getVpcId()
The ID of the VPC.
|
String |
getVpcOwnerId()
The ID of the Amazon Web Services account that owns the VPC.
|
int |
hashCode() |
void |
setCreationTime(Date creationTime)
The creation time.
|
void |
setOptions(TransitGatewayVpcAttachmentOptions options)
The VPC attachment options.
|
void |
setState(String state)
The state of the VPC attachment.
|
void |
setSubnetIds(Collection<String> subnetIds)
The IDs of the subnets.
|
void |
setTags(Collection<Tag> tags)
The tags for the VPC attachment.
|
void |
setTransitGatewayAttachmentId(String transitGatewayAttachmentId)
The ID of the attachment.
|
void |
setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
void |
setVpcOwnerId(String vpcOwnerId)
The ID of the Amazon Web Services account that owns the VPC.
|
String |
toString()
Returns a string representation of this object.
|
TransitGatewayVpcAttachment |
withCreationTime(Date creationTime)
The creation time.
|
TransitGatewayVpcAttachment |
withOptions(TransitGatewayVpcAttachmentOptions options)
The VPC attachment options.
|
TransitGatewayVpcAttachment |
withState(String state)
The state of the VPC attachment.
|
TransitGatewayVpcAttachment |
withState(TransitGatewayAttachmentState state)
The state of the VPC attachment.
|
TransitGatewayVpcAttachment |
withSubnetIds(Collection<String> subnetIds)
The IDs of the subnets.
|
TransitGatewayVpcAttachment |
withSubnetIds(String... subnetIds)
The IDs of the subnets.
|
TransitGatewayVpcAttachment |
withTags(Collection<Tag> tags)
The tags for the VPC attachment.
|
TransitGatewayVpcAttachment |
withTags(Tag... tags)
The tags for the VPC attachment.
|
TransitGatewayVpcAttachment |
withTransitGatewayAttachmentId(String transitGatewayAttachmentId)
The ID of the attachment.
|
TransitGatewayVpcAttachment |
withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
|
TransitGatewayVpcAttachment |
withVpcId(String vpcId)
The ID of the VPC.
|
TransitGatewayVpcAttachment |
withVpcOwnerId(String vpcOwnerId)
The ID of the Amazon Web Services account that owns the VPC.
|
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 TransitGatewayVpcAttachment 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 TransitGatewayVpcAttachment withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
transitGatewayId
- The ID of the transit gateway.public void setVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String getVpcId()
The ID of the VPC.
public TransitGatewayVpcAttachment withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setVpcOwnerId(String vpcOwnerId)
The ID of the Amazon Web Services account that owns the VPC.
vpcOwnerId
- The ID of the Amazon Web Services account that owns the VPC.public String getVpcOwnerId()
The ID of the Amazon Web Services account that owns the VPC.
public TransitGatewayVpcAttachment withVpcOwnerId(String vpcOwnerId)
The ID of the Amazon Web Services account that owns the VPC.
vpcOwnerId
- The ID of the Amazon Web Services account that owns the VPC.public void setState(String state)
The state of the VPC attachment. Note that the initiating
state has been deprecated.
state
- The state of the VPC attachment. Note that the initiating
state has been deprecated.TransitGatewayAttachmentState
public String getState()
The state of the VPC attachment. Note that the initiating
state has been deprecated.
initiating
state has been deprecated.TransitGatewayAttachmentState
public TransitGatewayVpcAttachment withState(String state)
The state of the VPC attachment. Note that the initiating
state has been deprecated.
state
- The state of the VPC attachment. Note that the initiating
state has been deprecated.TransitGatewayAttachmentState
public TransitGatewayVpcAttachment withState(TransitGatewayAttachmentState state)
The state of the VPC attachment. Note that the initiating
state has been deprecated.
state
- The state of the VPC attachment. Note that the initiating
state has been deprecated.TransitGatewayAttachmentState
public List<String> getSubnetIds()
The IDs of the subnets.
public void setSubnetIds(Collection<String> subnetIds)
The IDs of the subnets.
subnetIds
- The IDs of the subnets.public TransitGatewayVpcAttachment withSubnetIds(String... subnetIds)
The IDs of the subnets.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to
override the existing values.
subnetIds
- The IDs of the subnets.public TransitGatewayVpcAttachment withSubnetIds(Collection<String> subnetIds)
The IDs of the subnets.
subnetIds
- The IDs of the subnets.public void setCreationTime(Date creationTime)
The creation time.
creationTime
- The creation time.public Date getCreationTime()
The creation time.
public TransitGatewayVpcAttachment withCreationTime(Date creationTime)
The creation time.
creationTime
- The creation time.public void setOptions(TransitGatewayVpcAttachmentOptions options)
The VPC attachment options.
options
- The VPC attachment options.public TransitGatewayVpcAttachmentOptions getOptions()
The VPC attachment options.
public TransitGatewayVpcAttachment withOptions(TransitGatewayVpcAttachmentOptions options)
The VPC attachment options.
options
- The VPC attachment options.public List<Tag> getTags()
The tags for the VPC attachment.
public void setTags(Collection<Tag> tags)
The tags for the VPC attachment.
tags
- The tags for the VPC attachment.public TransitGatewayVpcAttachment withTags(Tag... tags)
The tags for the VPC 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 VPC attachment.public TransitGatewayVpcAttachment withTags(Collection<Tag> tags)
The tags for the VPC attachment.
tags
- The tags for the VPC attachment.public String toString()
toString
in class Object
Object.toString()
public TransitGatewayVpcAttachment clone()