/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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 At this time, App Runner
* supports only one revision per name.Name
and
* different Revision
values.See Also:
AWS
* API Reference
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::VectorA 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::VectorA 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::VectorA 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::VectorA 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::VectorA 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::VectorA 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::VectorA 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::VectorA 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::VectorA 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::VectorA 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.
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.
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.
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.
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.
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.
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