/*
* 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
{
///
/// Container for the parameters to the CreateConnection operation.
/// Creates a connection between a customer network and a specific Direct Connect location.
///
///
///
/// A connection links your internal network to an Direct Connect location over a standard
/// Ethernet fiber-optic cable. One end of the cable is connected to your router, the
/// other to an Direct Connect router.
///
///
///
/// To find the locations for your Region, use DescribeLocations.
///
///
///
/// You can automatically add the new connection to a link aggregation group (LAG) by
/// specifying a LAG ID in the request. This ensures that the new connection is allocated
/// on the same Direct Connect endpoint that hosts the specified LAG. If there are no
/// available ports on the endpoint, the request fails and no connection is created.
///
///
public partial class CreateConnectionRequest : AmazonDirectConnectRequest
{
private string _bandwidth;
private string _connectionName;
private string _lagId;
private string _location;
private string _providerName;
private bool? _requestmacSec;
private List _tags = new List();
///
/// Gets and sets the property Bandwidth.
///
/// The bandwidth of the connection.
///
///
[AWSProperty(Required=true)]
public string Bandwidth
{
get { return this._bandwidth; }
set { this._bandwidth = value; }
}
// Check to see if Bandwidth property is set
internal bool IsSetBandwidth()
{
return this._bandwidth != null;
}
///
/// Gets and sets the property ConnectionName.
///
/// The name of the connection.
///
///
[AWSProperty(Required=true)]
public string ConnectionName
{
get { return this._connectionName; }
set { this._connectionName = value; }
}
// Check to see if ConnectionName property is set
internal bool IsSetConnectionName()
{
return this._connectionName != null;
}
///
/// Gets and sets the property LagId.
///
/// The ID of the LAG.
///
///
public string LagId
{
get { return this._lagId; }
set { this._lagId = value; }
}
// Check to see if LagId property is set
internal bool IsSetLagId()
{
return this._lagId != null;
}
///
/// Gets and sets the property Location.
///
/// The location of the connection.
///
///
[AWSProperty(Required=true)]
public string Location
{
get { return this._location; }
set { this._location = value; }
}
// Check to see if Location property is set
internal bool IsSetLocation()
{
return this._location != null;
}
///
/// Gets and sets the property ProviderName.
///
/// The name of the service provider associated with the requested connection.
///
///
public string ProviderName
{
get { return this._providerName; }
set { this._providerName = value; }
}
// Check to see if ProviderName property is set
internal bool IsSetProviderName()
{
return this._providerName != null;
}
///
/// Gets and sets the property RequestMACSec.
///
/// Indicates whether you want the connection to support MAC Security (MACsec).
///
///
///
/// MAC Security (MACsec) is only available on dedicated connections. For information
/// about MAC Security (MACsec) prerequisties, see MACsec
/// prerequisties in the Direct Connect User Guide.
///
///
public bool RequestMACSec
{
get { return this._requestmacSec.GetValueOrDefault(); }
set { this._requestmacSec = value; }
}
// Check to see if RequestMACSec property is set
internal bool IsSetRequestMACSec()
{
return this._requestmacSec.HasValue;
}
///
/// Gets and sets the property Tags.
///
/// The tags to associate with the lag.
///
///
[AWSProperty(Min=1)]
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;
}
}
}