/** * 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 CreateConnectionRequest : public DirectConnectRequest { public: AWS_DIRECTCONNECT_API CreateConnectionRequest(); // 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 "CreateConnection"; } AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override; AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The location of the connection.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The location of the connection.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The location of the connection.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The location of the connection.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The location of the connection.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

The location of the connection.

*/ inline CreateConnectionRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The location of the connection.

*/ inline CreateConnectionRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The location of the connection.

*/ inline CreateConnectionRequest& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

The bandwidth of the connection.

*/ inline const Aws::String& GetBandwidth() const{ return m_bandwidth; } /** *

The bandwidth of the connection.

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

The bandwidth of the connection.

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

The bandwidth of the connection.

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

The bandwidth of the connection.

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

The bandwidth of the connection.

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

The bandwidth of the connection.

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

The bandwidth of the connection.

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

The name of the connection.

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

The name of the connection.

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

The name of the connection.

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

The name of the connection.

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

The name of the connection.

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

The name of the connection.

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

The name of the connection.

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

The name of the connection.

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

The ID of the LAG.

*/ inline const Aws::String& GetLagId() const{ return m_lagId; } /** *

The ID of the LAG.

*/ inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; } /** *

The ID of the LAG.

*/ inline void SetLagId(const Aws::String& value) { m_lagIdHasBeenSet = true; m_lagId = value; } /** *

The ID of the LAG.

*/ inline void SetLagId(Aws::String&& value) { m_lagIdHasBeenSet = true; m_lagId = std::move(value); } /** *

The ID of the LAG.

*/ inline void SetLagId(const char* value) { m_lagIdHasBeenSet = true; m_lagId.assign(value); } /** *

The ID of the LAG.

*/ inline CreateConnectionRequest& WithLagId(const Aws::String& value) { SetLagId(value); return *this;} /** *

The ID of the LAG.

*/ inline CreateConnectionRequest& WithLagId(Aws::String&& value) { SetLagId(std::move(value)); return *this;} /** *

The ID of the LAG.

*/ inline CreateConnectionRequest& WithLagId(const char* value) { SetLagId(value); return *this;} /** *

The tags to associate with the lag.

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

The tags to associate with the lag.

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

The tags to associate with the lag.

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

The tags to associate with the lag.

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

The tags to associate with the lag.

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

The tags to associate with the lag.

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

The tags to associate with the lag.

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

The tags to associate with the lag.

*/ inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The name of the service provider associated with the requested * connection.

*/ inline const Aws::String& GetProviderName() const{ return m_providerName; } /** *

The name of the service provider associated with the requested * connection.

*/ inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; } /** *

The name of the service provider associated with the requested * connection.

*/ inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; } /** *

The name of the service provider associated with the requested * connection.

*/ inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); } /** *

The name of the service provider associated with the requested * connection.

*/ inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); } /** *

The name of the service provider associated with the requested * connection.

*/ inline CreateConnectionRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;} /** *

The name of the service provider associated with the requested * connection.

*/ inline CreateConnectionRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;} /** *

The name of the service provider associated with the requested * connection.

*/ inline CreateConnectionRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;} /** *

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.

*/ inline bool GetRequestMACSec() const{ return m_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.

*/ inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; } /** *

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.

*/ inline void SetRequestMACSec(bool value) { m_requestMACSecHasBeenSet = true; m_requestMACSec = value; } /** *

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.

*/ inline CreateConnectionRequest& WithRequestMACSec(bool value) { SetRequestMACSec(value); return *this;} private: Aws::String m_location; bool m_locationHasBeenSet = false; Aws::String m_bandwidth; bool m_bandwidthHasBeenSet = false; Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; Aws::String m_lagId; bool m_lagIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_providerName; bool m_providerNameHasBeenSet = false; bool m_requestMACSec; bool m_requestMACSecHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws