AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
TopicReassignmentInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/TopicReassignmentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kafka {
22namespace Model {
23
31 public:
32 AWS_KAFKA_API TopicReassignmentInfo() = default;
35 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetCompletedTopics() const { return m_completedTopics; }
42 inline bool CompletedTopicsHasBeenSet() const { return m_completedTopicsHasBeenSet; }
43 inline void SetCompletedTopics(int value) {
44 m_completedTopicsHasBeenSet = true;
45 m_completedTopics = value;
46 }
48 SetCompletedTopics(value);
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
58 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
59 template <typename CreationTimeT = Aws::Utils::DateTime>
60 void SetCreationTime(CreationTimeT&& value) {
61 m_creationTimeHasBeenSet = true;
62 m_creationTime = std::forward<CreationTimeT>(value);
63 }
64 template <typename CreationTimeT = Aws::Utils::DateTime>
65 TopicReassignmentInfo& WithCreationTime(CreationTimeT&& value) {
66 SetCreationTime(std::forward<CreationTimeT>(value));
67 return *this;
68 }
70
72
75 inline TopicReassignmentStatus GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetTargetInstanceType() const { return m_targetInstanceType; }
92 inline bool TargetInstanceTypeHasBeenSet() const { return m_targetInstanceTypeHasBeenSet; }
93 template <typename TargetInstanceTypeT = Aws::String>
94 void SetTargetInstanceType(TargetInstanceTypeT&& value) {
95 m_targetInstanceTypeHasBeenSet = true;
96 m_targetInstanceType = std::forward<TargetInstanceTypeT>(value);
97 }
98 template <typename TargetInstanceTypeT = Aws::String>
99 TopicReassignmentInfo& WithTargetInstanceType(TargetInstanceTypeT&& value) {
100 SetTargetInstanceType(std::forward<TargetInstanceTypeT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetTopicReassignmentOperationArn() const { return m_topicReassignmentOperationArn; }
110 inline bool TopicReassignmentOperationArnHasBeenSet() const { return m_topicReassignmentOperationArnHasBeenSet; }
111 template <typename TopicReassignmentOperationArnT = Aws::String>
112 void SetTopicReassignmentOperationArn(TopicReassignmentOperationArnT&& value) {
113 m_topicReassignmentOperationArnHasBeenSet = true;
114 m_topicReassignmentOperationArn = std::forward<TopicReassignmentOperationArnT>(value);
115 }
116 template <typename TopicReassignmentOperationArnT = Aws::String>
117 TopicReassignmentInfo& WithTopicReassignmentOperationArn(TopicReassignmentOperationArnT&& value) {
118 SetTopicReassignmentOperationArn(std::forward<TopicReassignmentOperationArnT>(value));
119 return *this;
120 }
122
124
127 inline int GetTotalTopics() const { return m_totalTopics; }
128 inline bool TotalTopicsHasBeenSet() const { return m_totalTopicsHasBeenSet; }
129 inline void SetTotalTopics(int value) {
130 m_totalTopicsHasBeenSet = true;
131 m_totalTopics = value;
132 }
134 SetTotalTopics(value);
135 return *this;
136 }
138 private:
139 int m_completedTopics{0};
140
141 Aws::Utils::DateTime m_creationTime{};
142
144
145 Aws::String m_targetInstanceType;
146
147 Aws::String m_topicReassignmentOperationArn;
148
149 int m_totalTopics{0};
150 bool m_completedTopicsHasBeenSet = false;
151 bool m_creationTimeHasBeenSet = false;
152 bool m_statusHasBeenSet = false;
153 bool m_targetInstanceTypeHasBeenSet = false;
154 bool m_topicReassignmentOperationArnHasBeenSet = false;
155 bool m_totalTopicsHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace Kafka
160} // namespace Aws
const Aws::String & GetTopicReassignmentOperationArn() const
AWS_KAFKA_API TopicReassignmentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTargetInstanceType() const
TopicReassignmentStatus GetStatus() const
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetInstanceType(TargetInstanceTypeT &&value)
TopicReassignmentInfo & WithTopicReassignmentOperationArn(TopicReassignmentOperationArnT &&value)
AWS_KAFKA_API TopicReassignmentInfo()=default
AWS_KAFKA_API TopicReassignmentInfo(Aws::Utils::Json::JsonView jsonValue)
TopicReassignmentInfo & WithCreationTime(CreationTimeT &&value)
TopicReassignmentInfo & WithTotalTopics(int value)
TopicReassignmentInfo & WithStatus(TopicReassignmentStatus value)
TopicReassignmentInfo & WithTargetInstanceType(TargetInstanceTypeT &&value)
void SetStatus(TopicReassignmentStatus value)
TopicReassignmentInfo & WithCompletedTopics(int value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetTopicReassignmentOperationArn(TopicReassignmentOperationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue