AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
ScraperDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/Destination.h>
9#include <aws/amp/model/ExporterConfiguration.h>
10#include <aws/amp/model/RoleConfiguration.h>
11#include <aws/amp/model/ScrapeConfiguration.h>
12#include <aws/amp/model/ScraperStatus.h>
13#include <aws/amp/model/Source.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace PrometheusService {
29namespace Model {
30
38 public:
39 AWS_PROMETHEUSSERVICE_API ScraperDescription() = default;
40 AWS_PROMETHEUSSERVICE_API ScraperDescription(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PROMETHEUSSERVICE_API ScraperDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetAlias() const { return m_alias; }
49 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
50 template <typename AliasT = Aws::String>
51 void SetAlias(AliasT&& value) {
52 m_aliasHasBeenSet = true;
53 m_alias = std::forward<AliasT>(value);
54 }
55 template <typename AliasT = Aws::String>
56 ScraperDescription& WithAlias(AliasT&& value) {
57 SetAlias(std::forward<AliasT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetScraperId() const { return m_scraperId; }
68 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
69 template <typename ScraperIdT = Aws::String>
70 void SetScraperId(ScraperIdT&& value) {
71 m_scraperIdHasBeenSet = true;
72 m_scraperId = std::forward<ScraperIdT>(value);
73 }
74 template <typename ScraperIdT = Aws::String>
75 ScraperDescription& WithScraperId(ScraperIdT&& value) {
76 SetScraperId(std::forward<ScraperIdT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetArn() const { return m_arn; }
87 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
88 template <typename ArnT = Aws::String>
89 void SetArn(ArnT&& value) {
90 m_arnHasBeenSet = true;
91 m_arn = std::forward<ArnT>(value);
92 }
93 template <typename ArnT = Aws::String>
94 ScraperDescription& WithArn(ArnT&& value) {
95 SetArn(std::forward<ArnT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
107 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
108 template <typename RoleArnT = Aws::String>
109 void SetRoleArn(RoleArnT&& value) {
110 m_roleArnHasBeenSet = true;
111 m_roleArn = std::forward<RoleArnT>(value);
112 }
113 template <typename RoleArnT = Aws::String>
114 ScraperDescription& WithRoleArn(RoleArnT&& value) {
115 SetRoleArn(std::forward<RoleArnT>(value));
116 return *this;
117 }
119
121
124 inline const ScraperStatus& GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 template <typename StatusT = ScraperStatus>
127 void SetStatus(StatusT&& value) {
128 m_statusHasBeenSet = true;
129 m_status = std::forward<StatusT>(value);
130 }
131 template <typename StatusT = ScraperStatus>
132 ScraperDescription& WithStatus(StatusT&& value) {
133 SetStatus(std::forward<StatusT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
143 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
144 template <typename CreatedAtT = Aws::Utils::DateTime>
145 void SetCreatedAt(CreatedAtT&& value) {
146 m_createdAtHasBeenSet = true;
147 m_createdAt = std::forward<CreatedAtT>(value);
148 }
149 template <typename CreatedAtT = Aws::Utils::DateTime>
150 ScraperDescription& WithCreatedAt(CreatedAtT&& value) {
151 SetCreatedAt(std::forward<CreatedAtT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
161 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
162 template <typename LastModifiedAtT = Aws::Utils::DateTime>
163 void SetLastModifiedAt(LastModifiedAtT&& value) {
164 m_lastModifiedAtHasBeenSet = true;
165 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
166 }
167 template <typename LastModifiedAtT = Aws::Utils::DateTime>
168 ScraperDescription& WithLastModifiedAt(LastModifiedAtT&& value) {
169 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 void SetTags(TagsT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags = std::forward<TagsT>(value);
184 }
185 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
186 ScraperDescription& WithTags(TagsT&& value) {
187 SetTags(std::forward<TagsT>(value));
188 return *this;
189 }
190 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
191 ScraperDescription& AddTags(TagsKeyT&& key, TagsValueT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
203 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
204 template <typename StatusReasonT = Aws::String>
205 void SetStatusReason(StatusReasonT&& value) {
206 m_statusReasonHasBeenSet = true;
207 m_statusReason = std::forward<StatusReasonT>(value);
208 }
209 template <typename StatusReasonT = Aws::String>
210 ScraperDescription& WithStatusReason(StatusReasonT&& value) {
211 SetStatusReason(std::forward<StatusReasonT>(value));
212 return *this;
213 }
215
217
220 inline const ScrapeConfiguration& GetScrapeConfiguration() const { return m_scrapeConfiguration; }
221 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
222 template <typename ScrapeConfigurationT = ScrapeConfiguration>
223 void SetScrapeConfiguration(ScrapeConfigurationT&& value) {
224 m_scrapeConfigurationHasBeenSet = true;
225 m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value);
226 }
227 template <typename ScrapeConfigurationT = ScrapeConfiguration>
228 ScraperDescription& WithScrapeConfiguration(ScrapeConfigurationT&& value) {
229 SetScrapeConfiguration(std::forward<ScrapeConfigurationT>(value));
230 return *this;
231 }
233
235
238 inline const Source& GetSource() const { return m_source; }
239 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
240 template <typename SourceT = Source>
241 void SetSource(SourceT&& value) {
242 m_sourceHasBeenSet = true;
243 m_source = std::forward<SourceT>(value);
244 }
245 template <typename SourceT = Source>
246 ScraperDescription& WithSource(SourceT&& value) {
247 SetSource(std::forward<SourceT>(value));
248 return *this;
249 }
251
253
257 inline const Destination& GetDestination() const { return m_destination; }
258 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
259 template <typename DestinationT = Destination>
260 void SetDestination(DestinationT&& value) {
261 m_destinationHasBeenSet = true;
262 m_destination = std::forward<DestinationT>(value);
263 }
264 template <typename DestinationT = Destination>
265 ScraperDescription& WithDestination(DestinationT&& value) {
266 SetDestination(std::forward<DestinationT>(value));
267 return *this;
268 }
270
272
276 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
277 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
278 template <typename RoleConfigurationT = RoleConfiguration>
279 void SetRoleConfiguration(RoleConfigurationT&& value) {
280 m_roleConfigurationHasBeenSet = true;
281 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
282 }
283 template <typename RoleConfigurationT = RoleConfiguration>
284 ScraperDescription& WithRoleConfiguration(RoleConfigurationT&& value) {
285 SetRoleConfiguration(std::forward<RoleConfigurationT>(value));
286 return *this;
287 }
289
291
295 inline const Aws::Vector<ExporterConfiguration>& GetExporters() const { return m_exporters; }
296 inline bool ExportersHasBeenSet() const { return m_exportersHasBeenSet; }
297 template <typename ExportersT = Aws::Vector<ExporterConfiguration>>
298 void SetExporters(ExportersT&& value) {
299 m_exportersHasBeenSet = true;
300 m_exporters = std::forward<ExportersT>(value);
301 }
302 template <typename ExportersT = Aws::Vector<ExporterConfiguration>>
303 ScraperDescription& WithExporters(ExportersT&& value) {
304 SetExporters(std::forward<ExportersT>(value));
305 return *this;
306 }
307 template <typename ExportersT = ExporterConfiguration>
308 ScraperDescription& AddExporters(ExportersT&& value) {
309 m_exportersHasBeenSet = true;
310 m_exporters.emplace_back(std::forward<ExportersT>(value));
311 return *this;
312 }
314 private:
315 Aws::String m_alias;
316
317 Aws::String m_scraperId;
318
319 Aws::String m_arn;
320
321 Aws::String m_roleArn;
322
323 ScraperStatus m_status;
324
325 Aws::Utils::DateTime m_createdAt{};
326
327 Aws::Utils::DateTime m_lastModifiedAt{};
328
330
331 Aws::String m_statusReason;
332
333 ScrapeConfiguration m_scrapeConfiguration;
334
335 Source m_source;
336
337 Destination m_destination;
338
339 RoleConfiguration m_roleConfiguration;
340
342 bool m_aliasHasBeenSet = false;
343 bool m_scraperIdHasBeenSet = false;
344 bool m_arnHasBeenSet = false;
345 bool m_roleArnHasBeenSet = false;
346 bool m_statusHasBeenSet = false;
347 bool m_createdAtHasBeenSet = false;
348 bool m_lastModifiedAtHasBeenSet = false;
349 bool m_tagsHasBeenSet = false;
350 bool m_statusReasonHasBeenSet = false;
351 bool m_scrapeConfigurationHasBeenSet = false;
352 bool m_sourceHasBeenSet = false;
353 bool m_destinationHasBeenSet = false;
354 bool m_roleConfigurationHasBeenSet = false;
355 bool m_exportersHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace PrometheusService
360} // namespace Aws
AWS_PROMETHEUSSERVICE_API ScraperDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ScraperDescription & WithStatus(StatusT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ScraperDescription & WithSource(SourceT &&value)
const ScrapeConfiguration & GetScrapeConfiguration() const
ScraperDescription & WithAlias(AliasT &&value)
void SetRoleConfiguration(RoleConfigurationT &&value)
ScraperDescription & WithCreatedAt(CreatedAtT &&value)
const RoleConfiguration & GetRoleConfiguration() const
const Aws::Utils::DateTime & GetLastModifiedAt() const
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ScraperDescription & AddTags(TagsKeyT &&key, TagsValueT &&value)
ScraperDescription & WithScraperId(ScraperIdT &&value)
void SetScrapeConfiguration(ScrapeConfigurationT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_PROMETHEUSSERVICE_API ScraperDescription()=default
ScraperDescription & WithLastModifiedAt(LastModifiedAtT &&value)
ScraperDescription & AddExporters(ExportersT &&value)
ScraperDescription & WithRoleArn(RoleArnT &&value)
ScraperDescription & WithExporters(ExportersT &&value)
ScraperDescription & WithDestination(DestinationT &&value)
ScraperDescription & WithRoleConfiguration(RoleConfigurationT &&value)
ScraperDescription & WithScrapeConfiguration(ScrapeConfigurationT &&value)
ScraperDescription & WithStatusReason(StatusReasonT &&value)
AWS_PROMETHEUSSERVICE_API ScraperDescription(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ExporterConfiguration > & GetExporters() 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue