/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ApiGatewayV2 { namespace Model { class CreateVpcLinkResult { public: AWS_APIGATEWAYV2_API CreateVpcLinkResult(); AWS_APIGATEWAYV2_API CreateVpcLinkResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAYV2_API CreateVpcLinkResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; } /** *

The timestamp when the VPC link was created.

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

The timestamp when the VPC link was created.

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

The timestamp when the VPC link was created.

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

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

The name of the VPC link.

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

A list of security group IDs for the VPC link.

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

A list of security group IDs for the VPC link.

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

A list of security group IDs for the VPC link.

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

A list of security group IDs for the VPC link.

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

A list of security group IDs for the VPC link.

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

A list of security group IDs for the VPC link.

*/ inline CreateVpcLinkResult& AddSecurityGroupIds(const char* value) { 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 void SetSubnetIds(const Aws::Vector& value) { m_subnetIds = value; } /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline CreateVpcLinkResult& AddSubnetIds(const char* value) { 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 void SetTags(const Aws::Map& value) { m_tags = value; } /** *

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

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

Tags for the VPC link.

*/ inline CreateVpcLinkResult& AddTags(const char* key, const char* value) { 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 void SetVpcLinkId(const Aws::String& value) { m_vpcLinkId = value; } /** *

The ID of the VPC link.

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

The ID of the VPC link.

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

The ID of the VPC link.

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

The ID of the VPC link.

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

The ID of the VPC link.

*/ inline CreateVpcLinkResult& 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 void SetVpcLinkStatus(const VpcLinkStatus& value) { m_vpcLinkStatus = value; } /** *

The status of the VPC link.

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

The status of the VPC link.

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

The status of the VPC link.

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

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

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

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

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

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

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

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

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

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

*/ inline CreateVpcLinkResult& 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 void SetVpcLinkVersion(const VpcLinkVersion& value) { m_vpcLinkVersion = value; } /** *

The version of the VPC link.

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

The version of the VPC link.

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

The version of the VPC link.

*/ inline CreateVpcLinkResult& WithVpcLinkVersion(VpcLinkVersion&& value) { SetVpcLinkVersion(std::move(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::Utils::DateTime m_createdDate; Aws::String m_name; Aws::Vector m_securityGroupIds; Aws::Vector m_subnetIds; Aws::Map m_tags; Aws::String m_vpcLinkId; VpcLinkStatus m_vpcLinkStatus; Aws::String m_vpcLinkStatusMessage; VpcLinkVersion m_vpcLinkVersion; Aws::String m_requestId; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws