AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateClusterV2Request.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/KafkaRequest.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/ProvisionedRequest.h>
12#include <aws/kafka/model/ServerlessRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Kafka {
18namespace Model {
19
23 public:
24 AWS_KAFKA_API CreateClusterV2Request() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterV2"; }
31
32 AWS_KAFKA_API Aws::String SerializePayload() const override;
33
35
40 inline const Aws::String& GetClusterName() const { return m_clusterName; }
41 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
42 template <typename ClusterNameT = Aws::String>
43 void SetClusterName(ClusterNameT&& value) {
44 m_clusterNameHasBeenSet = true;
45 m_clusterName = std::forward<ClusterNameT>(value);
46 }
47 template <typename ClusterNameT = Aws::String>
48 CreateClusterV2Request& WithClusterName(ClusterNameT&& value) {
49 SetClusterName(std::forward<ClusterNameT>(value));
50 return *this;
51 }
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 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
63 void SetTags(TagsT&& value) {
64 m_tagsHasBeenSet = true;
65 m_tags = std::forward<TagsT>(value);
66 }
67 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
69 SetTags(std::forward<TagsT>(value));
70 return *this;
71 }
72 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
73 CreateClusterV2Request& AddTags(TagsKeyT&& key, TagsValueT&& value) {
74 m_tagsHasBeenSet = true;
75 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
76 return *this;
77 }
79
81
86 inline const ProvisionedRequest& GetProvisioned() const { return m_provisioned; }
87 inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; }
88 template <typename ProvisionedT = ProvisionedRequest>
89 void SetProvisioned(ProvisionedT&& value) {
90 m_provisionedHasBeenSet = true;
91 m_provisioned = std::forward<ProvisionedT>(value);
92 }
93 template <typename ProvisionedT = ProvisionedRequest>
94 CreateClusterV2Request& WithProvisioned(ProvisionedT&& value) {
95 SetProvisioned(std::forward<ProvisionedT>(value));
96 return *this;
97 }
99
101
106 inline const ServerlessRequest& GetServerless() const { return m_serverless; }
107 inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; }
108 template <typename ServerlessT = ServerlessRequest>
109 void SetServerless(ServerlessT&& value) {
110 m_serverlessHasBeenSet = true;
111 m_serverless = std::forward<ServerlessT>(value);
112 }
113 template <typename ServerlessT = ServerlessRequest>
115 SetServerless(std::forward<ServerlessT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_clusterName;
121
123
124 ProvisionedRequest m_provisioned;
125
126 ServerlessRequest m_serverless;
127 bool m_clusterNameHasBeenSet = false;
128 bool m_tagsHasBeenSet = false;
129 bool m_provisionedHasBeenSet = false;
130 bool m_serverlessHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Kafka
135} // namespace Aws
const ServerlessRequest & GetServerless() const
CreateClusterV2Request & WithProvisioned(ProvisionedT &&value)
const ProvisionedRequest & GetProvisioned() const
AWS_KAFKA_API CreateClusterV2Request()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterV2Request & WithTags(TagsT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateClusterV2Request & WithServerless(ServerlessT &&value)
CreateClusterV2Request & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateClusterV2Request & WithClusterName(ClusterNameT &&value)
virtual const char * GetServiceRequestName() const override
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