/* * 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 VPN connection options. /// public partial class VpnConnectionOptions { private bool? _enableAcceleration; private string _localIpv4NetworkCidr; private string _localIpv6NetworkCidr; private string _outsideIpAddressType; private string _remoteIpv4NetworkCidr; private string _remoteIpv6NetworkCidr; private bool? _staticRoutesOnly; private string _transportTransitGatewayAttachmentId; private TunnelInsideIpVersion _tunnelInsideIpVersion; private List _tunnelOptions = new List(); /// /// Gets and sets the property EnableAcceleration. /// /// Indicates whether acceleration is enabled for the VPN connection. /// /// public bool EnableAcceleration { get { return this._enableAcceleration.GetValueOrDefault(); } set { this._enableAcceleration = value; } } // Check to see if EnableAcceleration property is set internal bool IsSetEnableAcceleration() { return this._enableAcceleration.HasValue; } /// /// Gets and sets the property LocalIpv4NetworkCidr. /// /// The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. /// /// public string LocalIpv4NetworkCidr { get { return this._localIpv4NetworkCidr; } set { this._localIpv4NetworkCidr = value; } } // Check to see if LocalIpv4NetworkCidr property is set internal bool IsSetLocalIpv4NetworkCidr() { return this._localIpv4NetworkCidr != null; } /// /// Gets and sets the property LocalIpv6NetworkCidr. /// /// The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. /// /// public string LocalIpv6NetworkCidr { get { return this._localIpv6NetworkCidr; } set { this._localIpv6NetworkCidr = value; } } // Check to see if LocalIpv6NetworkCidr property is set internal bool IsSetLocalIpv6NetworkCidr() { return this._localIpv6NetworkCidr != null; } /// /// Gets and sets the property OutsideIpAddressType. /// /// The type of IPv4 address assigned to the outside interface of the customer gateway. /// /// /// /// Valid values: PrivateIpv4 | PublicIpv4 /// /// /// /// Default: PublicIpv4 /// /// public string OutsideIpAddressType { get { return this._outsideIpAddressType; } set { this._outsideIpAddressType = value; } } // Check to see if OutsideIpAddressType property is set internal bool IsSetOutsideIpAddressType() { return this._outsideIpAddressType != null; } /// /// Gets and sets the property RemoteIpv4NetworkCidr. /// /// The IPv4 CIDR on the Amazon Web Services side of the VPN connection. /// /// public string RemoteIpv4NetworkCidr { get { return this._remoteIpv4NetworkCidr; } set { this._remoteIpv4NetworkCidr = value; } } // Check to see if RemoteIpv4NetworkCidr property is set internal bool IsSetRemoteIpv4NetworkCidr() { return this._remoteIpv4NetworkCidr != null; } /// /// Gets and sets the property RemoteIpv6NetworkCidr. /// /// The IPv6 CIDR on the Amazon Web Services side of the VPN connection. /// /// public string RemoteIpv6NetworkCidr { get { return this._remoteIpv6NetworkCidr; } set { this._remoteIpv6NetworkCidr = value; } } // Check to see if RemoteIpv6NetworkCidr property is set internal bool IsSetRemoteIpv6NetworkCidr() { return this._remoteIpv6NetworkCidr != null; } /// /// Gets and sets the property StaticRoutesOnly. /// /// Indicates whether the VPN connection uses static routes only. Static routes must be /// used for devices that don't support BGP. /// /// public bool StaticRoutesOnly { get { return this._staticRoutesOnly.GetValueOrDefault(); } set { this._staticRoutesOnly = value; } } // Check to see if StaticRoutesOnly property is set internal bool IsSetStaticRoutesOnly() { return this._staticRoutesOnly.HasValue; } /// /// Gets and sets the property TransportTransitGatewayAttachmentId. /// /// The transit gateway attachment ID in use for the VPN tunnel. /// /// public string TransportTransitGatewayAttachmentId { get { return this._transportTransitGatewayAttachmentId; } set { this._transportTransitGatewayAttachmentId = value; } } // Check to see if TransportTransitGatewayAttachmentId property is set internal bool IsSetTransportTransitGatewayAttachmentId() { return this._transportTransitGatewayAttachmentId != null; } /// /// Gets and sets the property TunnelInsideIpVersion. /// /// Indicates whether the VPN tunnels process IPv4 or IPv6 traffic. /// /// public TunnelInsideIpVersion TunnelInsideIpVersion { get { return this._tunnelInsideIpVersion; } set { this._tunnelInsideIpVersion = value; } } // Check to see if TunnelInsideIpVersion property is set internal bool IsSetTunnelInsideIpVersion() { return this._tunnelInsideIpVersion != null; } /// /// Gets and sets the property TunnelOptions. /// /// Indicates the VPN tunnel options. /// /// public List TunnelOptions { get { return this._tunnelOptions; } set { this._tunnelOptions = value; } } // Check to see if TunnelOptions property is set internal bool IsSetTunnelOptions() { return this._tunnelOptions != null && this._tunnelOptions.Count > 0; } } }