/** * 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 CreateVpcAttachmentRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API CreateVpcAttachmentRequest(); // 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 "CreateVpcAttachment"; } AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override; /** *

The ID of a core network for the VPC attachment.

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

The ID of a core network for the VPC attachment.

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

The ID of a core network for the VPC attachment.

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

The ID of a core network for the VPC attachment.

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

The ID of a core network for the VPC attachment.

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

The ID of a core network for the VPC attachment.

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

The ID of a core network for the VPC attachment.

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

The ID of a core network for the VPC attachment.

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

The ARN of the VPC.

*/ inline const Aws::String& GetVpcArn() const{ return m_vpcArn; } /** *

The ARN of the VPC.

*/ inline bool VpcArnHasBeenSet() const { return m_vpcArnHasBeenSet; } /** *

The ARN of the VPC.

*/ inline void SetVpcArn(const Aws::String& value) { m_vpcArnHasBeenSet = true; m_vpcArn = value; } /** *

The ARN of the VPC.

*/ inline void SetVpcArn(Aws::String&& value) { m_vpcArnHasBeenSet = true; m_vpcArn = std::move(value); } /** *

The ARN of the VPC.

*/ inline void SetVpcArn(const char* value) { m_vpcArnHasBeenSet = true; m_vpcArn.assign(value); } /** *

The ARN of the VPC.

*/ inline CreateVpcAttachmentRequest& WithVpcArn(const Aws::String& value) { SetVpcArn(value); return *this;} /** *

The ARN of the VPC.

*/ inline CreateVpcAttachmentRequest& WithVpcArn(Aws::String&& value) { SetVpcArn(std::move(value)); return *this;} /** *

The ARN of the VPC.

*/ inline CreateVpcAttachmentRequest& WithVpcArn(const char* value) { SetVpcArn(value); return *this;} /** *

The subnet ARN of the VPC attachment.

*/ inline const Aws::Vector& GetSubnetArns() const{ return m_subnetArns; } /** *

The subnet ARN of the VPC attachment.

*/ inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; } /** *

The subnet ARN of the VPC attachment.

*/ inline void SetSubnetArns(const Aws::Vector& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; } /** *

The subnet ARN of the VPC attachment.

*/ inline void SetSubnetArns(Aws::Vector&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); } /** *

The subnet ARN of the VPC attachment.

*/ inline CreateVpcAttachmentRequest& WithSubnetArns(const Aws::Vector& value) { SetSubnetArns(value); return *this;} /** *

The subnet ARN of the VPC attachment.

*/ inline CreateVpcAttachmentRequest& WithSubnetArns(Aws::Vector&& value) { SetSubnetArns(std::move(value)); return *this;} /** *

The subnet ARN of the VPC attachment.

*/ inline CreateVpcAttachmentRequest& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; } /** *

The subnet ARN of the VPC attachment.

*/ inline CreateVpcAttachmentRequest& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; } /** *

The subnet ARN of the VPC attachment.

*/ inline CreateVpcAttachmentRequest& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; } /** *

Options for the VPC attachment.

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

Options for the VPC attachment.

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

Options for the VPC attachment.

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

Options for the VPC attachment.

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

Options for the VPC attachment.

*/ inline CreateVpcAttachmentRequest& WithOptions(const VpcOptions& value) { SetOptions(value); return *this;} /** *

Options for the VPC attachment.

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

The key-value tags associated with the request.

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

The key-value tags associated with the request.

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

The key-value tags associated with the request.

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

The key-value tags associated with the request.

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

The key-value tags associated with the request.

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

The key-value tags associated with the request.

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

The key-value tags associated with the request.

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

The key-value tags associated with the request.

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

The client token associated with the request.

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

The client token associated with the request.

*/ inline CreateVpcAttachmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_coreNetworkId; bool m_coreNetworkIdHasBeenSet = false; Aws::String m_vpcArn; bool m_vpcArnHasBeenSet = false; Aws::Vector m_subnetArns; bool m_subnetArnsHasBeenSet = false; VpcOptions 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