/* * 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 the options for a transit gateway. /// public partial class TransitGatewayOptions { private long? _amazonSideAsn; private string _associationDefaultRouteTableId; private AutoAcceptSharedAttachmentsValue _autoAcceptSharedAttachments; private DefaultRouteTableAssociationValue _defaultRouteTableAssociation; private DefaultRouteTablePropagationValue _defaultRouteTablePropagation; private DnsSupportValue _dnsSupport; private MulticastSupportValue _multicastSupport; private string _propagationDefaultRouteTableId; private List _transitGatewayCidrBlocks = new List(); private VpnEcmpSupportValue _vpnEcmpSupport; /// /// Gets and sets the property AmazonSideAsn. /// /// A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The /// range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. /// /// 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 AssociationDefaultRouteTableId. /// /// The ID of the default association route table. /// /// public string AssociationDefaultRouteTableId { get { return this._associationDefaultRouteTableId; } set { this._associationDefaultRouteTableId = value; } } // Check to see if AssociationDefaultRouteTableId property is set internal bool IsSetAssociationDefaultRouteTableId() { return this._associationDefaultRouteTableId != null; } /// /// Gets and sets the property AutoAcceptSharedAttachments. /// /// Indicates whether attachment requests are automatically accepted. /// /// public AutoAcceptSharedAttachmentsValue AutoAcceptSharedAttachments { get { return this._autoAcceptSharedAttachments; } set { this._autoAcceptSharedAttachments = value; } } // Check to see if AutoAcceptSharedAttachments property is set internal bool IsSetAutoAcceptSharedAttachments() { return this._autoAcceptSharedAttachments != null; } /// /// Gets and sets the property DefaultRouteTableAssociation. /// /// Indicates whether resource attachments are automatically associated with the default /// association route table. /// /// public DefaultRouteTableAssociationValue DefaultRouteTableAssociation { get { return this._defaultRouteTableAssociation; } set { this._defaultRouteTableAssociation = value; } } // Check to see if DefaultRouteTableAssociation property is set internal bool IsSetDefaultRouteTableAssociation() { return this._defaultRouteTableAssociation != null; } /// /// Gets and sets the property DefaultRouteTablePropagation. /// /// Indicates whether resource attachments automatically propagate routes to the default /// propagation route table. /// /// public DefaultRouteTablePropagationValue DefaultRouteTablePropagation { get { return this._defaultRouteTablePropagation; } set { this._defaultRouteTablePropagation = value; } } // Check to see if DefaultRouteTablePropagation property is set internal bool IsSetDefaultRouteTablePropagation() { return this._defaultRouteTablePropagation != null; } /// /// Gets and sets the property DnsSupport. /// /// Indicates whether DNS support is enabled. /// /// public DnsSupportValue DnsSupport { get { return this._dnsSupport; } set { this._dnsSupport = value; } } // Check to see if DnsSupport property is set internal bool IsSetDnsSupport() { return this._dnsSupport != null; } /// /// Gets and sets the property MulticastSupport. /// /// Indicates whether multicast is enabled on the transit gateway /// /// public MulticastSupportValue MulticastSupport { get { return this._multicastSupport; } set { this._multicastSupport = value; } } // Check to see if MulticastSupport property is set internal bool IsSetMulticastSupport() { return this._multicastSupport != null; } /// /// Gets and sets the property PropagationDefaultRouteTableId. /// /// The ID of the default propagation route table. /// /// public string PropagationDefaultRouteTableId { get { return this._propagationDefaultRouteTableId; } set { this._propagationDefaultRouteTableId = value; } } // Check to see if PropagationDefaultRouteTableId property is set internal bool IsSetPropagationDefaultRouteTableId() { return this._propagationDefaultRouteTableId != null; } /// /// Gets and sets the property TransitGatewayCidrBlocks. /// /// The transit gateway CIDR blocks. /// /// public List TransitGatewayCidrBlocks { get { return this._transitGatewayCidrBlocks; } set { this._transitGatewayCidrBlocks = value; } } // Check to see if TransitGatewayCidrBlocks property is set internal bool IsSetTransitGatewayCidrBlocks() { return this._transitGatewayCidrBlocks != null && this._transitGatewayCidrBlocks.Count > 0; } /// /// Gets and sets the property VpnEcmpSupport. /// /// Indicates whether Equal Cost Multipath Protocol support is enabled. /// /// public VpnEcmpSupportValue VpnEcmpSupport { get { return this._vpnEcmpSupport; } set { this._vpnEcmpSupport = value; } } // Check to see if VpnEcmpSupport property is set internal bool IsSetVpnEcmpSupport() { return this._vpnEcmpSupport != null; } } }