/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.CreateSubnetCidrReservationRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateSubnetCidrReservationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* The ID of the subnet.
*
* The IPv4 or IPV6 CIDR range to reserve.
*
* The type of reservation.
*
* The following are valid values:
*
*
*
* The description to assign to the subnet CIDR reservation.
*
* The tags to assign to the subnet CIDR reservation.
*
* The ID of the subnet.
*
* The ID of the subnet.
*
* The ID of the subnet.
*
* The IPv4 or IPV6 CIDR range to reserve.
*
* The IPv4 or IPV6 CIDR range to reserve.
*
* The IPv4 or IPV6 CIDR range to reserve.
*
* The type of reservation.
*
* The following are valid values:
*
*
*
*
*/
private String reservationType;
/**
* prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that
* are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for
* Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
*
*
* @param reservationType
* The type of reservation.prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that
* are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for
* Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
* The following are valid values: *
*
* prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network
* interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation
* for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
*
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
* The type of reservation. *
** The following are valid values: *
*
* prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that
* are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for
* Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
*
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
* The following are valid values: *
*
* prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network
* interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation
* for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
*
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
* The type of reservation. *
** The following are valid values: *
*
* prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that
* are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for
* Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
*
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
* The following are valid values: *
*
* prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network
* interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation
* for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
*
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
* The type of reservation. *
** The following are valid values: *
*
* prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that
* are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for
* Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
*
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
* The following are valid values: *
*
* prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network
* interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation
* for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
*
* explicit
: You manually assign the IP addresses to resources that reside in your subnet.
*
* The description to assign to the subnet CIDR reservation. *
* * @param description * The description to assign to the subnet CIDR reservation. */ public void setDescription(String description) { this.description = description; } /** ** The description to assign to the subnet CIDR reservation. *
* * @return The description to assign to the subnet CIDR reservation. */ public String getDescription() { return this.description; } /** ** The description to assign to the subnet CIDR reservation. *
* * @param description * The description to assign to the subnet CIDR reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubnetCidrReservationRequest withDescription(String description) { setDescription(description); return this; } /** ** The tags to assign to the subnet CIDR reservation. *
* * @return The tags to assign to the subnet CIDR reservation. */ public java.util.List* The tags to assign to the subnet CIDR reservation. *
* * @param tagSpecifications * The tags to assign to the subnet CIDR reservation. */ public void setTagSpecifications(java.util.Collection* The tags to assign to the subnet CIDR reservation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagSpecifications(java.util.Collection)} or {@link #withTagSpecifications(java.util.Collection)} if * you want to override the existing values. *
* * @param tagSpecifications * The tags to assign to the subnet CIDR reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubnetCidrReservationRequest withTagSpecifications(TagSpecification... tagSpecifications) { if (this.tagSpecifications == null) { setTagSpecifications(new com.amazonaws.internal.SdkInternalList* The tags to assign to the subnet CIDR reservation. *
* * @param tagSpecifications * The tags to assign to the subnet CIDR reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubnetCidrReservationRequest withTagSpecifications(java.util.Collection