AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
UpdateTopicRequest.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
11#include <utility>
12
13namespace Aws {
14namespace Kafka {
15namespace Model {
16
20 public:
21 AWS_KAFKA_API UpdateTopicRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateTopic"; }
28
29 AWS_KAFKA_API Aws::String SerializePayload() const override;
30
32
38 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
39 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
40 template <typename ClusterArnT = Aws::String>
41 void SetClusterArn(ClusterArnT&& value) {
42 m_clusterArnHasBeenSet = true;
43 m_clusterArn = std::forward<ClusterArnT>(value);
44 }
45 template <typename ClusterArnT = Aws::String>
46 UpdateTopicRequest& WithClusterArn(ClusterArnT&& value) {
47 SetClusterArn(std::forward<ClusterArnT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetTopicName() const { return m_topicName; }
59 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
60 template <typename TopicNameT = Aws::String>
61 void SetTopicName(TopicNameT&& value) {
62 m_topicNameHasBeenSet = true;
63 m_topicName = std::forward<TopicNameT>(value);
64 }
65 template <typename TopicNameT = Aws::String>
66 UpdateTopicRequest& WithTopicName(TopicNameT&& value) {
67 SetTopicName(std::forward<TopicNameT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetConfigs() const { return m_configs; }
79 inline bool ConfigsHasBeenSet() const { return m_configsHasBeenSet; }
80 template <typename ConfigsT = Aws::String>
81 void SetConfigs(ConfigsT&& value) {
82 m_configsHasBeenSet = true;
83 m_configs = std::forward<ConfigsT>(value);
84 }
85 template <typename ConfigsT = Aws::String>
86 UpdateTopicRequest& WithConfigs(ConfigsT&& value) {
87 SetConfigs(std::forward<ConfigsT>(value));
88 return *this;
89 }
91
93
98 inline int GetPartitionCount() const { return m_partitionCount; }
99 inline bool PartitionCountHasBeenSet() const { return m_partitionCountHasBeenSet; }
100 inline void SetPartitionCount(int value) {
101 m_partitionCountHasBeenSet = true;
102 m_partitionCount = value;
103 }
105 SetPartitionCount(value);
106 return *this;
107 }
109 private:
110 Aws::String m_clusterArn;
111
112 Aws::String m_topicName;
113
114 Aws::String m_configs;
115
116 int m_partitionCount{0};
117 bool m_clusterArnHasBeenSet = false;
118 bool m_topicNameHasBeenSet = false;
119 bool m_configsHasBeenSet = false;
120 bool m_partitionCountHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Kafka
125} // namespace Aws
AWS_KAFKA_API UpdateTopicRequest()=default
UpdateTopicRequest & WithConfigs(ConfigsT &&value)
UpdateTopicRequest & WithClusterArn(ClusterArnT &&value)
void SetClusterArn(ClusterArnT &&value)
UpdateTopicRequest & WithTopicName(TopicNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KAFKA_API Aws::String SerializePayload() const override
const Aws::String & GetConfigs() const
const Aws::String & GetTopicName() const
const Aws::String & GetClusterArn() const
UpdateTopicRequest & WithPartitionCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String