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

The properties of a virtual private cloud (VPC) destination.

See * Also:

AWS * API Reference

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

The subnet IDs of the VPC destination.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The subnet IDs of the VPC destination.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The subnet IDs of the VPC destination.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The subnet IDs of the VPC destination.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The subnet IDs of the VPC destination.

*/ inline VpcDestinationProperties& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The subnet IDs of the VPC destination.

*/ inline VpcDestinationProperties& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The subnet IDs of the VPC destination.

*/ inline VpcDestinationProperties& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The subnet IDs of the VPC destination.

*/ inline VpcDestinationProperties& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The subnet IDs of the VPC destination.

*/ inline VpcDestinationProperties& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The security groups of the VPC destination.

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

The security groups of the VPC destination.

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

The security groups of the VPC destination.

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

The security groups of the VPC destination.

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

The security groups of the VPC destination.

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

The security groups of the VPC destination.

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

The security groups of the VPC destination.

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

The security groups of the VPC destination.

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

The security groups of the VPC destination.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ARN of a role that has permission to create and attach to elastic network * interfaces (ENIs).

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of a role that has permission to create and attach to elastic network * interfaces (ENIs).

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of a role that has permission to create and attach to elastic network * interfaces (ENIs).

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of a role that has permission to create and attach to elastic network * interfaces (ENIs).

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of a role that has permission to create and attach to elastic network * interfaces (ENIs).

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of a role that has permission to create and attach to elastic network * interfaces (ENIs).

*/ inline VpcDestinationProperties& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of a role that has permission to create and attach to elastic network * interfaces (ENIs).

*/ inline VpcDestinationProperties& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of a role that has permission to create and attach to elastic network * interfaces (ENIs).

*/ inline VpcDestinationProperties& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws