/** * 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 AppRunner { namespace Model { /** */ class CreateVpcConnectorRequest : public AppRunnerRequest { public: AWS_APPRUNNER_API CreateVpcConnectorRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateVpcConnector"; } AWS_APPRUNNER_API Aws::String SerializePayload() const override; AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for the VPC connector.

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

A name for the VPC connector.

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

A name for the VPC connector.

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

A name for the VPC connector.

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

A name for the VPC connector.

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

A name for the VPC connector.

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

A name for the VPC connector.

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

A name for the VPC connector.

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

A list of IDs of subnets that App Runner should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

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

A list of IDs of subnets that App Runner should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

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

A list of IDs of subnets that App Runner should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

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

A list of IDs of subnets that App Runner should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

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

A list of IDs of subnets that App Runner should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

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

A list of IDs of subnets that App Runner should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

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

A list of IDs of subnets that App Runner should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

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

A list of IDs of subnets that App Runner should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

*/ inline CreateVpcConnectorRequest& 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 should use when it associates your * service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. * App Runner determines the Amazon VPC from the subnets you specify.

*

App Runner currently only provides support for IPv4.

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

A list of IDs of security groups that App Runner should use 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 should use 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 should use 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 should use 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 should use 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 CreateVpcConnectorRequest& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

A list of IDs of security groups that App Runner should use 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 CreateVpcConnectorRequest& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

A list of IDs of security groups that App Runner should use 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 CreateVpcConnectorRequest& 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 should use 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 CreateVpcConnectorRequest& 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 should use 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 CreateVpcConnectorRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

A list of metadata items that you can associate with your VPC connector * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your VPC connector * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your VPC connector * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your VPC connector * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your VPC connector * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your VPC connector * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your VPC connector * resource. A tag is a key-value pair.

*/ inline CreateVpcConnectorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of metadata items that you can associate with your VPC connector * resource. A tag is a key-value pair.

*/ inline CreateVpcConnectorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_vpcConnectorName; bool m_vpcConnectorNameHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws