/*
* 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 AssignPrivateNatGatewayAddress operation.
/// Assigns one or more private IPv4 addresses to a private NAT gateway. For more information,
/// see Work
/// with NAT gateways in the Amazon VPC User Guide.
///
public partial class AssignPrivateNatGatewayAddressRequest : AmazonEC2Request
{
private string _natGatewayId;
private int? _privateIpAddressCount;
private List _privateIpAddresses = new List();
///
/// Gets and sets the property NatGatewayId.
///
/// The ID of the NAT gateway.
///
///
[AWSProperty(Required=true)]
public string NatGatewayId
{
get { return this._natGatewayId; }
set { this._natGatewayId = value; }
}
// Check to see if NatGatewayId property is set
internal bool IsSetNatGatewayId()
{
return this._natGatewayId != null;
}
///
/// Gets and sets the property PrivateIpAddressCount.
///
/// The number of private IP addresses to assign to the NAT gateway. You can't specify
/// this parameter when also specifying private IP addresses.
///
///
[AWSProperty(Min=1, Max=31)]
public int PrivateIpAddressCount
{
get { return this._privateIpAddressCount.GetValueOrDefault(); }
set { this._privateIpAddressCount = value; }
}
// Check to see if PrivateIpAddressCount property is set
internal bool IsSetPrivateIpAddressCount()
{
return this._privateIpAddressCount.HasValue;
}
///
/// Gets and sets the property PrivateIpAddresses.
///
/// The private IPv4 addresses you want to assign to the private NAT gateway.
///
///
public List PrivateIpAddresses
{
get { return this._privateIpAddresses; }
set { this._privateIpAddresses = value; }
}
// Check to see if PrivateIpAddresses property is set
internal bool IsSetPrivateIpAddresses()
{
return this._privateIpAddresses != null && this._privateIpAddresses.Count > 0;
}
}
}