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

If this canary is to test an endpoint in a VPC, this structure contains * information about the subnets and security groups of the VPC endpoint. For more * information, see * Running a Canary in a VPC.

See Also:

AWS * API Reference

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

The IDs of the VPC where this canary is to run.

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

The IDs of the VPC where this canary is to run.

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

The IDs of the VPC where this canary is to run.

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

The IDs of the VPC where this canary is to run.

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

The IDs of the VPC where this canary is to run.

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

The IDs of the VPC where this canary is to run.

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

The IDs of the VPC where this canary is to run.

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

The IDs of the VPC where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the subnets where this canary is to run.

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

The IDs of the security groups for this canary.

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

The IDs of the security groups for this canary.

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

The IDs of the security groups for this canary.

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

The IDs of the security groups for this canary.

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

The IDs of the security groups for this canary.

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

The IDs of the security groups for this canary.

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

The IDs of the security groups for this canary.

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

The IDs of the security groups for this canary.

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

The IDs of the security groups for this canary.

*/ inline VpcConfigOutput& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } private: Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; }; } // namespace Model } // namespace Synthetics } // namespace Aws