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

Describes an App Runner VPC connector resource. A VPC connector describes the * Amazon Virtual Private Cloud (Amazon VPC) that an App Runner service is * associated with, and the subnets and security group that are used.

*

Multiple revisions of a connector might have the same Name and * different Revision values.

At this time, App Runner * supports only one revision per name.

See Also:

AWS * API Reference

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

The customer-provided VPC connector name.

*/ inline const Aws::String& GetVpcConnectorName() const{ return m_vpcConnectorName; } /** *

The customer-provided VPC connector name.

*/ inline bool VpcConnectorNameHasBeenSet() const { return m_vpcConnectorNameHasBeenSet; } /** *

The customer-provided VPC connector name.

*/ inline void SetVpcConnectorName(const Aws::String& value) { m_vpcConnectorNameHasBeenSet = true; m_vpcConnectorName = value; } /** *

The customer-provided VPC connector name.

*/ inline void SetVpcConnectorName(Aws::String&& value) { m_vpcConnectorNameHasBeenSet = true; m_vpcConnectorName = std::move(value); } /** *

The customer-provided VPC connector name.

*/ inline void SetVpcConnectorName(const char* value) { m_vpcConnectorNameHasBeenSet = true; m_vpcConnectorName.assign(value); } /** *

The customer-provided VPC connector name.

*/ inline VpcConnector& WithVpcConnectorName(const Aws::String& value) { SetVpcConnectorName(value); return *this;} /** *

The customer-provided VPC connector name.

*/ inline VpcConnector& WithVpcConnectorName(Aws::String&& value) { SetVpcConnectorName(std::move(value)); return *this;} /** *

The customer-provided VPC connector name.

*/ inline VpcConnector& WithVpcConnectorName(const char* value) { SetVpcConnectorName(value); return *this;} /** *

The Amazon Resource Name (ARN) of this VPC connector.

*/ inline const Aws::String& GetVpcConnectorArn() const{ return m_vpcConnectorArn; } /** *

The Amazon Resource Name (ARN) of this VPC connector.

*/ inline bool VpcConnectorArnHasBeenSet() const { return m_vpcConnectorArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of this VPC connector.

*/ inline void SetVpcConnectorArn(const Aws::String& value) { m_vpcConnectorArnHasBeenSet = true; m_vpcConnectorArn = value; } /** *

The Amazon Resource Name (ARN) of this VPC connector.

*/ inline void SetVpcConnectorArn(Aws::String&& value) { m_vpcConnectorArnHasBeenSet = true; m_vpcConnectorArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of this VPC connector.

*/ inline void SetVpcConnectorArn(const char* value) { m_vpcConnectorArnHasBeenSet = true; m_vpcConnectorArn.assign(value); } /** *

The Amazon Resource Name (ARN) of this VPC connector.

*/ inline VpcConnector& WithVpcConnectorArn(const Aws::String& value) { SetVpcConnectorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of this VPC connector.

*/ inline VpcConnector& WithVpcConnectorArn(Aws::String&& value) { SetVpcConnectorArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of this VPC connector.

*/ inline VpcConnector& WithVpcConnectorArn(const char* value) { SetVpcConnectorArn(value); return *this;} /** *

The revision of this VPC connector. It's unique among all the active * connectors ("Status": "ACTIVE") that share the same * Name.

At this time, App Runner supports only one * revision per name.

*/ inline int GetVpcConnectorRevision() const{ return m_vpcConnectorRevision; } /** *

The revision of this VPC connector. It's unique among all the active * connectors ("Status": "ACTIVE") that share the same * Name.

At this time, App Runner supports only one * revision per name.

*/ inline bool VpcConnectorRevisionHasBeenSet() const { return m_vpcConnectorRevisionHasBeenSet; } /** *

The revision of this VPC connector. It's unique among all the active * connectors ("Status": "ACTIVE") that share the same * Name.

At this time, App Runner supports only one * revision per name.

*/ inline void SetVpcConnectorRevision(int value) { m_vpcConnectorRevisionHasBeenSet = true; m_vpcConnectorRevision = value; } /** *

The revision of this VPC connector. It's unique among all the active * connectors ("Status": "ACTIVE") that share the same * Name.

At this time, App Runner supports only one * revision per name.

*/ inline VpcConnector& WithVpcConnectorRevision(int value) { SetVpcConnectorRevision(value); return *this;} /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline const Aws::Vector& GetSubnets() const{ return m_subnets; } /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline void SetSubnets(const Aws::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline void SetSubnets(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline VpcConnector& WithSubnets(const Aws::Vector& value) { SetSubnets(value); return *this;} /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline VpcConnector& WithSubnets(Aws::Vector&& value) { SetSubnets(std::move(value)); return *this;} /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline VpcConnector& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline VpcConnector& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } /** *

A list of IDs of subnets that App Runner uses for your service. All IDs are * of subnets of a single Amazon VPC.

*/ inline VpcConnector& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline VpcConnector& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline VpcConnector& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline VpcConnector& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline VpcConnector& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

A list of IDs of security groups that App Runner uses for access to Amazon * Web Services resources under the specified subnets. If not specified, App Runner * uses the default security group of the Amazon VPC. The default security group * allows all outbound traffic.

*/ inline VpcConnector& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

The current state of the VPC connector. If the status of a connector revision * is INACTIVE, it was deleted and can't be used. Inactive connector * revisions are permanently removed some time after they are deleted.

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

The current state of the VPC connector. If the status of a connector revision * is INACTIVE, it was deleted and can't be used. Inactive connector * revisions are permanently removed some time after they are deleted.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current state of the VPC connector. If the status of a connector revision * is INACTIVE, it was deleted and can't be used. Inactive connector * revisions are permanently removed some time after they are deleted.

*/ inline void SetStatus(const VpcConnectorStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current state of the VPC connector. If the status of a connector revision * is INACTIVE, it was deleted and can't be used. Inactive connector * revisions are permanently removed some time after they are deleted.

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

The current state of the VPC connector. If the status of a connector revision * is INACTIVE, it was deleted and can't be used. Inactive connector * revisions are permanently removed some time after they are deleted.

*/ inline VpcConnector& WithStatus(const VpcConnectorStatus& value) { SetStatus(value); return *this;} /** *

The current state of the VPC connector. If the status of a connector revision * is INACTIVE, it was deleted and can't be used. Inactive connector * revisions are permanently removed some time after they are deleted.

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

The time when the VPC connector was created. It's in Unix time stamp * format.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time when the VPC connector was created. It's in Unix time stamp * format.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time when the VPC connector was created. It's in Unix time stamp * format.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time when the VPC connector was created. It's in Unix time stamp * format.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time when the VPC connector was created. It's in Unix time stamp * format.

*/ inline VpcConnector& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time when the VPC connector was created. It's in Unix time stamp * format.

*/ inline VpcConnector& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time when the VPC connector was deleted. It's in Unix time stamp * format.

*/ inline const Aws::Utils::DateTime& GetDeletedAt() const{ return m_deletedAt; } /** *

The time when the VPC connector was deleted. It's in Unix time stamp * format.

*/ inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; } /** *

The time when the VPC connector was deleted. It's in Unix time stamp * format.

*/ inline void SetDeletedAt(const Aws::Utils::DateTime& value) { m_deletedAtHasBeenSet = true; m_deletedAt = value; } /** *

The time when the VPC connector was deleted. It's in Unix time stamp * format.

*/ inline void SetDeletedAt(Aws::Utils::DateTime&& value) { m_deletedAtHasBeenSet = true; m_deletedAt = std::move(value); } /** *

The time when the VPC connector was deleted. It's in Unix time stamp * format.

*/ inline VpcConnector& WithDeletedAt(const Aws::Utils::DateTime& value) { SetDeletedAt(value); return *this;} /** *

The time when the VPC connector was deleted. It's in Unix time stamp * format.

*/ inline VpcConnector& WithDeletedAt(Aws::Utils::DateTime&& value) { SetDeletedAt(std::move(value)); return *this;} private: Aws::String m_vpcConnectorName; bool m_vpcConnectorNameHasBeenSet = false; Aws::String m_vpcConnectorArn; bool m_vpcConnectorArnHasBeenSet = false; int m_vpcConnectorRevision; bool m_vpcConnectorRevisionHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; VpcConnectorStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_deletedAt; bool m_deletedAtHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws