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

If your simulation job accesses resources in a VPC, you provide this * parameter identifying the list of security group IDs and subnet IDs. These must * belong to the same VPC. You must provide at least one security group and two * subnet IDs.

See Also:

AWS * API Reference

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more subnet IDs in your VPC.

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

A list of one or more security groups IDs in your VPC.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

A list of one or more security groups IDs in your VPC.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

A list of one or more security groups IDs in your VPC.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

A list of one or more security groups IDs in your VPC.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

A list of one or more security groups IDs in your VPC.

*/ inline VPCConfig& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

A list of one or more security groups IDs in your VPC.

*/ inline VPCConfig& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

A list of one or more security groups IDs in your VPC.

*/ inline VPCConfig& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

A list of one or more security groups IDs in your VPC.

*/ inline VPCConfig& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

A list of one or more security groups IDs in your VPC.

*/ inline VPCConfig& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

A boolean indicating whether to assign a public IP address.

*/ inline bool GetAssignPublicIp() const{ return m_assignPublicIp; } /** *

A boolean indicating whether to assign a public IP address.

*/ inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; } /** *

A boolean indicating whether to assign a public IP address.

*/ inline void SetAssignPublicIp(bool value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; } /** *

A boolean indicating whether to assign a public IP address.

*/ inline VPCConfig& WithAssignPublicIp(bool value) { SetAssignPublicIp(value); return *this;} private: Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; bool m_assignPublicIp; bool m_assignPublicIpHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws