/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure specifies the VPC subnets and security groups for the stream,
* and whether a public IP address is to be used.See Also:
AWS
* API Reference
Specifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline const Aws::VectorSpecifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline bool SecurityGroupHasBeenSet() const { return m_securityGroupHasBeenSet; } /** *Specifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline void SetSecurityGroup(const Aws::VectorSpecifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline void SetSecurityGroup(Aws::VectorSpecifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline SelfManagedKafkaAccessConfigurationVpc& WithSecurityGroup(const Aws::VectorSpecifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline SelfManagedKafkaAccessConfigurationVpc& WithSecurityGroup(Aws::VectorSpecifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline SelfManagedKafkaAccessConfigurationVpc& AddSecurityGroup(const Aws::String& value) { m_securityGroupHasBeenSet = true; m_securityGroup.push_back(value); return *this; } /** *Specifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline SelfManagedKafkaAccessConfigurationVpc& AddSecurityGroup(Aws::String&& value) { m_securityGroupHasBeenSet = true; m_securityGroup.push_back(std::move(value)); return *this; } /** *Specifies the security groups associated with the stream. These security * groups must all be in the same VPC. You can specify as many as five security * groups. If you do not specify a security group, the default security group for * the VPC is used.
*/ inline SelfManagedKafkaAccessConfigurationVpc& AddSecurityGroup(const char* value) { m_securityGroupHasBeenSet = true; m_securityGroup.push_back(value); return *this; } /** *Specifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline const Aws::VectorSpecifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } /** *Specifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline void SetSubnets(const Aws::VectorSpecifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline void SetSubnets(Aws::VectorSpecifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline SelfManagedKafkaAccessConfigurationVpc& WithSubnets(const Aws::VectorSpecifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline SelfManagedKafkaAccessConfigurationVpc& WithSubnets(Aws::VectorSpecifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline SelfManagedKafkaAccessConfigurationVpc& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *Specifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline SelfManagedKafkaAccessConfigurationVpc& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } /** *Specifies the subnets associated with the stream. These subnets must all be * in the same VPC. You can specify as many as 16 subnets.
*/ inline SelfManagedKafkaAccessConfigurationVpc& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } private: Aws::Vector