/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace APIGateway { namespace Model { /** *

An API Gateway VPC link for a RestApi to access resources in an Amazon * Virtual Private Cloud (VPC).

See Also:

AWS * API Reference

*/ class CreateVpcLinkResult { public: AWS_APIGATEWAY_API CreateVpcLinkResult(); AWS_APIGATEWAY_API CreateVpcLinkResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAY_API CreateVpcLinkResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the VpcLink. It is used in an Integration to reference this * VpcLink.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the VpcLink. It is used in an Integration to reference this * VpcLink.

*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *

The identifier of the VpcLink. It is used in an Integration to reference this * VpcLink.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The identifier of the VpcLink. It is used in an Integration to reference this * VpcLink.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The identifier of the VpcLink. It is used in an Integration to reference this * VpcLink.

*/ inline CreateVpcLinkResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the VpcLink. It is used in an Integration to reference this * VpcLink.

*/ inline CreateVpcLinkResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the VpcLink. It is used in an Integration to reference this * VpcLink.

*/ inline CreateVpcLinkResult& WithId(const char* value) { SetId(value); return *this;} /** *

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 void SetName(const Aws::String& value) { m_name = value; } /** *

The name used to label and identify the VPC link.

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

The name used to label and identify the VPC link.

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

The name used to label and identify the VPC link.

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

The name used to label and identify the VPC link.

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

The name used to label and identify the VPC link.

*/ inline CreateVpcLinkResult& 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 void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description of the VPC link.

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

The description of the VPC link.

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

The description of the VPC link.

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

The description of the VPC link.

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

The description of the VPC link.

*/ inline CreateVpcLinkResult& 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 void SetTargetArns(const Aws::Vector& value) { 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_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 CreateVpcLinkResult& 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 CreateVpcLinkResult& 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 CreateVpcLinkResult& AddTargetArns(const Aws::String& value) { 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 CreateVpcLinkResult& AddTargetArns(Aws::String&& value) { 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 CreateVpcLinkResult& AddTargetArns(const char* value) { m_targetArns.push_back(value); return *this; } /** *

The status of the VPC link. The valid values are AVAILABLE, * PENDING, DELETING, or FAILED. Deploying * an API will wait if the status is PENDING and will fail if the * status is DELETING.

*/ inline const VpcLinkStatus& GetStatus() const{ return m_status; } /** *

The status of the VPC link. The valid values are AVAILABLE, * PENDING, DELETING, or FAILED. Deploying * an API will wait if the status is PENDING and will fail if the * status is DELETING.

*/ inline void SetStatus(const VpcLinkStatus& value) { m_status = value; } /** *

The status of the VPC link. The valid values are AVAILABLE, * PENDING, DELETING, or FAILED. Deploying * an API will wait if the status is PENDING and will fail if the * status is DELETING.

*/ inline void SetStatus(VpcLinkStatus&& value) { m_status = std::move(value); } /** *

The status of the VPC link. The valid values are AVAILABLE, * PENDING, DELETING, or FAILED. Deploying * an API will wait if the status is PENDING and will fail if the * status is DELETING.

*/ inline CreateVpcLinkResult& WithStatus(const VpcLinkStatus& value) { SetStatus(value); return *this;} /** *

The status of the VPC link. The valid values are AVAILABLE, * PENDING, DELETING, or FAILED. Deploying * an API will wait if the status is PENDING and will fail if the * status is DELETING.

*/ inline CreateVpcLinkResult& WithStatus(VpcLinkStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A description about the VPC link status.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

A description about the VPC link status.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; } /** *

A description about the VPC link status.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = std::move(value); } /** *

A description about the VPC link status.

*/ inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); } /** *

A description about the VPC link status.

*/ inline CreateVpcLinkResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

A description about the VPC link status.

*/ inline CreateVpcLinkResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

A description about the VPC link status.

*/ inline CreateVpcLinkResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

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

The collection of tags. Each tag element is associated with a given * resource.

*/ inline CreateVpcLinkResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateVpcLinkResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateVpcLinkResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateVpcLinkResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_id; Aws::String m_name; Aws::String m_description; Aws::Vector m_targetArns; VpcLinkStatus m_status; Aws::String m_statusMessage; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace APIGateway } // namespace Aws