@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTransitGatewayVpcAttachmentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateTransitGatewayVpcAttachmentRequest>
NOOP
Constructor and Description |
---|
CreateTransitGatewayVpcAttachmentRequest() |
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateTransitGatewayVpcAttachmentRequest()
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 CreateTransitGatewayVpcAttachmentRequest 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 CreateTransitGatewayVpcAttachmentRequest withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public List<String> getSubnetIds()
The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
public void setSubnetIds(Collection<String> subnetIds)
The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
subnetIds
- The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at
least one subnet, but we recommend that you specify two subnets for better availability. The transit
gateway uses one IP address from each specified subnet.public CreateTransitGatewayVpcAttachmentRequest withSubnetIds(String... subnetIds)
The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
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 one or more subnets. You can specify only one subnet per Availability Zone. You must specify at
least one subnet, but we recommend that you specify two subnets for better availability. The transit
gateway uses one IP address from each specified subnet.public CreateTransitGatewayVpcAttachmentRequest withSubnetIds(Collection<String> subnetIds)
The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
subnetIds
- The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at
least one subnet, but we recommend that you specify two subnets for better availability. The transit
gateway uses one IP address from each specified subnet.public void setOptions(CreateTransitGatewayVpcAttachmentRequestOptions options)
The VPC attachment options.
options
- The VPC attachment options.public CreateTransitGatewayVpcAttachmentRequestOptions getOptions()
The VPC attachment options.
public CreateTransitGatewayVpcAttachmentRequest withOptions(CreateTransitGatewayVpcAttachmentRequestOptions options)
The VPC attachment options.
options
- The VPC attachment options.public List<TagSpecification> getTagSpecifications()
The tags to apply to the VPC attachment.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the VPC attachment.
tagSpecifications
- The tags to apply to the VPC attachment.public CreateTransitGatewayVpcAttachmentRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the VPC attachment.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the VPC attachment.public CreateTransitGatewayVpcAttachmentRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the VPC attachment.
tagSpecifications
- The tags to apply to the VPC attachment.public Request<CreateTransitGatewayVpcAttachmentRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateTransitGatewayVpcAttachmentRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateTransitGatewayVpcAttachmentRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2022. All rights reserved.