/*
* 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 CreateVpnGateway operation.
/// Creates a virtual private gateway. A virtual private gateway is the endpoint on the
/// VPC side of your VPN connection. You can create a virtual private gateway before creating
/// the VPC itself.
///
///
///
/// For more information, see Amazon
/// Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User
/// Guide.
///
///
public partial class CreateVpnGatewayRequest : AmazonEC2Request
{
private long? _amazonSideAsn;
private string _availabilityZone;
private List _tagSpecifications = new List();
private GatewayType _type;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public CreateVpnGatewayRequest() { }
///
/// Instantiates CreateVpnGatewayRequest with the parameterized properties
///
/// The type of VPN connection this virtual private gateway supports.
public CreateVpnGatewayRequest(GatewayType type)
{
_type = type;
}
///
/// Gets and sets the property AmazonSideAsn.
///
/// A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If
/// you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using
/// a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
///
///
///
/// Default: 64512
///
///
public long AmazonSideAsn
{
get { return this._amazonSideAsn.GetValueOrDefault(); }
set { this._amazonSideAsn = value; }
}
// Check to see if AmazonSideAsn property is set
internal bool IsSetAmazonSideAsn()
{
return this._amazonSideAsn.HasValue;
}
///
/// Gets and sets the property AvailabilityZone.
///
/// The Availability Zone for the virtual private gateway.
///
///
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
///
/// Gets and sets the property TagSpecifications.
///
/// The tags to apply to the virtual private gateway.
///
///
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;
}
///
/// Gets and sets the property Type.
///
/// The type of VPN connection this virtual private gateway supports.
///
///
[AWSProperty(Required=true)]
public GatewayType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}