/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Kafka { namespace Model { /** */ class CreateClusterV2Request : public KafkaRequest { public: AWS_KAFKA_API CreateClusterV2Request(); // 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 "CreateClusterV2"; } AWS_KAFKA_API Aws::String SerializePayload() const override; /** *

The name of the cluster.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

The name of the cluster.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the cluster.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

The name of the cluster.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

The name of the cluster.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

The name of the cluster.

*/ inline CreateClusterV2Request& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

The name of the cluster.

*/ inline CreateClusterV2Request& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

The name of the cluster.

*/ inline CreateClusterV2Request& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

*/ inline CreateClusterV2Request& 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 that you want the cluster to have.

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

A map of tags that you want the cluster to have.

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

A map of tags that you want the cluster to have.

*/ inline CreateClusterV2Request& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Information about the provisioned cluster.

*/ inline const ProvisionedRequest& GetProvisioned() const{ return m_provisioned; } /** *

Information about the provisioned cluster.

*/ inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; } /** *

Information about the provisioned cluster.

*/ inline void SetProvisioned(const ProvisionedRequest& value) { m_provisionedHasBeenSet = true; m_provisioned = value; } /** *

Information about the provisioned cluster.

*/ inline void SetProvisioned(ProvisionedRequest&& value) { m_provisionedHasBeenSet = true; m_provisioned = std::move(value); } /** *

Information about the provisioned cluster.

*/ inline CreateClusterV2Request& WithProvisioned(const ProvisionedRequest& value) { SetProvisioned(value); return *this;} /** *

Information about the provisioned cluster.

*/ inline CreateClusterV2Request& WithProvisioned(ProvisionedRequest&& value) { SetProvisioned(std::move(value)); return *this;} /** *

Information about the serverless cluster.

*/ inline const ServerlessRequest& GetServerless() const{ return m_serverless; } /** *

Information about the serverless cluster.

*/ inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; } /** *

Information about the serverless cluster.

*/ inline void SetServerless(const ServerlessRequest& value) { m_serverlessHasBeenSet = true; m_serverless = value; } /** *

Information about the serverless cluster.

*/ inline void SetServerless(ServerlessRequest&& value) { m_serverlessHasBeenSet = true; m_serverless = std::move(value); } /** *

Information about the serverless cluster.

*/ inline CreateClusterV2Request& WithServerless(const ServerlessRequest& value) { SetServerless(value); return *this;} /** *

Information about the serverless cluster.

*/ inline CreateClusterV2Request& WithServerless(ServerlessRequest&& value) { SetServerless(std::move(value)); return *this;} private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; ProvisionedRequest m_provisioned; bool m_provisionedHasBeenSet = false; ServerlessRequest m_serverless; bool m_serverlessHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws