/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

Configuration parameters for an optional private Virtual Private Cloud (VPC) * containing the resources you are using for the job. For more information, see Amazon * VPC.

See Also:

AWS * API Reference

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID number for a security group on an instance of your private VPC. * Security groups on your VPC function serve as a virtual firewall to control * inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security * Groups for your VPC.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

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

The ID for each subnet being used in your private VPC. This subnet is a * subset of the a range of IPv4 addresses used by the VPC and is specific to a * given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see * VPCs * and Subnets.

*/ inline VpcConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } private: Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws