/*
* 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 AllocateHostedConnection operation.
/// Creates a hosted connection on the specified interconnect or a link aggregation group
/// (LAG) of interconnects.
///
///
///
/// Allocates a VLAN number and a specified amount of capacity (bandwidth) for use by
/// a hosted connection on the specified interconnect or LAG of interconnects. Amazon
/// Web Services polices the hosted connection for the specified capacity and the Direct
/// Connect Partner must also police the hosted connection for the specified capacity.
///
///
///
/// Intended for use by Direct Connect Partners only.
///
///
///
public partial class AllocateHostedConnectionRequest : AmazonDirectConnectRequest
{
private string _bandwidth;
private string _connectionId;
private string _connectionName;
private string _ownerAccount;
private List _tags = new List();
private int? _vlan;
///
/// Gets and sets the property Bandwidth.
///
/// The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps,
/// 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those Direct
/// Connect Partners who have met specific requirements are allowed to create a 1Gbps,
/// 2Gbps, 5Gbps or 10Gbps hosted 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 ConnectionId.
///
/// The ID of the interconnect or LAG.
///
///
[AWSProperty(Required=true)]
public string ConnectionId
{
get { return this._connectionId; }
set { this._connectionId = value; }
}
// Check to see if ConnectionId property is set
internal bool IsSetConnectionId()
{
return this._connectionId != null;
}
///
/// Gets and sets the property ConnectionName.
///
/// The name of the hosted 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 OwnerAccount.
///
/// The ID of the Amazon Web Services account ID of the customer for the connection.
///
///
[AWSProperty(Required=true)]
public string OwnerAccount
{
get { return this._ownerAccount; }
set { this._ownerAccount = value; }
}
// Check to see if OwnerAccount property is set
internal bool IsSetOwnerAccount()
{
return this._ownerAccount != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags associated with the connection.
///
///
[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;
}
///
/// Gets and sets the property Vlan.
///
/// The dedicated VLAN provisioned to the hosted connection.
///
///
[AWSProperty(Required=true)]
public int Vlan
{
get { return this._vlan.GetValueOrDefault(); }
set { this._vlan = value; }
}
// Check to see if Vlan property is set
internal bool IsSetVlan()
{
return this._vlan.HasValue;
}
}
}