@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSubnetCidrReservationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSubnetCidrReservationRequest>
NOOP
Constructor and Description |
---|
CreateSubnetCidrReservationRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSubnetCidrReservationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCidr()
The IPv4 or IPV6 CIDR range to reserve.
|
String |
getDescription()
The description to assign to the subnet CIDR reservation.
|
Request<CreateSubnetCidrReservationRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getReservationType()
The type of reservation.
|
String |
getSubnetId()
The ID of the subnet.
|
List<TagSpecification> |
getTagSpecifications()
The tags to assign to the subnet CIDR reservation.
|
int |
hashCode() |
void |
setCidr(String cidr)
The IPv4 or IPV6 CIDR range to reserve.
|
void |
setDescription(String description)
The description to assign to the subnet CIDR reservation.
|
void |
setReservationType(String reservationType)
The type of reservation.
|
void |
setSubnetId(String subnetId)
The ID of the subnet.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the subnet CIDR reservation.
|
String |
toString()
Returns a string representation of this object.
|
CreateSubnetCidrReservationRequest |
withCidr(String cidr)
The IPv4 or IPV6 CIDR range to reserve.
|
CreateSubnetCidrReservationRequest |
withDescription(String description)
The description to assign to the subnet CIDR reservation.
|
CreateSubnetCidrReservationRequest |
withReservationType(String reservationType)
The type of reservation.
|
CreateSubnetCidrReservationRequest |
withReservationType(SubnetCidrReservationType reservationType)
The type of reservation.
|
CreateSubnetCidrReservationRequest |
withSubnetId(String subnetId)
The ID of the subnet.
|
CreateSubnetCidrReservationRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the subnet CIDR reservation.
|
CreateSubnetCidrReservationRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the subnet CIDR reservation.
|
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 void setSubnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public String getSubnetId()
The ID of the subnet.
public CreateSubnetCidrReservationRequest withSubnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public void setCidr(String cidr)
The IPv4 or IPV6 CIDR range to reserve.
cidr
- The IPv4 or IPV6 CIDR range to reserve.public String getCidr()
The IPv4 or IPV6 CIDR range to reserve.
public CreateSubnetCidrReservationRequest withCidr(String cidr)
The IPv4 or IPV6 CIDR range to reserve.
cidr
- The IPv4 or IPV6 CIDR range to reserve.public void setReservationType(String reservationType)
The type of reservation. The reservation type determines how the reserved IP addresses are assigned to resources.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
reservationType
- The type of reservation. The reservation type determines how the reserved IP addresses are assigned to
resources.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
SubnetCidrReservationType
public String getReservationType()
The type of reservation. The reservation type determines how the reserved IP addresses are assigned to resources.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
SubnetCidrReservationType
public CreateSubnetCidrReservationRequest withReservationType(String reservationType)
The type of reservation. The reservation type determines how the reserved IP addresses are assigned to resources.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
reservationType
- The type of reservation. The reservation type determines how the reserved IP addresses are assigned to
resources.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
SubnetCidrReservationType
public CreateSubnetCidrReservationRequest withReservationType(SubnetCidrReservationType reservationType)
The type of reservation. The reservation type determines how the reserved IP addresses are assigned to resources.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
reservationType
- The type of reservation. The reservation type determines how the reserved IP addresses are assigned to
resources.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
SubnetCidrReservationType
public void setDescription(String description)
The description to assign to the subnet CIDR reservation.
description
- The description to assign to the subnet CIDR reservation.public String getDescription()
The description to assign to the subnet CIDR reservation.
public CreateSubnetCidrReservationRequest withDescription(String description)
The description to assign to the subnet CIDR reservation.
description
- The description to assign to the subnet CIDR reservation.public List<TagSpecification> getTagSpecifications()
The tags to assign to the subnet CIDR reservation.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the subnet CIDR reservation.
tagSpecifications
- The tags to assign to the subnet CIDR reservation.public CreateSubnetCidrReservationRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the subnet CIDR reservation.
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 CIDR reservation.public CreateSubnetCidrReservationRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the subnet CIDR reservation.
tagSpecifications
- The tags to assign to the subnet CIDR reservation.public Request<CreateSubnetCidrReservationRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateSubnetCidrReservationRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateSubnetCidrReservationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()