/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // 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 VpcLink { public: AWS_APIGATEWAY_API VpcLink(); AWS_APIGATEWAY_API VpcLink(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAY_API VpcLink& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

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

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; 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_idHasBeenSet = true; 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_idHasBeenSet = true; m_id.assign(value); } /** *

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

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

The name used to label and identify the VPC link.

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

The name used to label and identify the VPC link.

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

The description of the VPC link.

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

The description of the VPC link.

*/ inline VpcLink& 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 VpcLink& 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 VpcLink& 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 VpcLink& 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 VpcLink& 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 VpcLink& AddTargetArns(const char* value) { m_targetArnsHasBeenSet = true; 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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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_statusHasBeenSet = true; 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_statusHasBeenSet = true; 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 VpcLink& 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 VpcLink& 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 bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

A description about the VPC link status.

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

A description about the VPC link status.

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

A description about the VPC link status.

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

A description about the VPC link status.

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

A description about the VPC link status.

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

A description about the VPC link status.

*/ inline VpcLink& 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 bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline VpcLink& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; 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 VpcLink& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

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

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

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

*/ inline VpcLink& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } inline VpcLink& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline VpcLink& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline VpcLink& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_targetArns; bool m_targetArnsHasBeenSet = false; VpcLinkStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace APIGateway } // namespace Aws