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

Specifies a VPC that your training jobs and hosted models have access to. * Control access to and from your training and model containers by configuring the * VPC. For more information, see Protect * Endpoints by Using an Amazon Virtual Private Cloud and Protect * Training Jobs by Using an Amazon Virtual Private Cloud.

See * Also:

AWS * API Reference

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security * groups for the VPC that is specified in the Subnets field.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

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

The ID of the subnets in the VPC to which you want to connect your training * job or model. For information about the availability of specific instance types, * see Supported * Instance Types and Availability Zones.

*/ 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 SageMaker } // namespace Aws