AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterV2Request.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/kafka/model/ProvisionedRequest.h>
12#include <aws/kafka/model/ServerlessRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Kafka
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_KAFKA_API CreateClusterV2Request();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterV2"; }
34
35 AWS_KAFKA_API Aws::String SerializePayload() const override;
36
37
39
44 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
45 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
46 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
47 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
48 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
49 inline CreateClusterV2Request& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
50 inline CreateClusterV2Request& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
51 inline CreateClusterV2Request& WithClusterName(const char* value) { SetClusterName(value); return *this;}
53
55
60 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
63 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
64 inline CreateClusterV2Request& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
65 inline CreateClusterV2Request& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
66 inline CreateClusterV2Request& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
67 inline CreateClusterV2Request& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
68 inline CreateClusterV2Request& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
69 inline CreateClusterV2Request& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
70 inline CreateClusterV2Request& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
71 inline CreateClusterV2Request& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
72 inline CreateClusterV2Request& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
74
76
81 inline const ProvisionedRequest& GetProvisioned() const{ return m_provisioned; }
82 inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; }
83 inline void SetProvisioned(const ProvisionedRequest& value) { m_provisionedHasBeenSet = true; m_provisioned = value; }
84 inline void SetProvisioned(ProvisionedRequest&& value) { m_provisionedHasBeenSet = true; m_provisioned = std::move(value); }
85 inline CreateClusterV2Request& WithProvisioned(const ProvisionedRequest& value) { SetProvisioned(value); return *this;}
86 inline CreateClusterV2Request& WithProvisioned(ProvisionedRequest&& value) { SetProvisioned(std::move(value)); return *this;}
88
90
95 inline const ServerlessRequest& GetServerless() const{ return m_serverless; }
96 inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; }
97 inline void SetServerless(const ServerlessRequest& value) { m_serverlessHasBeenSet = true; m_serverless = value; }
98 inline void SetServerless(ServerlessRequest&& value) { m_serverlessHasBeenSet = true; m_serverless = std::move(value); }
99 inline CreateClusterV2Request& WithServerless(const ServerlessRequest& value) { SetServerless(value); return *this;}
100 inline CreateClusterV2Request& WithServerless(ServerlessRequest&& value) { SetServerless(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_clusterName;
105 bool m_clusterNameHasBeenSet = false;
106
108 bool m_tagsHasBeenSet = false;
109
110 ProvisionedRequest m_provisioned;
111 bool m_provisionedHasBeenSet = false;
112
113 ServerlessRequest m_serverless;
114 bool m_serverlessHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Kafka
119} // namespace Aws
CreateClusterV2Request & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetProvisioned(const ProvisionedRequest &value)
const ServerlessRequest & GetServerless() const
void SetProvisioned(ProvisionedRequest &&value)
CreateClusterV2Request & AddTags(const Aws::String &key, const Aws::String &value)
const ProvisionedRequest & GetProvisioned() const
CreateClusterV2Request & WithServerless(ServerlessRequest &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterV2Request & WithClusterName(const char *value)
void SetServerless(ServerlessRequest &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateClusterV2Request & AddTags(Aws::String &&key, const Aws::String &value)
void SetClusterName(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClusterV2Request & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterV2Request & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetServerless(const ServerlessRequest &value)
CreateClusterV2Request & WithClusterName(Aws::String &&value)
CreateClusterV2Request & WithClusterName(const Aws::String &value)
CreateClusterV2Request & AddTags(Aws::String &&key, Aws::String &&value)
CreateClusterV2Request & AddTags(const char *key, Aws::String &&value)
CreateClusterV2Request & WithServerless(const ServerlessRequest &value)
CreateClusterV2Request & WithProvisioned(const ProvisionedRequest &value)
virtual const char * GetServiceRequestName() const override
CreateClusterV2Request & AddTags(const char *key, const char *value)
CreateClusterV2Request & WithProvisioned(ProvisionedRequest &&value)
CreateClusterV2Request & AddTags(Aws::String &&key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String