/* * 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 directconnect-2012-10-25.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.DirectConnect.Model { /// /// Information about an association between a Direct Connect gateway and a virtual private /// gateway or transit gateway. /// public partial class DirectConnectGatewayAssociation { private List _allowedPrefixesToDirectConnectGateway = new List(); private AssociatedGateway _associatedGateway; private string _associationId; private DirectConnectGatewayAssociationState _associationState; private string _directConnectGatewayId; private string _directConnectGatewayOwnerAccount; private string _stateChangeError; private string _virtualGatewayId; private string _virtualGatewayOwnerAccount; private string _virtualGatewayRegion; /// /// Gets and sets the property AllowedPrefixesToDirectConnectGateway. /// /// The Amazon VPC prefixes to advertise to the Direct Connect gateway. /// /// public List AllowedPrefixesToDirectConnectGateway { get { return this._allowedPrefixesToDirectConnectGateway; } set { this._allowedPrefixesToDirectConnectGateway = value; } } // Check to see if AllowedPrefixesToDirectConnectGateway property is set internal bool IsSetAllowedPrefixesToDirectConnectGateway() { return this._allowedPrefixesToDirectConnectGateway != null && this._allowedPrefixesToDirectConnectGateway.Count > 0; } /// /// Gets and sets the property AssociatedGateway. /// /// Information about the associated gateway. /// /// public AssociatedGateway AssociatedGateway { get { return this._associatedGateway; } set { this._associatedGateway = value; } } // Check to see if AssociatedGateway property is set internal bool IsSetAssociatedGateway() { return this._associatedGateway != null; } /// /// Gets and sets the property AssociationId. /// /// The ID of the Direct Connect gateway association. /// /// public string AssociationId { get { return this._associationId; } set { this._associationId = value; } } // Check to see if AssociationId property is set internal bool IsSetAssociationId() { return this._associationId != null; } /// /// Gets and sets the property AssociationState. /// /// The state of the association. The following are the possible values: /// ///
  • /// /// associating: The initial state after calling CreateDirectConnectGatewayAssociation. /// ///
  • /// /// associated: The Direct Connect gateway and virtual private gateway or /// transit gateway are successfully associated and ready to pass traffic. /// ///
  • /// /// disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. /// ///
  • /// /// disassociated: The virtual private gateway or transit gateway is disassociated /// from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and /// virtual private gateway or transit gateway is stopped. /// ///
  • /// /// updating: The CIDR blocks for the virtual private gateway or transit /// gateway are currently being updated. This could be new CIDR blocks added or current /// CIDR blocks removed. /// ///
///
public DirectConnectGatewayAssociationState AssociationState { get { return this._associationState; } set { this._associationState = value; } } // Check to see if AssociationState property is set internal bool IsSetAssociationState() { return this._associationState != null; } /// /// Gets and sets the property DirectConnectGatewayId. /// /// The ID of the Direct Connect gateway. /// /// public string DirectConnectGatewayId { get { return this._directConnectGatewayId; } set { this._directConnectGatewayId = value; } } // Check to see if DirectConnectGatewayId property is set internal bool IsSetDirectConnectGatewayId() { return this._directConnectGatewayId != null; } /// /// Gets and sets the property DirectConnectGatewayOwnerAccount. /// /// The ID of the Amazon Web Services account that owns the associated gateway. /// /// public string DirectConnectGatewayOwnerAccount { get { return this._directConnectGatewayOwnerAccount; } set { this._directConnectGatewayOwnerAccount = value; } } // Check to see if DirectConnectGatewayOwnerAccount property is set internal bool IsSetDirectConnectGatewayOwnerAccount() { return this._directConnectGatewayOwnerAccount != null; } /// /// Gets and sets the property StateChangeError. /// /// The error message if the state of an object failed to advance. /// /// public string StateChangeError { get { return this._stateChangeError; } set { this._stateChangeError = value; } } // Check to see if StateChangeError property is set internal bool IsSetStateChangeError() { return this._stateChangeError != null; } /// /// Gets and sets the property VirtualGatewayId. /// /// The ID of the virtual private gateway. Applies only to private virtual interfaces. /// /// public string VirtualGatewayId { get { return this._virtualGatewayId; } set { this._virtualGatewayId = value; } } // Check to see if VirtualGatewayId property is set internal bool IsSetVirtualGatewayId() { return this._virtualGatewayId != null; } /// /// Gets and sets the property VirtualGatewayOwnerAccount. /// /// The ID of the Amazon Web Services account that owns the virtual private gateway. /// /// public string VirtualGatewayOwnerAccount { get { return this._virtualGatewayOwnerAccount; } set { this._virtualGatewayOwnerAccount = value; } } // Check to see if VirtualGatewayOwnerAccount property is set internal bool IsSetVirtualGatewayOwnerAccount() { return this._virtualGatewayOwnerAccount != null; } /// /// Gets and sets the property VirtualGatewayRegion. /// /// The Amazon Web Services Region where the virtual private gateway is located. /// /// public string VirtualGatewayRegion { get { return this._virtualGatewayRegion; } set { this._virtualGatewayRegion = value; } } // Check to see if VirtualGatewayRegion property is set internal bool IsSetVirtualGatewayRegion() { return this._virtualGatewayRegion != null; } } }