@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTransitGatewayVpcAttachmentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateTransitGatewayVpcAttachmentRequest>
NOOP
Constructor and Description |
---|
CreateTransitGatewayVpcAttachmentRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTransitGatewayVpcAttachmentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<CreateTransitGatewayVpcAttachmentRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
CreateTransitGatewayVpcAttachmentRequestOptions |
getOptions()
The VPC attachment options.
|
List<String> |
getSubnetIds()
The IDs of one or more subnets.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the VPC attachment.
|
String |
getTransitGatewayId()
The ID of the transit gateway.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setOptions(CreateTransitGatewayVpcAttachmentRequestOptions options)
The VPC attachment options.
|
void |
setSubnetIds(Collection<String> subnetIds)
The IDs of one or more subnets.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the VPC attachment.
|
void |
setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object.
|
CreateTransitGatewayVpcAttachmentRequest |
withOptions(CreateTransitGatewayVpcAttachmentRequestOptions options)
The VPC attachment options.
|
CreateTransitGatewayVpcAttachmentRequest |
withSubnetIds(Collection<String> subnetIds)
The IDs of one or more subnets.
|
CreateTransitGatewayVpcAttachmentRequest |
withSubnetIds(String... subnetIds)
The IDs of one or more subnets.
|
CreateTransitGatewayVpcAttachmentRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the VPC attachment.
|
CreateTransitGatewayVpcAttachmentRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the VPC attachment.
|
CreateTransitGatewayVpcAttachmentRequest |
withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway.
|
CreateTransitGatewayVpcAttachmentRequest |
withVpcId(String vpcId)
The ID of the VPC.
|
addHandlerContext, 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()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()