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

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

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

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::Vector& GetSecurityGroup() const{ return m_securityGroup; } /** *

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 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::Vector& value) { m_securityGroupHasBeenSet = true; m_securityGroup = value; } /** *

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(Aws::Vector&& value) { m_securityGroupHasBeenSet = true; m_securityGroup = std::move(value); } /** *

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& WithSecurityGroup(const Aws::Vector& value) { SetSecurityGroup(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& WithSecurityGroup(Aws::Vector&& value) { SetSecurityGroup(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 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::Vector& GetSubnets() const{ return m_subnets; } /** *

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 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::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } /** *

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(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } /** *

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& WithSubnets(const Aws::Vector& value) { SetSubnets(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& WithSubnets(Aws::Vector&& value) { SetSubnets(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 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 m_securityGroup; bool m_securityGroupHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws