/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.EC2.Model { /// /// Container for the parameters to the CreateSubnetCidrReservation operation. /// Creates a subnet CIDR reservation. For information about subnet CIDR reservations, /// see Subnet /// CIDR reservations in the Amazon Virtual Private Cloud User Guide. /// public partial class CreateSubnetCidrReservationRequest : AmazonEC2Request { private string _cidr; private string _description; private SubnetCidrReservationType _reservationType; private string _subnetId; private List _tagSpecifications = new List(); /// /// Gets and sets the property Cidr. /// /// The IPv4 or IPV6 CIDR range to reserve. /// /// [AWSProperty(Required=true)] public string Cidr { get { return this._cidr; } set { this._cidr = value; } } // Check to see if Cidr property is set internal bool IsSetCidr() { return this._cidr != null; } /// /// Gets and sets the property Description. /// /// The description to assign to the subnet CIDR reservation. /// /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property ReservationType. /// /// 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. /// ///
///
[AWSProperty(Required=true)] public SubnetCidrReservationType ReservationType { get { return this._reservationType; } set { this._reservationType = value; } } // Check to see if ReservationType property is set internal bool IsSetReservationType() { return this._reservationType != null; } /// /// Gets and sets the property SubnetId. /// /// The ID of the subnet. /// /// [AWSProperty(Required=true)] public string SubnetId { get { return this._subnetId; } set { this._subnetId = value; } } // Check to see if SubnetId property is set internal bool IsSetSubnetId() { return this._subnetId != null; } /// /// Gets and sets the property TagSpecifications. /// /// The tags to assign to the subnet CIDR reservation. /// /// public List TagSpecifications { get { return this._tagSpecifications; } set { this._tagSpecifications = value; } } // Check to see if TagSpecifications property is set internal bool IsSetTagSpecifications() { return this._tagSpecifications != null && this._tagSpecifications.Count > 0; } } }