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

Inference Recommender provisions SageMaker endpoints with access to VPC in * the inference recommendation job.

See Also:

AWS * API Reference

*/ class RecommendationJobVpcConfig { public: AWS_SAGEMAKER_API RecommendationJobVpcConfig(); AWS_SAGEMAKER_API RecommendationJobVpcConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API RecommendationJobVpcConfig& 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 RecommendationJobVpcConfig& 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 RecommendationJobVpcConfig& 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 RecommendationJobVpcConfig& 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 RecommendationJobVpcConfig& 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 RecommendationJobVpcConfig& 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 model.

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

The ID of the subnets in the VPC to which you want to connect your model.

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

The ID of the subnets in the VPC to which you want to connect your model.

*/ 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 model.

*/ 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 model.

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

The ID of the subnets in the VPC to which you want to connect your model.

*/ inline RecommendationJobVpcConfig& 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 model.

*/ inline RecommendationJobVpcConfig& 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 model.

*/ inline RecommendationJobVpcConfig& 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 model.

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