@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSubnetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSubnetRequest>
NOOP
Constructor and Description |
---|
CreateSubnetRequest()
Default constructor for CreateSubnetRequest object.
|
CreateSubnetRequest(String vpcId,
String cidrBlock)
Constructs a new CreateSubnetRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateSubnetRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone or Local Zone for the subnet.
|
String |
getAvailabilityZoneId()
The AZ ID or the Local Zone ID of the subnet.
|
String |
getCidrBlock()
The IPv4 network range for the subnet, in CIDR notation.
|
Request<CreateSubnetRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getIpv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost.
|
List<TagSpecification> |
getTagSpecifications()
The tags to assign to the subnet.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone or Local Zone for the subnet.
|
void |
setAvailabilityZoneId(String availabilityZoneId)
The AZ ID or the Local Zone ID of the subnet.
|
void |
setCidrBlock(String cidrBlock)
The IPv4 network range for the subnet, in CIDR notation.
|
void |
setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the subnet.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object.
|
CreateSubnetRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone or Local Zone for the subnet.
|
CreateSubnetRequest |
withAvailabilityZoneId(String availabilityZoneId)
The AZ ID or the Local Zone ID of the subnet.
|
CreateSubnetRequest |
withCidrBlock(String cidrBlock)
The IPv4 network range for the subnet, in CIDR notation.
|
CreateSubnetRequest |
withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation.
|
CreateSubnetRequest |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
|
CreateSubnetRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the subnet.
|
CreateSubnetRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the subnet.
|
CreateSubnetRequest |
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 CreateSubnetRequest()
public CreateSubnetRequest(String vpcId, String cidrBlock)
vpcId
- The ID of the VPC.cidrBlock
- The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24
. We modify
the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
,
we modify it to 100.68.0.0/18
.public List<TagSpecification> getTagSpecifications()
The tags to assign to the subnet.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the subnet.
tagSpecifications
- The tags to assign to the subnet.public CreateSubnetRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the subnet.
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 assign to the subnet.public CreateSubnetRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the subnet.
tagSpecifications
- The tags to assign to the subnet.public void setAvailabilityZone(String availabilityZone)
The Availability Zone or Local Zone for the subnet.
Default: AWS selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example
us-west-2-lax-1a
. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
availabilityZone
- The Availability Zone or Local Zone for the subnet.
Default: AWS selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example
us-west-2-lax-1a
. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
public String getAvailabilityZone()
The Availability Zone or Local Zone for the subnet.
Default: AWS selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example
us-west-2-lax-1a
. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
Default: AWS selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example
us-west-2-lax-1a
. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
public CreateSubnetRequest withAvailabilityZone(String availabilityZone)
The Availability Zone or Local Zone for the subnet.
Default: AWS selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example
us-west-2-lax-1a
. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
availabilityZone
- The Availability Zone or Local Zone for the subnet.
Default: AWS selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example
us-west-2-lax-1a
. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
public void setAvailabilityZoneId(String availabilityZoneId)
The AZ ID or the Local Zone ID of the subnet.
availabilityZoneId
- The AZ ID or the Local Zone ID of the subnet.public String getAvailabilityZoneId()
The AZ ID or the Local Zone ID of the subnet.
public CreateSubnetRequest withAvailabilityZoneId(String availabilityZoneId)
The AZ ID or the Local Zone ID of the subnet.
availabilityZoneId
- The AZ ID or the Local Zone ID of the subnet.public void setCidrBlock(String cidrBlock)
The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24
. We modify the
specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
, we modify it
to 100.68.0.0/18
.
cidrBlock
- The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24
. We modify
the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
,
we modify it to 100.68.0.0/18
.public String getCidrBlock()
The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24
. We modify the
specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
, we modify it
to 100.68.0.0/18
.
10.0.0.0/24
. We modify
the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
,
we modify it to 100.68.0.0/18
.public CreateSubnetRequest withCidrBlock(String cidrBlock)
The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24
. We modify the
specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
, we modify it
to 100.68.0.0/18
.
cidrBlock
- The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24
. We modify
the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
,
we modify it to 100.68.0.0/18
.public void setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
ipv6CidrBlock
- The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.public String getIpv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
public CreateSubnetRequest withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
ipv6CidrBlock
- The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.public void setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN, you must also specify the Availability Zone of the Outpost subnet.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN, you must also specify the
Availability Zone of the Outpost subnet.public String getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN, you must also specify the Availability Zone of the Outpost subnet.
public CreateSubnetRequest withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN, you must also specify the Availability Zone of the Outpost subnet.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN, you must also specify the
Availability Zone of the Outpost subnet.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 CreateSubnetRequest withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public Request<CreateSubnetRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateSubnetRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateSubnetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.