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

A VpcConfig object that specifies the VPC that you want your workforce to * connect to.

See Also:

AWS * API Reference

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

The ID of the VPC that the workforce uses for communication.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The ID of the VPC that the workforce uses for communication.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The ID of the VPC that the workforce uses for communication.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The ID of the VPC that the workforce uses for communication.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The ID of the VPC that the workforce uses for communication.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The ID of the VPC that the workforce uses for communication.

*/ inline WorkforceVpcConfigResponse& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The ID of the VPC that the workforce uses for communication.

*/ inline WorkforceVpcConfigResponse& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The ID of the VPC that the workforce uses for communication.

*/ inline WorkforceVpcConfigResponse& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

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

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

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

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

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

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

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

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

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

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

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

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline WorkforceVpcConfigResponse& 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. The security groups must * be for the same VPC as specified in the subnet.

*/ inline WorkforceVpcConfigResponse& 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. The security groups must * be for the same VPC as specified in the subnet.

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

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

The ID of the subnets in the VPC that you want to connect.

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

The ID of the subnets in the VPC that you want to connect.

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

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

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

The ID of the subnets in the VPC that you want to connect.

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

The ID of the subnets in the VPC that you want to connect.

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

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

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

The IDs for the VPC service endpoints of your VPC workforce when it is * created and updated.

*/ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** *

The IDs for the VPC service endpoints of your VPC workforce when it is * created and updated.

*/ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** *

The IDs for the VPC service endpoints of your VPC workforce when it is * created and updated.

*/ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** *

The IDs for the VPC service endpoints of your VPC workforce when it is * created and updated.

*/ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** *

The IDs for the VPC service endpoints of your VPC workforce when it is * created and updated.

*/ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** *

The IDs for the VPC service endpoints of your VPC workforce when it is * created and updated.

*/ inline WorkforceVpcConfigResponse& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** *

The IDs for the VPC service endpoints of your VPC workforce when it is * created and updated.

*/ inline WorkforceVpcConfigResponse& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** *

The IDs for the VPC service endpoints of your VPC workforce when it is * created and updated.

*/ inline WorkforceVpcConfigResponse& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} private: Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws