AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
WorkerConfigurationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
10#include <aws/kafkaconnect/model/WorkerConfigurationRevisionSummary.h>
11#include <aws/kafkaconnect/model/WorkerConfigurationState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace KafkaConnect {
23namespace Model {
24
31 public:
32 AWS_KAFKACONNECT_API WorkerConfigurationSummary() = default;
35 AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
42 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
43 template <typename CreationTimeT = Aws::Utils::DateTime>
44 void SetCreationTime(CreationTimeT&& value) {
45 m_creationTimeHasBeenSet = true;
46 m_creationTime = std::forward<CreationTimeT>(value);
47 }
48 template <typename CreationTimeT = Aws::Utils::DateTime>
50 SetCreationTime(std::forward<CreationTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const WorkerConfigurationRevisionSummary& GetLatestRevision() const { return m_latestRevision; }
78 inline bool LatestRevisionHasBeenSet() const { return m_latestRevisionHasBeenSet; }
79 template <typename LatestRevisionT = WorkerConfigurationRevisionSummary>
80 void SetLatestRevision(LatestRevisionT&& value) {
81 m_latestRevisionHasBeenSet = true;
82 m_latestRevision = std::forward<LatestRevisionT>(value);
83 }
84 template <typename LatestRevisionT = WorkerConfigurationRevisionSummary>
86 SetLatestRevision(std::forward<LatestRevisionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetWorkerConfigurationArn() const { return m_workerConfigurationArn; }
114 inline bool WorkerConfigurationArnHasBeenSet() const { return m_workerConfigurationArnHasBeenSet; }
115 template <typename WorkerConfigurationArnT = Aws::String>
116 void SetWorkerConfigurationArn(WorkerConfigurationArnT&& value) {
117 m_workerConfigurationArnHasBeenSet = true;
118 m_workerConfigurationArn = std::forward<WorkerConfigurationArnT>(value);
119 }
120 template <typename WorkerConfigurationArnT = Aws::String>
121 WorkerConfigurationSummary& WithWorkerConfigurationArn(WorkerConfigurationArnT&& value) {
122 SetWorkerConfigurationArn(std::forward<WorkerConfigurationArnT>(value));
123 return *this;
124 }
126
128
131 inline WorkerConfigurationState GetWorkerConfigurationState() const { return m_workerConfigurationState; }
132 inline bool WorkerConfigurationStateHasBeenSet() const { return m_workerConfigurationStateHasBeenSet; }
134 m_workerConfigurationStateHasBeenSet = true;
135 m_workerConfigurationState = value;
136 }
139 return *this;
140 }
142 private:
143 Aws::Utils::DateTime m_creationTime{};
144
145 Aws::String m_description;
146
147 WorkerConfigurationRevisionSummary m_latestRevision;
148
149 Aws::String m_name;
150
151 Aws::String m_workerConfigurationArn;
152
154 bool m_creationTimeHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_latestRevisionHasBeenSet = false;
157 bool m_nameHasBeenSet = false;
158 bool m_workerConfigurationArnHasBeenSet = false;
159 bool m_workerConfigurationStateHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace KafkaConnect
164} // namespace Aws
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerConfigurationSummary & WithCreationTime(CreationTimeT &&value)
WorkerConfigurationSummary & WithLatestRevision(LatestRevisionT &&value)
WorkerConfigurationSummary & WithWorkerConfigurationState(WorkerConfigurationState value)
const WorkerConfigurationRevisionSummary & GetLatestRevision() const
AWS_KAFKACONNECT_API WorkerConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
WorkerConfigurationSummary & WithName(NameT &&value)
WorkerConfigurationSummary & WithDescription(DescriptionT &&value)
void SetWorkerConfigurationArn(WorkerConfigurationArnT &&value)
AWS_KAFKACONNECT_API WorkerConfigurationSummary()=default
AWS_KAFKACONNECT_API WorkerConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkerConfigurationSummary & WithWorkerConfigurationArn(WorkerConfigurationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue