AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
ScraperSummary.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/ScraperStatus.h>
12#include <aws/amp/model/Source.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace PrometheusService {
28namespace Model {
29
37 public:
38 AWS_PROMETHEUSSERVICE_API ScraperSummary() = default;
39 AWS_PROMETHEUSSERVICE_API ScraperSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PROMETHEUSSERVICE_API ScraperSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetAlias() const { return m_alias; }
48 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
49 template <typename AliasT = Aws::String>
50 void SetAlias(AliasT&& value) {
51 m_aliasHasBeenSet = true;
52 m_alias = std::forward<AliasT>(value);
53 }
54 template <typename AliasT = Aws::String>
55 ScraperSummary& WithAlias(AliasT&& value) {
56 SetAlias(std::forward<AliasT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetScraperId() const { return m_scraperId; }
66 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
67 template <typename ScraperIdT = Aws::String>
68 void SetScraperId(ScraperIdT&& value) {
69 m_scraperIdHasBeenSet = true;
70 m_scraperId = std::forward<ScraperIdT>(value);
71 }
72 template <typename ScraperIdT = Aws::String>
73 ScraperSummary& WithScraperId(ScraperIdT&& value) {
74 SetScraperId(std::forward<ScraperIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetArn() const { return m_arn; }
84 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
85 template <typename ArnT = Aws::String>
86 void SetArn(ArnT&& value) {
87 m_arnHasBeenSet = true;
88 m_arn = std::forward<ArnT>(value);
89 }
90 template <typename ArnT = Aws::String>
91 ScraperSummary& WithArn(ArnT&& value) {
92 SetArn(std::forward<ArnT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 template <typename RoleArnT = Aws::String>
105 void SetRoleArn(RoleArnT&& value) {
106 m_roleArnHasBeenSet = true;
107 m_roleArn = std::forward<RoleArnT>(value);
108 }
109 template <typename RoleArnT = Aws::String>
110 ScraperSummary& WithRoleArn(RoleArnT&& value) {
111 SetRoleArn(std::forward<RoleArnT>(value));
112 return *this;
113 }
115
117
120 inline const ScraperStatus& GetStatus() const { return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 template <typename StatusT = ScraperStatus>
123 void SetStatus(StatusT&& value) {
124 m_statusHasBeenSet = true;
125 m_status = std::forward<StatusT>(value);
126 }
127 template <typename StatusT = ScraperStatus>
128 ScraperSummary& WithStatus(StatusT&& value) {
129 SetStatus(std::forward<StatusT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
139 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
140 template <typename CreatedAtT = Aws::Utils::DateTime>
141 void SetCreatedAt(CreatedAtT&& value) {
142 m_createdAtHasBeenSet = true;
143 m_createdAt = std::forward<CreatedAtT>(value);
144 }
145 template <typename CreatedAtT = Aws::Utils::DateTime>
146 ScraperSummary& WithCreatedAt(CreatedAtT&& value) {
147 SetCreatedAt(std::forward<CreatedAtT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
157 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
158 template <typename LastModifiedAtT = Aws::Utils::DateTime>
159 void SetLastModifiedAt(LastModifiedAtT&& value) {
160 m_lastModifiedAtHasBeenSet = true;
161 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
162 }
163 template <typename LastModifiedAtT = Aws::Utils::DateTime>
164 ScraperSummary& WithLastModifiedAt(LastModifiedAtT&& value) {
165 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 void SetTags(TagsT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags = std::forward<TagsT>(value);
180 }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 ScraperSummary& WithTags(TagsT&& value) {
183 SetTags(std::forward<TagsT>(value));
184 return *this;
185 }
186 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
187 ScraperSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
199 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
200 template <typename StatusReasonT = Aws::String>
201 void SetStatusReason(StatusReasonT&& value) {
202 m_statusReasonHasBeenSet = true;
203 m_statusReason = std::forward<StatusReasonT>(value);
204 }
205 template <typename StatusReasonT = Aws::String>
206 ScraperSummary& WithStatusReason(StatusReasonT&& value) {
207 SetStatusReason(std::forward<StatusReasonT>(value));
208 return *this;
209 }
211
213
216 inline const Source& GetSource() const { return m_source; }
217 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
218 template <typename SourceT = Source>
219 void SetSource(SourceT&& value) {
220 m_sourceHasBeenSet = true;
221 m_source = std::forward<SourceT>(value);
222 }
223 template <typename SourceT = Source>
224 ScraperSummary& WithSource(SourceT&& value) {
225 SetSource(std::forward<SourceT>(value));
226 return *this;
227 }
229
231
235 inline const Destination& GetDestination() const { return m_destination; }
236 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
237 template <typename DestinationT = Destination>
238 void SetDestination(DestinationT&& value) {
239 m_destinationHasBeenSet = true;
240 m_destination = std::forward<DestinationT>(value);
241 }
242 template <typename DestinationT = Destination>
243 ScraperSummary& WithDestination(DestinationT&& value) {
244 SetDestination(std::forward<DestinationT>(value));
245 return *this;
246 }
248
250
254 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
255 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
256 template <typename RoleConfigurationT = RoleConfiguration>
257 void SetRoleConfiguration(RoleConfigurationT&& value) {
258 m_roleConfigurationHasBeenSet = true;
259 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
260 }
261 template <typename RoleConfigurationT = RoleConfiguration>
262 ScraperSummary& WithRoleConfiguration(RoleConfigurationT&& value) {
263 SetRoleConfiguration(std::forward<RoleConfigurationT>(value));
264 return *this;
265 }
267
269
273 inline const Aws::Vector<ExporterConfiguration>& GetExporters() const { return m_exporters; }
274 inline bool ExportersHasBeenSet() const { return m_exportersHasBeenSet; }
275 template <typename ExportersT = Aws::Vector<ExporterConfiguration>>
276 void SetExporters(ExportersT&& value) {
277 m_exportersHasBeenSet = true;
278 m_exporters = std::forward<ExportersT>(value);
279 }
280 template <typename ExportersT = Aws::Vector<ExporterConfiguration>>
281 ScraperSummary& WithExporters(ExportersT&& value) {
282 SetExporters(std::forward<ExportersT>(value));
283 return *this;
284 }
285 template <typename ExportersT = ExporterConfiguration>
286 ScraperSummary& AddExporters(ExportersT&& value) {
287 m_exportersHasBeenSet = true;
288 m_exporters.emplace_back(std::forward<ExportersT>(value));
289 return *this;
290 }
292 private:
293 Aws::String m_alias;
294
295 Aws::String m_scraperId;
296
297 Aws::String m_arn;
298
299 Aws::String m_roleArn;
300
301 ScraperStatus m_status;
302
303 Aws::Utils::DateTime m_createdAt{};
304
305 Aws::Utils::DateTime m_lastModifiedAt{};
306
308
309 Aws::String m_statusReason;
310
311 Source m_source;
312
313 Destination m_destination;
314
315 RoleConfiguration m_roleConfiguration;
316
318 bool m_aliasHasBeenSet = false;
319 bool m_scraperIdHasBeenSet = false;
320 bool m_arnHasBeenSet = false;
321 bool m_roleArnHasBeenSet = false;
322 bool m_statusHasBeenSet = false;
323 bool m_createdAtHasBeenSet = false;
324 bool m_lastModifiedAtHasBeenSet = false;
325 bool m_tagsHasBeenSet = false;
326 bool m_statusReasonHasBeenSet = false;
327 bool m_sourceHasBeenSet = false;
328 bool m_destinationHasBeenSet = false;
329 bool m_roleConfigurationHasBeenSet = false;
330 bool m_exportersHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace PrometheusService
335} // namespace Aws
ScraperSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
ScraperSummary & WithRoleConfiguration(RoleConfigurationT &&value)
void SetRoleConfiguration(RoleConfigurationT &&value)
ScraperSummary & WithStatus(StatusT &&value)
ScraperSummary & WithDestination(DestinationT &&value)
const RoleConfiguration & GetRoleConfiguration() const
ScraperSummary & WithLastModifiedAt(LastModifiedAtT &&value)
ScraperSummary & WithExporters(ExportersT &&value)
AWS_PROMETHEUSSERVICE_API ScraperSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API ScraperSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ScraperSummary & WithScraperId(ScraperIdT &&value)
const Aws::Vector< ExporterConfiguration > & GetExporters() const
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
ScraperSummary & WithTags(TagsT &&value)
ScraperSummary & WithArn(ArnT &&value)
void SetLastModifiedAt(LastModifiedAtT &&value)
ScraperSummary & WithCreatedAt(CreatedAtT &&value)
ScraperSummary & WithRoleArn(RoleArnT &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ScraperSummary & WithAlias(AliasT &&value)
AWS_PROMETHEUSSERVICE_API ScraperSummary()=default
ScraperSummary & WithSource(SourceT &&value)
ScraperSummary & AddExporters(ExportersT &&value)
ScraperSummary & WithStatusReason(StatusReasonT &&value)
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