AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TelemetryPipeline.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
10#include <aws/observabilityadmin/model/ConfigurationSummary.h>
11#include <aws/observabilityadmin/model/SourceProgress.h>
12#include <aws/observabilityadmin/model/TelemetryPipelineConfiguration.h>
13#include <aws/observabilityadmin/model/TelemetryPipelineStatus.h>
14#include <aws/observabilityadmin/model/TelemetryPipelineStatusReason.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ObservabilityAdmin {
26namespace Model {
27
36 public:
37 AWS_OBSERVABILITYADMIN_API TelemetryPipeline() = default;
38 AWS_OBSERVABILITYADMIN_API TelemetryPipeline(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OBSERVABILITYADMIN_API TelemetryPipeline& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline long long GetCreatedTimeStamp() const { return m_createdTimeStamp; }
47 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
48 inline void SetCreatedTimeStamp(long long value) {
49 m_createdTimeStampHasBeenSet = true;
50 m_createdTimeStamp = value;
51 }
52 inline TelemetryPipeline& WithCreatedTimeStamp(long long value) {
54 return *this;
55 }
57
59
62 inline long long GetLastUpdateTimeStamp() const { return m_lastUpdateTimeStamp; }
63 inline bool LastUpdateTimeStampHasBeenSet() const { return m_lastUpdateTimeStampHasBeenSet; }
64 inline void SetLastUpdateTimeStamp(long long value) {
65 m_lastUpdateTimeStampHasBeenSet = true;
66 m_lastUpdateTimeStamp = value;
67 }
68 inline TelemetryPipeline& WithLastUpdateTimeStamp(long long value) {
70 return *this;
71 }
73
75
78 inline const Aws::String& GetArn() const { return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 template <typename ArnT = Aws::String>
81 void SetArn(ArnT&& value) {
82 m_arnHasBeenSet = true;
83 m_arn = std::forward<ArnT>(value);
84 }
85 template <typename ArnT = Aws::String>
86 TelemetryPipeline& WithArn(ArnT&& value) {
87 SetArn(std::forward<ArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
104 TelemetryPipeline& WithName(NameT&& value) {
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
114 inline const TelemetryPipelineConfiguration& GetConfiguration() const { return m_configuration; }
115 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
116 template <typename ConfigurationT = TelemetryPipelineConfiguration>
117 void SetConfiguration(ConfigurationT&& value) {
118 m_configurationHasBeenSet = true;
119 m_configuration = std::forward<ConfigurationT>(value);
120 }
121 template <typename ConfigurationT = TelemetryPipelineConfiguration>
122 TelemetryPipeline& WithConfiguration(ConfigurationT&& value) {
123 SetConfiguration(std::forward<ConfigurationT>(value));
124 return *this;
125 }
127
129
132 inline TelemetryPipelineStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
149 inline const TelemetryPipelineStatusReason& GetStatusReason() const { return m_statusReason; }
150 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
151 template <typename StatusReasonT = TelemetryPipelineStatusReason>
152 void SetStatusReason(StatusReasonT&& value) {
153 m_statusReasonHasBeenSet = true;
154 m_statusReason = std::forward<StatusReasonT>(value);
155 }
156 template <typename StatusReasonT = TelemetryPipelineStatusReason>
157 TelemetryPipeline& WithStatusReason(StatusReasonT&& value) {
158 SetStatusReason(std::forward<StatusReasonT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 void SetTags(TagsT&& value) {
171 m_tagsHasBeenSet = true;
172 m_tags = std::forward<TagsT>(value);
173 }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 TelemetryPipeline& WithTags(TagsT&& value) {
176 SetTags(std::forward<TagsT>(value));
177 return *this;
178 }
179 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
180 TelemetryPipeline& AddTags(TagsKeyT&& key, TagsValueT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
183 return *this;
184 }
186
188
193 inline long long GetLastRefreshTimeStamp() const { return m_lastRefreshTimeStamp; }
194 inline bool LastRefreshTimeStampHasBeenSet() const { return m_lastRefreshTimeStampHasBeenSet; }
195 inline void SetLastRefreshTimeStamp(long long value) {
196 m_lastRefreshTimeStampHasBeenSet = true;
197 m_lastRefreshTimeStamp = value;
198 }
201 return *this;
202 }
204
206
210 inline const SourceProgress& GetSourceProgress() const { return m_sourceProgress; }
211 inline bool SourceProgressHasBeenSet() const { return m_sourceProgressHasBeenSet; }
212 template <typename SourceProgressT = SourceProgress>
213 void SetSourceProgress(SourceProgressT&& value) {
214 m_sourceProgressHasBeenSet = true;
215 m_sourceProgress = std::forward<SourceProgressT>(value);
216 }
217 template <typename SourceProgressT = SourceProgress>
218 TelemetryPipeline& WithSourceProgress(SourceProgressT&& value) {
219 SetSourceProgress(std::forward<SourceProgressT>(value));
220 return *this;
221 }
223
225
228 inline const ConfigurationSummary& GetConfigurationSummary() const { return m_configurationSummary; }
229 inline bool ConfigurationSummaryHasBeenSet() const { return m_configurationSummaryHasBeenSet; }
230 template <typename ConfigurationSummaryT = ConfigurationSummary>
231 void SetConfigurationSummary(ConfigurationSummaryT&& value) {
232 m_configurationSummaryHasBeenSet = true;
233 m_configurationSummary = std::forward<ConfigurationSummaryT>(value);
234 }
235 template <typename ConfigurationSummaryT = ConfigurationSummary>
236 TelemetryPipeline& WithConfigurationSummary(ConfigurationSummaryT&& value) {
237 SetConfigurationSummary(std::forward<ConfigurationSummaryT>(value));
238 return *this;
239 }
241 private:
242 long long m_createdTimeStamp{0};
243
244 long long m_lastUpdateTimeStamp{0};
245
246 Aws::String m_arn;
247
248 Aws::String m_name;
249
250 TelemetryPipelineConfiguration m_configuration;
251
253
254 TelemetryPipelineStatusReason m_statusReason;
255
257
258 long long m_lastRefreshTimeStamp{0};
259
260 SourceProgress m_sourceProgress;
261
262 ConfigurationSummary m_configurationSummary;
263 bool m_createdTimeStampHasBeenSet = false;
264 bool m_lastUpdateTimeStampHasBeenSet = false;
265 bool m_arnHasBeenSet = false;
266 bool m_nameHasBeenSet = false;
267 bool m_configurationHasBeenSet = false;
268 bool m_statusHasBeenSet = false;
269 bool m_statusReasonHasBeenSet = false;
270 bool m_tagsHasBeenSet = false;
271 bool m_lastRefreshTimeStampHasBeenSet = false;
272 bool m_sourceProgressHasBeenSet = false;
273 bool m_configurationSummaryHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace ObservabilityAdmin
278} // namespace Aws
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
const TelemetryPipelineStatusReason & GetStatusReason() const
AWS_OBSERVABILITYADMIN_API TelemetryPipeline()=default
const ConfigurationSummary & GetConfigurationSummary() const
AWS_OBSERVABILITYADMIN_API TelemetryPipeline & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(TelemetryPipelineStatus value)
const TelemetryPipelineConfiguration & GetConfiguration() const
void SetConfigurationSummary(ConfigurationSummaryT &&value)
AWS_OBSERVABILITYADMIN_API TelemetryPipeline(Aws::Utils::Json::JsonView jsonValue)
TelemetryPipeline & WithConfigurationSummary(ConfigurationSummaryT &&value)
TelemetryPipeline & WithStatus(TelemetryPipelineStatus value)
TelemetryPipeline & WithSourceProgress(SourceProgressT &&value)
TelemetryPipeline & WithConfiguration(ConfigurationT &&value)
TelemetryPipeline & AddTags(TagsKeyT &&key, TagsValueT &&value)
TelemetryPipeline & WithCreatedTimeStamp(long long value)
TelemetryPipeline & WithStatusReason(StatusReasonT &&value)
TelemetryPipeline & WithLastRefreshTimeStamp(long long value)
TelemetryPipeline & WithLastUpdateTimeStamp(long long value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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
Aws::Utils::Json::JsonValue JsonValue