/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApiGatewayV2 { namespace Model { /** *

Represents a VPC link.

See Also:

AWS * API Reference

*/ class VpcLink { public: AWS_APIGATEWAYV2_API VpcLink(); AWS_APIGATEWAYV2_API VpcLink(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAYV2_API VpcLink& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The timestamp when the VPC link was created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The timestamp when the VPC link was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The timestamp when the VPC link was created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The timestamp when the VPC link was created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *

The timestamp when the VPC link was created.

*/ inline VpcLink& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The timestamp when the VPC link was created.

*/ inline VpcLink& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

A list of security group IDs for the VPC link.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

A list of security group IDs for the VPC link.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

A list of security group IDs for the VPC link.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

A list of security group IDs for the VPC link.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

A list of security group IDs for the VPC link.

*/ inline VpcLink& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

A list of security group IDs for the VPC link.

*/ inline VpcLink& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

A list of security group IDs for the VPC link.

*/ inline VpcLink& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

A list of security group IDs for the VPC link.

*/ inline VpcLink& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

A list of security group IDs for the VPC link.

*/ inline VpcLink& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

A list of subnet IDs to include in the VPC link.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

A list of subnet IDs to include in the VPC link.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

A list of subnet IDs to include in the VPC link.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

A list of subnet IDs to include in the VPC link.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

A list of subnet IDs to include in the VPC link.

*/ inline VpcLink& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

A list of subnet IDs to include in the VPC link.

*/ inline VpcLink& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

A list of subnet IDs to include in the VPC link.

*/ inline VpcLink& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of subnet IDs to include in the VPC link.

*/ inline VpcLink& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

A list of subnet IDs to include in the VPC link.

*/ inline VpcLink& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

The ID of the VPC link.

*/ inline const Aws::String& GetVpcLinkId() const{ return m_vpcLinkId; } /** *

The ID of the VPC link.

*/ inline bool VpcLinkIdHasBeenSet() const { return m_vpcLinkIdHasBeenSet; } /** *

The ID of the VPC link.

*/ inline void SetVpcLinkId(const Aws::String& value) { m_vpcLinkIdHasBeenSet = true; m_vpcLinkId = value; } /** *

The ID of the VPC link.

*/ inline void SetVpcLinkId(Aws::String&& value) { m_vpcLinkIdHasBeenSet = true; m_vpcLinkId = std::move(value); } /** *

The ID of the VPC link.

*/ inline void SetVpcLinkId(const char* value) { m_vpcLinkIdHasBeenSet = true; m_vpcLinkId.assign(value); } /** *

The ID of the VPC link.

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

The ID of the VPC link.

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

The ID of the VPC link.

*/ inline VpcLink& WithVpcLinkId(const char* value) { SetVpcLinkId(value); return *this;} /** *

The status of the VPC link.

*/ inline const VpcLinkStatus& GetVpcLinkStatus() const{ return m_vpcLinkStatus; } /** *

The status of the VPC link.

*/ inline bool VpcLinkStatusHasBeenSet() const { return m_vpcLinkStatusHasBeenSet; } /** *

The status of the VPC link.

*/ inline void SetVpcLinkStatus(const VpcLinkStatus& value) { m_vpcLinkStatusHasBeenSet = true; m_vpcLinkStatus = value; } /** *

The status of the VPC link.

*/ inline void SetVpcLinkStatus(VpcLinkStatus&& value) { m_vpcLinkStatusHasBeenSet = true; m_vpcLinkStatus = std::move(value); } /** *

The status of the VPC link.

*/ inline VpcLink& WithVpcLinkStatus(const VpcLinkStatus& value) { SetVpcLinkStatus(value); return *this;} /** *

The status of the VPC link.

*/ inline VpcLink& WithVpcLinkStatus(VpcLinkStatus&& value) { SetVpcLinkStatus(std::move(value)); return *this;} /** *

A message summarizing the cause of the status of the VPC link.

*/ inline const Aws::String& GetVpcLinkStatusMessage() const{ return m_vpcLinkStatusMessage; } /** *

A message summarizing the cause of the status of the VPC link.

*/ inline bool VpcLinkStatusMessageHasBeenSet() const { return m_vpcLinkStatusMessageHasBeenSet; } /** *

A message summarizing the cause of the status of the VPC link.

*/ inline void SetVpcLinkStatusMessage(const Aws::String& value) { m_vpcLinkStatusMessageHasBeenSet = true; m_vpcLinkStatusMessage = value; } /** *

A message summarizing the cause of the status of the VPC link.

*/ inline void SetVpcLinkStatusMessage(Aws::String&& value) { m_vpcLinkStatusMessageHasBeenSet = true; m_vpcLinkStatusMessage = std::move(value); } /** *

A message summarizing the cause of the status of the VPC link.

*/ inline void SetVpcLinkStatusMessage(const char* value) { m_vpcLinkStatusMessageHasBeenSet = true; m_vpcLinkStatusMessage.assign(value); } /** *

A message summarizing the cause of the status of the VPC link.

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

A message summarizing the cause of the status of the VPC link.

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

A message summarizing the cause of the status of the VPC link.

*/ inline VpcLink& WithVpcLinkStatusMessage(const char* value) { SetVpcLinkStatusMessage(value); return *this;} /** *

The version of the VPC link.

*/ inline const VpcLinkVersion& GetVpcLinkVersion() const{ return m_vpcLinkVersion; } /** *

The version of the VPC link.

*/ inline bool VpcLinkVersionHasBeenSet() const { return m_vpcLinkVersionHasBeenSet; } /** *

The version of the VPC link.

*/ inline void SetVpcLinkVersion(const VpcLinkVersion& value) { m_vpcLinkVersionHasBeenSet = true; m_vpcLinkVersion = value; } /** *

The version of the VPC link.

*/ inline void SetVpcLinkVersion(VpcLinkVersion&& value) { m_vpcLinkVersionHasBeenSet = true; m_vpcLinkVersion = std::move(value); } /** *

The version of the VPC link.

*/ inline VpcLink& WithVpcLinkVersion(const VpcLinkVersion& value) { SetVpcLinkVersion(value); return *this;} /** *

The version of the VPC link.

*/ inline VpcLink& WithVpcLinkVersion(VpcLinkVersion&& value) { SetVpcLinkVersion(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdDate; bool m_createdDateHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_vpcLinkId; bool m_vpcLinkIdHasBeenSet = false; VpcLinkStatus m_vpcLinkStatus; bool m_vpcLinkStatusHasBeenSet = false; Aws::String m_vpcLinkStatusMessage; bool m_vpcLinkStatusMessageHasBeenSet = false; VpcLinkVersion m_vpcLinkVersion; bool m_vpcLinkVersionHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws