/*
* 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 attachment between a Direct Connect gateway and a virtual interface.
///
public partial class DirectConnectGatewayAttachment
{
private DirectConnectGatewayAttachmentState _attachmentState;
private DirectConnectGatewayAttachmentType _attachmentType;
private string _directConnectGatewayId;
private string _stateChangeError;
private string _virtualInterfaceId;
private string _virtualInterfaceOwnerAccount;
private string _virtualInterfaceRegion;
///
/// Gets and sets the property AttachmentState.
///
/// The state of the attachment. The following are the possible values:
///
/// -
///
///
attaching
: The initial state after a virtual interface is created using
/// the Direct Connect gateway.
///
/// -
///
///
attached
: The Direct Connect gateway and virtual interface are attached
/// and ready to pass traffic.
///
/// -
///
///
detaching
: The initial state after calling DeleteVirtualInterface.
///
/// -
///
///
detached
: The virtual interface is detached from the Direct Connect
/// gateway. Traffic flow between the Direct Connect gateway and virtual interface is
/// stopped.
///
///
///
public DirectConnectGatewayAttachmentState AttachmentState
{
get { return this._attachmentState; }
set { this._attachmentState = value; }
}
// Check to see if AttachmentState property is set
internal bool IsSetAttachmentState()
{
return this._attachmentState != null;
}
///
/// Gets and sets the property AttachmentType.
///
/// The type of attachment.
///
///
public DirectConnectGatewayAttachmentType AttachmentType
{
get { return this._attachmentType; }
set { this._attachmentType = value; }
}
// Check to see if AttachmentType property is set
internal bool IsSetAttachmentType()
{
return this._attachmentType != 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 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 VirtualInterfaceId.
///
/// The ID of the virtual interface.
///
///
public string VirtualInterfaceId
{
get { return this._virtualInterfaceId; }
set { this._virtualInterfaceId = value; }
}
// Check to see if VirtualInterfaceId property is set
internal bool IsSetVirtualInterfaceId()
{
return this._virtualInterfaceId != null;
}
///
/// Gets and sets the property VirtualInterfaceOwnerAccount.
///
/// The ID of the Amazon Web Services account that owns the virtual interface.
///
///
public string VirtualInterfaceOwnerAccount
{
get { return this._virtualInterfaceOwnerAccount; }
set { this._virtualInterfaceOwnerAccount = value; }
}
// Check to see if VirtualInterfaceOwnerAccount property is set
internal bool IsSetVirtualInterfaceOwnerAccount()
{
return this._virtualInterfaceOwnerAccount != null;
}
///
/// Gets and sets the property VirtualInterfaceRegion.
///
/// The Amazon Web Services Region where the virtual interface is located.
///
///
public string VirtualInterfaceRegion
{
get { return this._virtualInterfaceRegion; }
set { this._virtualInterfaceRegion = value; }
}
// Check to see if VirtualInterfaceRegion property is set
internal bool IsSetVirtualInterfaceRegion()
{
return this._virtualInterfaceRegion != null;
}
}
}