/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Options to specify the subnets and security groups for an Amazon OpenSearch
* Service VPC endpoint. For more information, see Launching
* your Amazon OpenSearch Service domains using a VPC.See Also:
* AWS
* API Reference
A list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline const Aws::VectorA list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *A list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline void SetSubnetIds(const Aws::VectorA list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline void SetSubnetIds(Aws::VectorA list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline VPCOptions& WithSubnetIds(const Aws::VectorA list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline VPCOptions& WithSubnetIds(Aws::VectorA list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline VPCOptions& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *A list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline VPCOptions& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *A list of subnet IDs associated with the VPC endpoints for the domain. If * your domain uses multiple Availability Zones, you need to provide two subnet * IDs, one per zone. Otherwise, provide only one.
*/ inline VPCOptions& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *The list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline const Aws::VectorThe list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *The list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline void SetSecurityGroupIds(const Aws::VectorThe list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline void SetSecurityGroupIds(Aws::VectorThe list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline VPCOptions& WithSecurityGroupIds(const Aws::VectorThe list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline VPCOptions& WithSecurityGroupIds(Aws::VectorThe list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline VPCOptions& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *The list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline VPCOptions& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *The list of security group IDs associated with the VPC endpoints for the * domain. If you do not provide a security group ID, OpenSearch Service uses the * default security group for the VPC.
*/ inline VPCOptions& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } private: Aws::Vector