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

The number of physical dedicated connections initially provisioned and * bundled by the LAG. You can have a maximum of four connections when the port * speed is 1G or 10G, or two when the port speed is 100G.

*/ inline int GetNumberOfConnections() const{ return m_numberOfConnections; } /** *

The number of physical dedicated connections initially provisioned and * bundled by the LAG. You can have a maximum of four connections when the port * speed is 1G or 10G, or two when the port speed is 100G.

*/ inline bool NumberOfConnectionsHasBeenSet() const { return m_numberOfConnectionsHasBeenSet; } /** *

The number of physical dedicated connections initially provisioned and * bundled by the LAG. You can have a maximum of four connections when the port * speed is 1G or 10G, or two when the port speed is 100G.

*/ inline void SetNumberOfConnections(int value) { m_numberOfConnectionsHasBeenSet = true; m_numberOfConnections = value; } /** *

The number of physical dedicated connections initially provisioned and * bundled by the LAG. You can have a maximum of four connections when the port * speed is 1G or 10G, or two when the port speed is 100G.

*/ inline CreateLagRequest& WithNumberOfConnections(int value) { SetNumberOfConnections(value); return *this;} /** *

The location for the LAG.

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

The location for the LAG.

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

The location for the LAG.

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

The location for the LAG.

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

The location for the LAG.

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

The location for the LAG.

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

The location for the LAG.

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

The location for the LAG.

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

The bandwidth of the individual physical dedicated connections bundled by the * LAG. The possible values are 1Gbps and 10Gbps.

*/ inline const Aws::String& GetConnectionsBandwidth() const{ return m_connectionsBandwidth; } /** *

The bandwidth of the individual physical dedicated connections bundled by the * LAG. The possible values are 1Gbps and 10Gbps.

*/ inline bool ConnectionsBandwidthHasBeenSet() const { return m_connectionsBandwidthHasBeenSet; } /** *

The bandwidth of the individual physical dedicated connections bundled by the * LAG. The possible values are 1Gbps and 10Gbps.

*/ inline void SetConnectionsBandwidth(const Aws::String& value) { m_connectionsBandwidthHasBeenSet = true; m_connectionsBandwidth = value; } /** *

The bandwidth of the individual physical dedicated connections bundled by the * LAG. The possible values are 1Gbps and 10Gbps.

*/ inline void SetConnectionsBandwidth(Aws::String&& value) { m_connectionsBandwidthHasBeenSet = true; m_connectionsBandwidth = std::move(value); } /** *

The bandwidth of the individual physical dedicated connections bundled by the * LAG. The possible values are 1Gbps and 10Gbps.

*/ inline void SetConnectionsBandwidth(const char* value) { m_connectionsBandwidthHasBeenSet = true; m_connectionsBandwidth.assign(value); } /** *

The bandwidth of the individual physical dedicated connections bundled by the * LAG. The possible values are 1Gbps and 10Gbps.

*/ inline CreateLagRequest& WithConnectionsBandwidth(const Aws::String& value) { SetConnectionsBandwidth(value); return *this;} /** *

The bandwidth of the individual physical dedicated connections bundled by the * LAG. The possible values are 1Gbps and 10Gbps.

*/ inline CreateLagRequest& WithConnectionsBandwidth(Aws::String&& value) { SetConnectionsBandwidth(std::move(value)); return *this;} /** *

The bandwidth of the individual physical dedicated connections bundled by the * LAG. The possible values are 1Gbps and 10Gbps.

*/ inline CreateLagRequest& WithConnectionsBandwidth(const char* value) { SetConnectionsBandwidth(value); return *this;} /** *

The name of the LAG.

*/ inline const Aws::String& GetLagName() const{ return m_lagName; } /** *

The name of the LAG.

*/ inline bool LagNameHasBeenSet() const { return m_lagNameHasBeenSet; } /** *

The name of the LAG.

*/ inline void SetLagName(const Aws::String& value) { m_lagNameHasBeenSet = true; m_lagName = value; } /** *

The name of the LAG.

*/ inline void SetLagName(Aws::String&& value) { m_lagNameHasBeenSet = true; m_lagName = std::move(value); } /** *

The name of the LAG.

*/ inline void SetLagName(const char* value) { m_lagNameHasBeenSet = true; m_lagName.assign(value); } /** *

The name of the LAG.

*/ inline CreateLagRequest& WithLagName(const Aws::String& value) { SetLagName(value); return *this;} /** *

The name of the LAG.

*/ inline CreateLagRequest& WithLagName(Aws::String&& value) { SetLagName(std::move(value)); return *this;} /** *

The name of the LAG.

*/ inline CreateLagRequest& WithLagName(const char* value) { SetLagName(value); return *this;} /** *

The ID of an existing dedicated connection to migrate to the LAG.

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

The ID of an existing dedicated connection to migrate to the LAG.

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

The ID of an existing dedicated connection to migrate to the LAG.

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

The ID of an existing dedicated connection to migrate to the LAG.

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

The ID of an existing dedicated connection to migrate to the LAG.

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

The ID of an existing dedicated connection to migrate to the LAG.

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

The ID of an existing dedicated connection to migrate to the LAG.

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

The ID of an existing dedicated connection to migrate to the LAG.

*/ inline CreateLagRequest& WithConnectionId(const char* value) { SetConnectionId(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 CreateLagRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to associate with the LAG.

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

The tags to associate with the LAG.

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

The tags to associate with the LAG.

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

The tags to associate with the automtically created LAGs.

*/ inline const Aws::Vector& GetChildConnectionTags() const{ return m_childConnectionTags; } /** *

The tags to associate with the automtically created LAGs.

*/ inline bool ChildConnectionTagsHasBeenSet() const { return m_childConnectionTagsHasBeenSet; } /** *

The tags to associate with the automtically created LAGs.

*/ inline void SetChildConnectionTags(const Aws::Vector& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags = value; } /** *

The tags to associate with the automtically created LAGs.

*/ inline void SetChildConnectionTags(Aws::Vector&& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags = std::move(value); } /** *

The tags to associate with the automtically created LAGs.

*/ inline CreateLagRequest& WithChildConnectionTags(const Aws::Vector& value) { SetChildConnectionTags(value); return *this;} /** *

The tags to associate with the automtically created LAGs.

*/ inline CreateLagRequest& WithChildConnectionTags(Aws::Vector&& value) { SetChildConnectionTags(std::move(value)); return *this;} /** *

The tags to associate with the automtically created LAGs.

*/ inline CreateLagRequest& AddChildConnectionTags(const Tag& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags.push_back(value); return *this; } /** *

The tags to associate with the automtically created LAGs.

*/ inline CreateLagRequest& AddChildConnectionTags(Tag&& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags.push_back(std::move(value)); return *this; } /** *

The name of the service provider associated with the LAG.

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

The name of the service provider associated with the LAG.

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

The name of the service provider associated with the LAG.

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

The name of the service provider associated with the LAG.

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

The name of the service provider associated with the LAG.

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

The name of the service provider associated with the LAG.

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

The name of the service provider associated with the LAG.

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

The name of the service provider associated with the LAG.

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

Indicates whether the connection will support MAC Security (MACsec).

*

All connections in the LAG must be capable of supporting MAC Security * (MACsec). 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 the connection will support MAC Security (MACsec).

*

All connections in the LAG must be capable of supporting MAC Security * (MACsec). 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 the connection will support MAC Security (MACsec).

*

All connections in the LAG must be capable of supporting MAC Security * (MACsec). 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 the connection will support MAC Security (MACsec).

*

All connections in the LAG must be capable of supporting MAC Security * (MACsec). For information about MAC Security (MACsec) prerequisties, see MACsec * prerequisties in the Direct Connect User Guide.

*/ inline CreateLagRequest& WithRequestMACSec(bool value) { SetRequestMACSec(value); return *this;} private: int m_numberOfConnections; bool m_numberOfConnectionsHasBeenSet = false; Aws::String m_location; bool m_locationHasBeenSet = false; Aws::String m_connectionsBandwidth; bool m_connectionsBandwidthHasBeenSet = false; Aws::String m_lagName; bool m_lagNameHasBeenSet = false; Aws::String m_connectionId; bool m_connectionIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::Vector m_childConnectionTags; bool m_childConnectionTagsHasBeenSet = false; Aws::String m_providerName; bool m_providerNameHasBeenSet = false; bool m_requestMACSec; bool m_requestMACSecHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws