/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace NetworkManager { namespace Model { /** */ class CreateConnectAttachmentRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API CreateConnectAttachmentRequest(); // 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 "CreateConnectAttachment"; } AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override; /** *

The ID of a core network where you want to create the attachment.

*/ inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; } /** *

The ID of a core network where you want to create the attachment.

*/ inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; } /** *

The ID of a core network where you want to create the attachment.

*/ inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; } /** *

The ID of a core network where you want to create the attachment.

*/ inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); } /** *

The ID of a core network where you want to create the attachment.

*/ inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); } /** *

The ID of a core network where you want to create the attachment.

*/ inline CreateConnectAttachmentRequest& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;} /** *

The ID of a core network where you want to create the attachment.

*/ inline CreateConnectAttachmentRequest& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;} /** *

The ID of a core network where you want to create the attachment.

*/ inline CreateConnectAttachmentRequest& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;} /** *

The Region where the edge is located.

*/ inline const Aws::String& GetEdgeLocation() const{ return m_edgeLocation; } /** *

The Region where the edge is located.

*/ inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; } /** *

The Region where the edge is located.

*/ inline void SetEdgeLocation(const Aws::String& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = value; } /** *

The Region where the edge is located.

*/ inline void SetEdgeLocation(Aws::String&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::move(value); } /** *

The Region where the edge is located.

*/ inline void SetEdgeLocation(const char* value) { m_edgeLocationHasBeenSet = true; m_edgeLocation.assign(value); } /** *

The Region where the edge is located.

*/ inline CreateConnectAttachmentRequest& WithEdgeLocation(const Aws::String& value) { SetEdgeLocation(value); return *this;} /** *

The Region where the edge is located.

*/ inline CreateConnectAttachmentRequest& WithEdgeLocation(Aws::String&& value) { SetEdgeLocation(std::move(value)); return *this;} /** *

The Region where the edge is located.

*/ inline CreateConnectAttachmentRequest& WithEdgeLocation(const char* value) { SetEdgeLocation(value); return *this;} /** *

The ID of the attachment between the two connections.

*/ inline const Aws::String& GetTransportAttachmentId() const{ return m_transportAttachmentId; } /** *

The ID of the attachment between the two connections.

*/ inline bool TransportAttachmentIdHasBeenSet() const { return m_transportAttachmentIdHasBeenSet; } /** *

The ID of the attachment between the two connections.

*/ inline void SetTransportAttachmentId(const Aws::String& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = value; } /** *

The ID of the attachment between the two connections.

*/ inline void SetTransportAttachmentId(Aws::String&& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = std::move(value); } /** *

The ID of the attachment between the two connections.

*/ inline void SetTransportAttachmentId(const char* value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId.assign(value); } /** *

The ID of the attachment between the two connections.

*/ inline CreateConnectAttachmentRequest& WithTransportAttachmentId(const Aws::String& value) { SetTransportAttachmentId(value); return *this;} /** *

The ID of the attachment between the two connections.

*/ inline CreateConnectAttachmentRequest& WithTransportAttachmentId(Aws::String&& value) { SetTransportAttachmentId(std::move(value)); return *this;} /** *

The ID of the attachment between the two connections.

*/ inline CreateConnectAttachmentRequest& WithTransportAttachmentId(const char* value) { SetTransportAttachmentId(value); return *this;} /** *

Options for creating an attachment.

*/ inline const ConnectAttachmentOptions& GetOptions() const{ return m_options; } /** *

Options for creating an attachment.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

Options for creating an attachment.

*/ inline void SetOptions(const ConnectAttachmentOptions& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

Options for creating an attachment.

*/ inline void SetOptions(ConnectAttachmentOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

Options for creating an attachment.

*/ inline CreateConnectAttachmentRequest& WithOptions(const ConnectAttachmentOptions& value) { SetOptions(value); return *this;} /** *

Options for creating an attachment.

*/ inline CreateConnectAttachmentRequest& WithOptions(ConnectAttachmentOptions&& value) { SetOptions(std::move(value)); return *this;} /** *

The list of key-value tags associated with the request.

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

The list of key-value tags associated with the request.

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

The list of key-value tags associated with the request.

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

The list of key-value tags associated with the request.

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

The list of key-value tags associated with the request.

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

The list of key-value tags associated with the request.

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

The list of key-value tags associated with the request.

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

The list of key-value tags associated with the request.

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

The client token associated with the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client token associated with the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client token associated with the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client token associated with the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client token associated with the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client token associated with the request.

*/ inline CreateConnectAttachmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client token associated with the request.

*/ inline CreateConnectAttachmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client token associated with the request.

*/ inline CreateConnectAttachmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_coreNetworkId; bool m_coreNetworkIdHasBeenSet = false; Aws::String m_edgeLocation; bool m_edgeLocationHasBeenSet = false; Aws::String m_transportAttachmentId; bool m_transportAttachmentIdHasBeenSet = false; ConnectAttachmentOptions m_options; bool m_optionsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws