AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClusterNameT = Aws::String>
47 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
48 template<typename ClusterNameT = Aws::String>
49 CreateClusterV2Request& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
51
53
58 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
59 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
60 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
61 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
62 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
63 CreateClusterV2Request& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
64 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
65 CreateClusterV2Request& AddTags(TagsKeyT&& key, TagsValueT&& value) {
66 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
67 }
69
71
76 inline const ProvisionedRequest& GetProvisioned() const { return m_provisioned; }
77 inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; }
78 template<typename ProvisionedT = ProvisionedRequest>
79 void SetProvisioned(ProvisionedT&& value) { m_provisionedHasBeenSet = true; m_provisioned = std::forward<ProvisionedT>(value); }
80 template<typename ProvisionedT = ProvisionedRequest>
81 CreateClusterV2Request& WithProvisioned(ProvisionedT&& value) { SetProvisioned(std::forward<ProvisionedT>(value)); return *this;}
83
85
90 inline const ServerlessRequest& GetServerless() const { return m_serverless; }
91 inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; }
92 template<typename ServerlessT = ServerlessRequest>
93 void SetServerless(ServerlessT&& value) { m_serverlessHasBeenSet = true; m_serverless = std::forward<ServerlessT>(value); }
94 template<typename ServerlessT = ServerlessRequest>
95 CreateClusterV2Request& WithServerless(ServerlessT&& value) { SetServerless(std::forward<ServerlessT>(value)); return *this;}
97 private:
98
99 Aws::String m_clusterName;
100 bool m_clusterNameHasBeenSet = false;
101
103 bool m_tagsHasBeenSet = false;
104
105 ProvisionedRequest m_provisioned;
106 bool m_provisionedHasBeenSet = false;
107
108 ServerlessRequest m_serverless;
109 bool m_serverlessHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Kafka
114} // 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