/** * 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 { /** *

The VpcConfig * configuration object that specifies the VPC that you want the compilation jobs * to connect to. For more information on controlling access to your Amazon S3 * buckets used for compilation job, see Give Amazon * SageMaker Compilation Jobs Access to Resources in Your Amazon * VPC.

See Also:

AWS * API Reference

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

The VPC security group IDs. IDs have the form of 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. IDs have the form of 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. IDs have the form of 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. IDs have the form of 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. IDs have the form of sg-xxxxxxxx. * Specify the security groups for the VPC that is specified in the * Subnets field.

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

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

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

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

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

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

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

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

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

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

The ID of the subnets in the VPC that you want to connect the compilation job * to for accessing the model in Amazon S3.

*/ inline NeoVpcConfig& 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