AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateClusterKafkaVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/ConfigurationInfo.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Kafka {
16namespace Model {
17
21 public:
22 AWS_KAFKA_API UpdateClusterKafkaVersionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterKafkaVersion"; }
29
30 AWS_KAFKA_API Aws::String SerializePayload() const override;
31
33
39 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
40 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
41 template <typename ClusterArnT = Aws::String>
42 void SetClusterArn(ClusterArnT&& value) {
43 m_clusterArnHasBeenSet = true;
44 m_clusterArn = std::forward<ClusterArnT>(value);
45 }
46 template <typename ClusterArnT = Aws::String>
48 SetClusterArn(std::forward<ClusterArnT>(value));
49 return *this;
50 }
52
54
60 inline const ConfigurationInfo& GetConfigurationInfo() const { return m_configurationInfo; }
61 inline bool ConfigurationInfoHasBeenSet() const { return m_configurationInfoHasBeenSet; }
62 template <typename ConfigurationInfoT = ConfigurationInfo>
63 void SetConfigurationInfo(ConfigurationInfoT&& value) {
64 m_configurationInfoHasBeenSet = true;
65 m_configurationInfo = std::forward<ConfigurationInfoT>(value);
66 }
67 template <typename ConfigurationInfoT = ConfigurationInfo>
69 SetConfigurationInfo(std::forward<ConfigurationInfoT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
81 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
82 template <typename CurrentVersionT = Aws::String>
83 void SetCurrentVersion(CurrentVersionT&& value) {
84 m_currentVersionHasBeenSet = true;
85 m_currentVersion = std::forward<CurrentVersionT>(value);
86 }
87 template <typename CurrentVersionT = Aws::String>
89 SetCurrentVersion(std::forward<CurrentVersionT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetTargetKafkaVersion() const { return m_targetKafkaVersion; }
101 inline bool TargetKafkaVersionHasBeenSet() const { return m_targetKafkaVersionHasBeenSet; }
102 template <typename TargetKafkaVersionT = Aws::String>
103 void SetTargetKafkaVersion(TargetKafkaVersionT&& value) {
104 m_targetKafkaVersionHasBeenSet = true;
105 m_targetKafkaVersion = std::forward<TargetKafkaVersionT>(value);
106 }
107 template <typename TargetKafkaVersionT = Aws::String>
109 SetTargetKafkaVersion(std::forward<TargetKafkaVersionT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_clusterArn;
115
116 ConfigurationInfo m_configurationInfo;
117
118 Aws::String m_currentVersion;
119
120 Aws::String m_targetKafkaVersion;
121 bool m_clusterArnHasBeenSet = false;
122 bool m_configurationInfoHasBeenSet = false;
123 bool m_currentVersionHasBeenSet = false;
124 bool m_targetKafkaVersionHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Kafka
129} // namespace Aws
UpdateClusterKafkaVersionRequest & WithConfigurationInfo(ConfigurationInfoT &&value)
UpdateClusterKafkaVersionRequest & WithClusterArn(ClusterArnT &&value)
UpdateClusterKafkaVersionRequest & WithTargetKafkaVersion(TargetKafkaVersionT &&value)
UpdateClusterKafkaVersionRequest & WithCurrentVersion(CurrentVersionT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String