AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/RoleConfiguration.h>
10#include <aws/amp/model/ScraperStatus.h>
11#include <aws/amp/model/Source.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace PrometheusService {
26namespace Model {
27
35 public:
36 AWS_PROMETHEUSSERVICE_API ScraperSummary() = default;
37 AWS_PROMETHEUSSERVICE_API ScraperSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROMETHEUSSERVICE_API ScraperSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetAlias() const { return m_alias; }
46 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
47 template <typename AliasT = Aws::String>
48 void SetAlias(AliasT&& value) {
49 m_aliasHasBeenSet = true;
50 m_alias = std::forward<AliasT>(value);
51 }
52 template <typename AliasT = Aws::String>
53 ScraperSummary& WithAlias(AliasT&& value) {
54 SetAlias(std::forward<AliasT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetScraperId() const { return m_scraperId; }
64 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
65 template <typename ScraperIdT = Aws::String>
66 void SetScraperId(ScraperIdT&& value) {
67 m_scraperIdHasBeenSet = true;
68 m_scraperId = std::forward<ScraperIdT>(value);
69 }
70 template <typename ScraperIdT = Aws::String>
71 ScraperSummary& WithScraperId(ScraperIdT&& value) {
72 SetScraperId(std::forward<ScraperIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetArn() const { return m_arn; }
82 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
83 template <typename ArnT = Aws::String>
84 void SetArn(ArnT&& value) {
85 m_arnHasBeenSet = true;
86 m_arn = std::forward<ArnT>(value);
87 }
88 template <typename ArnT = Aws::String>
89 ScraperSummary& WithArn(ArnT&& value) {
90 SetArn(std::forward<ArnT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
101 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
102 template <typename RoleArnT = Aws::String>
103 void SetRoleArn(RoleArnT&& value) {
104 m_roleArnHasBeenSet = true;
105 m_roleArn = std::forward<RoleArnT>(value);
106 }
107 template <typename RoleArnT = Aws::String>
108 ScraperSummary& WithRoleArn(RoleArnT&& value) {
109 SetRoleArn(std::forward<RoleArnT>(value));
110 return *this;
111 }
113
115
118 inline const ScraperStatus& GetStatus() const { return m_status; }
119 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 template <typename StatusT = ScraperStatus>
121 void SetStatus(StatusT&& value) {
122 m_statusHasBeenSet = true;
123 m_status = std::forward<StatusT>(value);
124 }
125 template <typename StatusT = ScraperStatus>
126 ScraperSummary& WithStatus(StatusT&& value) {
127 SetStatus(std::forward<StatusT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
137 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
138 template <typename CreatedAtT = Aws::Utils::DateTime>
139 void SetCreatedAt(CreatedAtT&& value) {
140 m_createdAtHasBeenSet = true;
141 m_createdAt = std::forward<CreatedAtT>(value);
142 }
143 template <typename CreatedAtT = Aws::Utils::DateTime>
144 ScraperSummary& WithCreatedAt(CreatedAtT&& value) {
145 SetCreatedAt(std::forward<CreatedAtT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
155 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
156 template <typename LastModifiedAtT = Aws::Utils::DateTime>
157 void SetLastModifiedAt(LastModifiedAtT&& value) {
158 m_lastModifiedAtHasBeenSet = true;
159 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
160 }
161 template <typename LastModifiedAtT = Aws::Utils::DateTime>
162 ScraperSummary& WithLastModifiedAt(LastModifiedAtT&& value) {
163 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags = std::forward<TagsT>(value);
178 }
179 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
180 ScraperSummary& WithTags(TagsT&& value) {
181 SetTags(std::forward<TagsT>(value));
182 return *this;
183 }
184 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
185 ScraperSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
197 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
198 template <typename StatusReasonT = Aws::String>
199 void SetStatusReason(StatusReasonT&& value) {
200 m_statusReasonHasBeenSet = true;
201 m_statusReason = std::forward<StatusReasonT>(value);
202 }
203 template <typename StatusReasonT = Aws::String>
204 ScraperSummary& WithStatusReason(StatusReasonT&& value) {
205 SetStatusReason(std::forward<StatusReasonT>(value));
206 return *this;
207 }
209
211
214 inline const Source& GetSource() const { return m_source; }
215 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
216 template <typename SourceT = Source>
217 void SetSource(SourceT&& value) {
218 m_sourceHasBeenSet = true;
219 m_source = std::forward<SourceT>(value);
220 }
221 template <typename SourceT = Source>
222 ScraperSummary& WithSource(SourceT&& value) {
223 SetSource(std::forward<SourceT>(value));
224 return *this;
225 }
227
229
233 inline const Destination& GetDestination() const { return m_destination; }
234 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
235 template <typename DestinationT = Destination>
236 void SetDestination(DestinationT&& value) {
237 m_destinationHasBeenSet = true;
238 m_destination = std::forward<DestinationT>(value);
239 }
240 template <typename DestinationT = Destination>
241 ScraperSummary& WithDestination(DestinationT&& value) {
242 SetDestination(std::forward<DestinationT>(value));
243 return *this;
244 }
246
248
252 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
253 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
254 template <typename RoleConfigurationT = RoleConfiguration>
255 void SetRoleConfiguration(RoleConfigurationT&& value) {
256 m_roleConfigurationHasBeenSet = true;
257 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
258 }
259 template <typename RoleConfigurationT = RoleConfiguration>
260 ScraperSummary& WithRoleConfiguration(RoleConfigurationT&& value) {
261 SetRoleConfiguration(std::forward<RoleConfigurationT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_alias;
267
268 Aws::String m_scraperId;
269
270 Aws::String m_arn;
271
272 Aws::String m_roleArn;
273
274 ScraperStatus m_status;
275
276 Aws::Utils::DateTime m_createdAt{};
277
278 Aws::Utils::DateTime m_lastModifiedAt{};
279
281
282 Aws::String m_statusReason;
283
284 Source m_source;
285
286 Destination m_destination;
287
288 RoleConfiguration m_roleConfiguration;
289 bool m_aliasHasBeenSet = false;
290 bool m_scraperIdHasBeenSet = false;
291 bool m_arnHasBeenSet = false;
292 bool m_roleArnHasBeenSet = false;
293 bool m_statusHasBeenSet = false;
294 bool m_createdAtHasBeenSet = false;
295 bool m_lastModifiedAtHasBeenSet = false;
296 bool m_tagsHasBeenSet = false;
297 bool m_statusReasonHasBeenSet = false;
298 bool m_sourceHasBeenSet = false;
299 bool m_destinationHasBeenSet = false;
300 bool m_roleConfigurationHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace PrometheusService
305} // 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)
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)
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 & 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
Aws::Utils::Json::JsonValue JsonValue