@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 |
getIpv4IpamPoolId()
An IPv4 IPAM pool ID for the subnet.
|
Integer |
getIpv4NetmaskLength()
An IPv4 netmask length for the subnet.
|
String |
getIpv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation.
|
String |
getIpv6IpamPoolId()
An IPv6 IPAM pool ID for the subnet.
|
Boolean |
getIpv6Native()
Indicates whether to create an IPv6 only subnet.
|
Integer |
getIpv6NetmaskLength()
An IPv6 netmask length for the subnet.
|
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() |
Boolean |
isIpv6Native()
Indicates whether to create an IPv6 only subnet.
|
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 |
setIpv4IpamPoolId(String ipv4IpamPoolId)
An IPv4 IPAM pool ID for the subnet.
|
void |
setIpv4NetmaskLength(Integer ipv4NetmaskLength)
An IPv4 netmask length for the subnet.
|
void |
setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation.
|
void |
setIpv6IpamPoolId(String ipv6IpamPoolId)
An IPv6 IPAM pool ID for the subnet.
|
void |
setIpv6Native(Boolean ipv6Native)
Indicates whether to create an IPv6 only subnet.
|
void |
setIpv6NetmaskLength(Integer ipv6NetmaskLength)
An IPv6 netmask length for the subnet.
|
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 |
withIpv4IpamPoolId(String ipv4IpamPoolId)
An IPv4 IPAM pool ID for the subnet.
|
CreateSubnetRequest |
withIpv4NetmaskLength(Integer ipv4NetmaskLength)
An IPv4 netmask length for the subnet.
|
CreateSubnetRequest |
withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation.
|
CreateSubnetRequest |
withIpv6IpamPoolId(String ipv6IpamPoolId)
An IPv6 IPAM pool ID for the subnet.
|
CreateSubnetRequest |
withIpv6Native(Boolean ipv6Native)
Indicates whether to create an IPv6 only subnet.
|
CreateSubnetRequest |
withIpv6NetmaskLength(Integer ipv6NetmaskLength)
An IPv6 netmask length for the subnet.
|
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
.
This parameter is not supported for an IPv6 only subnet.
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: Amazon Web Services 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 Local Zones.
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: Amazon Web Services 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 Local
Zones.
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: Amazon Web Services 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 Local Zones.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
Default: Amazon Web Services 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 Local
Zones.
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: Amazon Web Services 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 Local Zones.
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: Amazon Web Services 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 Local
Zones.
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
.
This parameter is not supported for an IPv6 only subnet.
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
.
This parameter is not supported for an IPv6 only subnet.
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
.
This parameter is not supported for an IPv6 only subnet.
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
.
This parameter is not supported for an IPv6 only subnet.
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
.
This parameter is not supported for an IPv6 only subnet.
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
.
This parameter is not supported for an IPv6 only subnet.
public void setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation. This parameter is required for an IPv6 only subnet.
ipv6CidrBlock
- The IPv6 network range for the subnet, in CIDR notation. This parameter is required for an IPv6 only
subnet.public String getIpv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation. This parameter is required for an IPv6 only subnet.
public CreateSubnetRequest withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation. This parameter is required for an IPv6 only subnet.
ipv6CidrBlock
- The IPv6 network range for the subnet, in CIDR notation. This parameter is required for an IPv6 only
subnet.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 void setIpv6Native(Boolean ipv6Native)
Indicates whether to create an IPv6 only subnet.
ipv6Native
- Indicates whether to create an IPv6 only subnet.public Boolean getIpv6Native()
Indicates whether to create an IPv6 only subnet.
public CreateSubnetRequest withIpv6Native(Boolean ipv6Native)
Indicates whether to create an IPv6 only subnet.
ipv6Native
- Indicates whether to create an IPv6 only subnet.public Boolean isIpv6Native()
Indicates whether to create an IPv6 only subnet.
public void setIpv4IpamPoolId(String ipv4IpamPoolId)
An IPv4 IPAM pool ID for the subnet.
ipv4IpamPoolId
- An IPv4 IPAM pool ID for the subnet.public String getIpv4IpamPoolId()
An IPv4 IPAM pool ID for the subnet.
public CreateSubnetRequest withIpv4IpamPoolId(String ipv4IpamPoolId)
An IPv4 IPAM pool ID for the subnet.
ipv4IpamPoolId
- An IPv4 IPAM pool ID for the subnet.public void setIpv4NetmaskLength(Integer ipv4NetmaskLength)
An IPv4 netmask length for the subnet.
ipv4NetmaskLength
- An IPv4 netmask length for the subnet.public Integer getIpv4NetmaskLength()
An IPv4 netmask length for the subnet.
public CreateSubnetRequest withIpv4NetmaskLength(Integer ipv4NetmaskLength)
An IPv4 netmask length for the subnet.
ipv4NetmaskLength
- An IPv4 netmask length for the subnet.public void setIpv6IpamPoolId(String ipv6IpamPoolId)
An IPv6 IPAM pool ID for the subnet.
ipv6IpamPoolId
- An IPv6 IPAM pool ID for the subnet.public String getIpv6IpamPoolId()
An IPv6 IPAM pool ID for the subnet.
public CreateSubnetRequest withIpv6IpamPoolId(String ipv6IpamPoolId)
An IPv6 IPAM pool ID for the subnet.
ipv6IpamPoolId
- An IPv6 IPAM pool ID for the subnet.public void setIpv6NetmaskLength(Integer ipv6NetmaskLength)
An IPv6 netmask length for the subnet.
ipv6NetmaskLength
- An IPv6 netmask length for the subnet.public Integer getIpv6NetmaskLength()
An IPv6 netmask length for the subnet.
public CreateSubnetRequest withIpv6NetmaskLength(Integer ipv6NetmaskLength)
An IPv6 netmask length for the subnet.
ipv6NetmaskLength
- An IPv6 netmask length for the subnet.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()