/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Kafka { namespace Model { /** */ class CreateVpcConnectionRequest : public KafkaRequest { public: AWS_KAFKA_API CreateVpcConnectionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateVpcConnection"; } AWS_KAFKA_API Aws::String SerializePayload() const override; /** *

The cluster Amazon Resource Name (ARN) for the VPC * connection.

*/ inline const Aws::String& GetTargetClusterArn() const{ return m_targetClusterArn; } /** *

The cluster Amazon Resource Name (ARN) for the VPC * connection.

*/ inline bool TargetClusterArnHasBeenSet() const { return m_targetClusterArnHasBeenSet; } /** *

The cluster Amazon Resource Name (ARN) for the VPC * connection.

*/ inline void SetTargetClusterArn(const Aws::String& value) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn = value; } /** *

The cluster Amazon Resource Name (ARN) for the VPC * connection.

*/ inline void SetTargetClusterArn(Aws::String&& value) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn = std::move(value); } /** *

The cluster Amazon Resource Name (ARN) for the VPC * connection.

*/ inline void SetTargetClusterArn(const char* value) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn.assign(value); } /** *

The cluster Amazon Resource Name (ARN) for the VPC * connection.

*/ inline CreateVpcConnectionRequest& WithTargetClusterArn(const Aws::String& value) { SetTargetClusterArn(value); return *this;} /** *

The cluster Amazon Resource Name (ARN) for the VPC * connection.

*/ inline CreateVpcConnectionRequest& WithTargetClusterArn(Aws::String&& value) { SetTargetClusterArn(std::move(value)); return *this;} /** *

The cluster Amazon Resource Name (ARN) for the VPC * connection.

*/ inline CreateVpcConnectionRequest& WithTargetClusterArn(const char* value) { SetTargetClusterArn(value); return *this;} /** *

The authentication type of VPC connection.

*/ inline const Aws::String& GetAuthentication() const{ return m_authentication; } /** *

The authentication type of VPC connection.

*/ inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; } /** *

The authentication type of VPC connection.

*/ inline void SetAuthentication(const Aws::String& value) { m_authenticationHasBeenSet = true; m_authentication = value; } /** *

The authentication type of VPC connection.

*/ inline void SetAuthentication(Aws::String&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); } /** *

The authentication type of VPC connection.

*/ inline void SetAuthentication(const char* value) { m_authenticationHasBeenSet = true; m_authentication.assign(value); } /** *

The authentication type of VPC connection.

*/ inline CreateVpcConnectionRequest& WithAuthentication(const Aws::String& value) { SetAuthentication(value); return *this;} /** *

The authentication type of VPC connection.

*/ inline CreateVpcConnectionRequest& WithAuthentication(Aws::String&& value) { SetAuthentication(std::move(value)); return *this;} /** *

The authentication type of VPC connection.

*/ inline CreateVpcConnectionRequest& WithAuthentication(const char* value) { SetAuthentication(value); return *this;} /** *

The VPC ID of VPC connection.

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

The VPC ID of VPC connection.

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

The VPC ID of VPC connection.

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

The VPC ID of VPC connection.

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

The VPC ID of VPC connection.

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

The VPC ID of VPC connection.

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

The VPC ID of VPC connection.

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

The VPC ID of VPC connection.

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

The list of client subnets.

*/ inline const Aws::Vector& GetClientSubnets() const{ return m_clientSubnets; } /** *

The list of client subnets.

*/ inline bool ClientSubnetsHasBeenSet() const { return m_clientSubnetsHasBeenSet; } /** *

The list of client subnets.

*/ inline void SetClientSubnets(const Aws::Vector& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets = value; } /** *

The list of client subnets.

*/ inline void SetClientSubnets(Aws::Vector&& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets = std::move(value); } /** *

The list of client subnets.

*/ inline CreateVpcConnectionRequest& WithClientSubnets(const Aws::Vector& value) { SetClientSubnets(value); return *this;} /** *

The list of client subnets.

*/ inline CreateVpcConnectionRequest& WithClientSubnets(Aws::Vector&& value) { SetClientSubnets(std::move(value)); return *this;} /** *

The list of client subnets.

*/ inline CreateVpcConnectionRequest& AddClientSubnets(const Aws::String& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets.push_back(value); return *this; } /** *

The list of client subnets.

*/ inline CreateVpcConnectionRequest& AddClientSubnets(Aws::String&& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets.push_back(std::move(value)); return *this; } /** *

The list of client subnets.

*/ inline CreateVpcConnectionRequest& AddClientSubnets(const char* value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets.push_back(value); return *this; } /** *

The list of security groups.

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

The list of security groups.

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

The list of security groups.

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

The list of security groups.

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

The list of security groups.

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

The list of security groups.

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

The list of security groups.

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

The list of security groups.

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

The list of security groups.

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

A map of tags for the VPC connection.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map of tags for the VPC connection.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A map of tags for the VPC connection.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A map of tags for the VPC connection.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_targetClusterArn; bool m_targetClusterArnHasBeenSet = false; Aws::String m_authentication; bool m_authenticationHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_clientSubnets; bool m_clientSubnetsHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws