/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DirectConnect { namespace Model { /** */ class AllocateHostedConnectionRequest : public DirectConnectRequest { public: AWS_DIRECTCONNECT_API AllocateHostedConnectionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AllocateHostedConnection"; } AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override; AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the interconnect or LAG.

*/ inline const Aws::String& GetConnectionId() const{ return m_connectionId; } /** *

The ID of the interconnect or LAG.

*/ inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; } /** *

The ID of the interconnect or LAG.

*/ inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; } /** *

The ID of the interconnect or LAG.

*/ inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); } /** *

The ID of the interconnect or LAG.

*/ inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); } /** *

The ID of the interconnect or LAG.

*/ inline AllocateHostedConnectionRequest& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;} /** *

The ID of the interconnect or LAG.

*/ inline AllocateHostedConnectionRequest& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;} /** *

The ID of the interconnect or LAG.

*/ inline AllocateHostedConnectionRequest& WithConnectionId(const char* value) { SetConnectionId(value); return *this;} /** *

The ID of the Amazon Web Services account ID of the customer for the * connection.

*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *

The ID of the Amazon Web Services account ID of the customer for the * connection.

*/ inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; } /** *

The ID of the Amazon Web Services account ID of the customer for the * connection.

*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; } /** *

The ID of the Amazon Web Services account ID of the customer for the * connection.

*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); } /** *

The ID of the Amazon Web Services account ID of the customer for the * connection.

*/ inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); } /** *

The ID of the Amazon Web Services account ID of the customer for the * connection.

*/ inline AllocateHostedConnectionRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *

The ID of the Amazon Web Services account ID of the customer for the * connection.

*/ inline AllocateHostedConnectionRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account ID of the customer for the * connection.

*/ inline AllocateHostedConnectionRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;} /** *

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.

*/ inline const Aws::String& GetBandwidth() const{ return m_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.

*/ inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; } /** *

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.

*/ inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; } /** *

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.

*/ inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::move(value); } /** *

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.

*/ inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); } /** *

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.

*/ inline AllocateHostedConnectionRequest& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;} /** *

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.

*/ inline AllocateHostedConnectionRequest& WithBandwidth(Aws::String&& value) { SetBandwidth(std::move(value)); return *this;} /** *

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.

*/ inline AllocateHostedConnectionRequest& WithBandwidth(const char* value) { SetBandwidth(value); return *this;} /** *

The name of the hosted connection.

*/ inline const Aws::String& GetConnectionName() const{ return m_connectionName; } /** *

The name of the hosted connection.

*/ inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; } /** *

The name of the hosted connection.

*/ inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; } /** *

The name of the hosted connection.

*/ inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); } /** *

The name of the hosted connection.

*/ inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); } /** *

The name of the hosted connection.

*/ inline AllocateHostedConnectionRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;} /** *

The name of the hosted connection.

*/ inline AllocateHostedConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;} /** *

The name of the hosted connection.

*/ inline AllocateHostedConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} /** *

The dedicated VLAN provisioned to the hosted connection.

*/ inline int GetVlan() const{ return m_vlan; } /** *

The dedicated VLAN provisioned to the hosted connection.

*/ inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; } /** *

The dedicated VLAN provisioned to the hosted connection.

*/ inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; } /** *

The dedicated VLAN provisioned to the hosted connection.

*/ inline AllocateHostedConnectionRequest& WithVlan(int value) { SetVlan(value); return *this;} /** *

The tags associated with the connection.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags associated with the connection.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags associated with the connection.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags associated with the connection.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags associated with the connection.

*/ inline AllocateHostedConnectionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags associated with the connection.

*/ inline AllocateHostedConnectionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags associated with the connection.

*/ inline AllocateHostedConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags associated with the connection.

*/ inline AllocateHostedConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_connectionId; bool m_connectionIdHasBeenSet = false; Aws::String m_ownerAccount; bool m_ownerAccountHasBeenSet = false; Aws::String m_bandwidth; bool m_bandwidthHasBeenSet = false; Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; int m_vlan; bool m_vlanHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws