/** * 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 APIGateway { namespace Model { /** *

Creates a VPC link, under the caller's account in a selected region, in an * asynchronous operation that typically takes 2-4 minutes to complete and become * operational. The caller must have permissions to create and update VPC Endpoint * services.

See Also:

AWS * API Reference

*/ class CreateVpcLinkRequest : public APIGatewayRequest { public: AWS_APIGATEWAY_API CreateVpcLinkRequest(); // 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 "CreateVpcLink"; } AWS_APIGATEWAY_API Aws::String SerializePayload() const override; /** *

The name used to label and identify the VPC link.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name used to label and identify the VPC link.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name used to label and identify the VPC link.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name used to label and identify the VPC link.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name used to label and identify the VPC link.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name used to label and identify the VPC link.

*/ inline CreateVpcLinkRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name used to label and identify the VPC link.

*/ inline CreateVpcLinkRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name used to label and identify the VPC link.

*/ inline CreateVpcLinkRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the VPC link.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the VPC link.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the VPC link.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the VPC link.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the VPC link.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the VPC link.

*/ inline CreateVpcLinkRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the VPC link.

*/ inline CreateVpcLinkRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the VPC link.

*/ inline CreateVpcLinkRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline const Aws::Vector& GetTargetArns() const{ return m_targetArns; } /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline bool TargetArnsHasBeenSet() const { return m_targetArnsHasBeenSet; } /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline void SetTargetArns(const Aws::Vector& value) { m_targetArnsHasBeenSet = true; m_targetArns = value; } /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline void SetTargetArns(Aws::Vector&& value) { m_targetArnsHasBeenSet = true; m_targetArns = std::move(value); } /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline CreateVpcLinkRequest& WithTargetArns(const Aws::Vector& value) { SetTargetArns(value); return *this;} /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline CreateVpcLinkRequest& WithTargetArns(Aws::Vector&& value) { SetTargetArns(std::move(value)); return *this;} /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline CreateVpcLinkRequest& AddTargetArns(const Aws::String& value) { m_targetArnsHasBeenSet = true; m_targetArns.push_back(value); return *this; } /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline CreateVpcLinkRequest& AddTargetArns(Aws::String&& value) { m_targetArnsHasBeenSet = true; m_targetArns.push_back(std::move(value)); return *this; } /** *

The ARN of the network load balancer of the VPC targeted by the VPC link. The * network load balancer must be owned by the same AWS account of the API * owner.

*/ inline CreateVpcLinkRequest& AddTargetArns(const char* value) { m_targetArnsHasBeenSet = true; m_targetArns.push_back(value); return *this; } /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

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

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

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

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

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

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

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

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

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

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

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

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

*/ inline CreateVpcLinkRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

*/ inline CreateVpcLinkRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

*/ inline CreateVpcLinkRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

*/ inline CreateVpcLinkRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

*/ inline CreateVpcLinkRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

*/ inline CreateVpcLinkRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The * tag key can be up to 128 characters and must not start with aws:. * The tag value can be up to 256 characters.

*/ inline CreateVpcLinkRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_targetArns; bool m_targetArnsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace APIGateway } // namespace Aws