/* * 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. *

*/ private String subnetId; /** *

* The IPv4 or IPV6 CIDR range to reserve. *

*/ private String cidr; /** *

* The type of reservation. *

*

* The following are valid values: *

* */ private String reservationType; /** *

* The description to assign to the subnet CIDR reservation. *

*/ private String description; /** *

* The tags to assign to the subnet CIDR reservation. *

*/ private com.amazonaws.internal.SdkInternalList tagSpecifications; /** *

* The ID of the subnet. *

* * @param subnetId * The ID of the subnet. */ public void setSubnetId(String subnetId) { this.subnetId = subnetId; } /** *

* The ID of the subnet. *

* * @return The ID of the subnet. */ public String getSubnetId() { return this.subnetId; } /** *

* The ID of the subnet. *

* * @param subnetId * The ID of the subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubnetCidrReservationRequest withSubnetId(String subnetId) { setSubnetId(subnetId); return this; } /** *

* The IPv4 or IPV6 CIDR range to reserve. *

* * @param cidr * The IPv4 or IPV6 CIDR range to reserve. */ public void setCidr(String cidr) { this.cidr = cidr; } /** *

* The IPv4 or IPV6 CIDR range to reserve. *

* * @return The IPv4 or IPV6 CIDR range to reserve. */ public String getCidr() { return this.cidr; } /** *

* The IPv4 or IPV6 CIDR range to reserve. *

* * @param cidr * The IPv4 or IPV6 CIDR range to reserve. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSubnetCidrReservationRequest withCidr(String cidr) { setCidr(cidr); return this; } /** *

* The type of reservation. *

*

* The following are valid values: *

* * * @param reservationType * The type of reservation.

*

* The following are valid values: *

*