/* * 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 { /// /// Describes a virtual private gateway. /// public partial class VpnGateway { private long? _amazonSideAsn; private string _availabilityZone; private VpnState _state; private List _tags = new List(); private GatewayType _type; private List _vpcAttachments = new List(); private string _vpnGatewayId; /// /// Gets and sets the property AmazonSideAsn. /// /// The private Autonomous System Number (ASN) for the Amazon side of a BGP session. /// /// 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 where the virtual private gateway was created, if applicable. /// This field may be empty or not returned. /// /// 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 State. /// /// The current state of the virtual private gateway. /// /// public VpnState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property Tags. /// /// Any tags assigned to the virtual private gateway. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property Type. /// /// The type of VPN connection the virtual private gateway supports. /// /// 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; } /// /// Gets and sets the property VpcAttachments. /// /// Any VPCs attached to the virtual private gateway. /// /// public List VpcAttachments { get { return this._vpcAttachments; } set { this._vpcAttachments = value; } } // Check to see if VpcAttachments property is set internal bool IsSetVpcAttachments() { return this._vpcAttachments != null && this._vpcAttachments.Count > 0; } /// /// Gets and sets the property VpnGatewayId. /// /// The ID of the virtual private gateway. /// /// public string VpnGatewayId { get { return this._vpnGatewayId; } set { this._vpnGatewayId = value; } } // Check to see if VpnGatewayId property is set internal bool IsSetVpnGatewayId() { return this._vpnGatewayId != null; } } }