/** * 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 namespace Aws { namespace NetworkManager { namespace Model { /** */ class CreateSiteToSiteVpnAttachmentRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API CreateSiteToSiteVpnAttachmentRequest(); // 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 "CreateSiteToSiteVpnAttachment"; } AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override; /** *

The ID of a core network where you're creating a site-to-site VPN * attachment.

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

The ID of a core network where you're creating a site-to-site VPN * attachment.

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

The ID of a core network where you're creating a site-to-site VPN * attachment.

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

The ID of a core network where you're creating a site-to-site VPN * attachment.

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

The ID of a core network where you're creating a site-to-site VPN * attachment.

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

The ID of a core network where you're creating a site-to-site VPN * attachment.

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

The ID of a core network where you're creating a site-to-site VPN * attachment.

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

The ID of a core network where you're creating a site-to-site VPN * attachment.

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

The ARN identifying the VPN attachment.

*/ inline const Aws::String& GetVpnConnectionArn() const{ return m_vpnConnectionArn; } /** *

The ARN identifying the VPN attachment.

*/ inline bool VpnConnectionArnHasBeenSet() const { return m_vpnConnectionArnHasBeenSet; } /** *

The ARN identifying the VPN attachment.

*/ inline void SetVpnConnectionArn(const Aws::String& value) { m_vpnConnectionArnHasBeenSet = true; m_vpnConnectionArn = value; } /** *

The ARN identifying the VPN attachment.

*/ inline void SetVpnConnectionArn(Aws::String&& value) { m_vpnConnectionArnHasBeenSet = true; m_vpnConnectionArn = std::move(value); } /** *

The ARN identifying the VPN attachment.

*/ inline void SetVpnConnectionArn(const char* value) { m_vpnConnectionArnHasBeenSet = true; m_vpnConnectionArn.assign(value); } /** *

The ARN identifying the VPN attachment.

*/ inline CreateSiteToSiteVpnAttachmentRequest& WithVpnConnectionArn(const Aws::String& value) { SetVpnConnectionArn(value); return *this;} /** *

The ARN identifying the VPN attachment.

*/ inline CreateSiteToSiteVpnAttachmentRequest& WithVpnConnectionArn(Aws::String&& value) { SetVpnConnectionArn(std::move(value)); return *this;} /** *

The ARN identifying the VPN attachment.

*/ inline CreateSiteToSiteVpnAttachmentRequest& WithVpnConnectionArn(const char* value) { SetVpnConnectionArn(value); return *this;} /** *

The tags associated with the request.

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

The tags associated with the request.

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

The tags associated with the request.

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

The tags associated with the request.

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

The tags associated with the request.

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

The tags associated with the request.

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

The tags associated with the request.

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

The tags associated with the request.

*/ inline CreateSiteToSiteVpnAttachmentRequest& 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 CreateSiteToSiteVpnAttachmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client token associated with the request.

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

The client token associated with the request.

*/ inline CreateSiteToSiteVpnAttachmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_coreNetworkId; bool m_coreNetworkIdHasBeenSet = false; Aws::String m_vpnConnectionArn; bool m_vpnConnectionArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws