AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScraperSummary.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/amp/model/Destination.h>
11#include <aws/amp/model/Source.h>
12#include <aws/amp/model/ScraperStatus.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace PrometheusService
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_PROMETHEUSSERVICE_API ScraperSummary();
41 AWS_PROMETHEUSSERVICE_API ScraperSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PROMETHEUSSERVICE_API ScraperSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAlias() const{ return m_alias; }
51 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
52 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
53 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
54 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
55 inline ScraperSummary& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
56 inline ScraperSummary& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
57 inline ScraperSummary& WithAlias(const char* value) { SetAlias(value); return *this;}
59
61
64 inline const Aws::String& GetArn() const{ return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
67 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
68 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 inline ScraperSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 inline ScraperSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
71 inline ScraperSummary& WithArn(const char* value) { SetArn(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
79 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
80 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
81 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
82 inline ScraperSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
83 inline ScraperSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
85
87
91 inline const Destination& GetDestination() const{ return m_destination; }
92 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
93 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
94 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
95 inline ScraperSummary& WithDestination(const Destination& value) { SetDestination(value); return *this;}
96 inline ScraperSummary& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; }
104 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
105 inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = value; }
106 inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::move(value); }
107 inline ScraperSummary& WithLastModifiedAt(const Aws::Utils::DateTime& value) { SetLastModifiedAt(value); return *this;}
108 inline ScraperSummary& WithLastModifiedAt(Aws::Utils::DateTime&& value) { SetLastModifiedAt(std::move(value)); return *this;}
110
112
116 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
117 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
118 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
119 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
120 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
121 inline ScraperSummary& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
122 inline ScraperSummary& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
123 inline ScraperSummary& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
125
127
130 inline const Aws::String& GetScraperId() const{ return m_scraperId; }
131 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
132 inline void SetScraperId(const Aws::String& value) { m_scraperIdHasBeenSet = true; m_scraperId = value; }
133 inline void SetScraperId(Aws::String&& value) { m_scraperIdHasBeenSet = true; m_scraperId = std::move(value); }
134 inline void SetScraperId(const char* value) { m_scraperIdHasBeenSet = true; m_scraperId.assign(value); }
135 inline ScraperSummary& WithScraperId(const Aws::String& value) { SetScraperId(value); return *this;}
136 inline ScraperSummary& WithScraperId(Aws::String&& value) { SetScraperId(std::move(value)); return *this;}
137 inline ScraperSummary& WithScraperId(const char* value) { SetScraperId(value); return *this;}
139
141
144 inline const Source& GetSource() const{ return m_source; }
145 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
146 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
147 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
148 inline ScraperSummary& WithSource(const Source& value) { SetSource(value); return *this;}
149 inline ScraperSummary& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
151
153
156 inline const ScraperStatus& GetStatus() const{ return m_status; }
157 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
158 inline void SetStatus(const ScraperStatus& value) { m_statusHasBeenSet = true; m_status = value; }
159 inline void SetStatus(ScraperStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
160 inline ScraperSummary& WithStatus(const ScraperStatus& value) { SetStatus(value); return *this;}
161 inline ScraperSummary& WithStatus(ScraperStatus&& value) { SetStatus(std::move(value)); return *this;}
163
165
168 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
169 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
170 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
171 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
172 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
173 inline ScraperSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
174 inline ScraperSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
175 inline ScraperSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
177
179
182 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
185 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
186 inline ScraperSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
187 inline ScraperSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
188 inline ScraperSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
189 inline ScraperSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
190 inline ScraperSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
191 inline ScraperSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
192 inline ScraperSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
193 inline ScraperSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
194 inline ScraperSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
196 private:
197
198 Aws::String m_alias;
199 bool m_aliasHasBeenSet = false;
200
201 Aws::String m_arn;
202 bool m_arnHasBeenSet = false;
203
204 Aws::Utils::DateTime m_createdAt;
205 bool m_createdAtHasBeenSet = false;
206
207 Destination m_destination;
208 bool m_destinationHasBeenSet = false;
209
210 Aws::Utils::DateTime m_lastModifiedAt;
211 bool m_lastModifiedAtHasBeenSet = false;
212
213 Aws::String m_roleArn;
214 bool m_roleArnHasBeenSet = false;
215
216 Aws::String m_scraperId;
217 bool m_scraperIdHasBeenSet = false;
218
219 Source m_source;
220 bool m_sourceHasBeenSet = false;
221
222 ScraperStatus m_status;
223 bool m_statusHasBeenSet = false;
224
225 Aws::String m_statusReason;
226 bool m_statusReasonHasBeenSet = false;
227
229 bool m_tagsHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace PrometheusService
234} // namespace Aws
ScraperSummary & WithRoleArn(const char *value)
void SetDestination(const Destination &value)
void SetRoleArn(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetStatusReason(const Aws::String &value)
ScraperSummary & WithStatusReason(Aws::String &&value)
ScraperSummary & WithDestination(const Destination &value)
ScraperSummary & AddTags(const char *key, Aws::String &&value)
void SetArn(const Aws::String &value)
AWS_PROMETHEUSSERVICE_API ScraperSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API ScraperSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ScraperSummary & WithLastModifiedAt(const Aws::Utils::DateTime &value)
ScraperSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
ScraperSummary & WithArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ScraperSummary & WithScraperId(const char *value)
ScraperSummary & WithStatus(const ScraperStatus &value)
ScraperSummary & WithScraperId(Aws::String &&value)
ScraperSummary & AddTags(const char *key, const char *value)
ScraperSummary & AddTags(const Aws::String &key, Aws::String &&value)
ScraperSummary & AddTags(Aws::String &&key, const char *value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ScraperSummary & AddTags(const Aws::String &key, const Aws::String &value)
ScraperSummary & WithDestination(Destination &&value)
AWS_PROMETHEUSSERVICE_API ScraperSummary()
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ScraperSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ScraperSummary & WithScraperId(const Aws::String &value)
ScraperSummary & WithSource(Source &&value)
ScraperSummary & WithRoleArn(const Aws::String &value)
ScraperSummary & WithAlias(const Aws::String &value)
ScraperSummary & WithAlias(const char *value)
void SetLastModifiedAt(Aws::Utils::DateTime &&value)
ScraperSummary & WithRoleArn(Aws::String &&value)
ScraperSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
ScraperSummary & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
void SetLastModifiedAt(const Aws::Utils::DateTime &value)
ScraperSummary & WithStatus(ScraperStatus &&value)
ScraperSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetScraperId(const Aws::String &value)
ScraperSummary & WithSource(const Source &value)
ScraperSummary & WithStatusReason(const Aws::String &value)
ScraperSummary & WithArn(Aws::String &&value)
ScraperSummary & WithAlias(Aws::String &&value)
ScraperSummary & WithArn(const Aws::String &value)
ScraperSummary & WithLastModifiedAt(Aws::Utils::DateTime &&value)
ScraperSummary & AddTags(Aws::String &&key, const Aws::String &value)
void SetAlias(const Aws::String &value)
void SetStatus(const ScraperStatus &value)
ScraperSummary & WithStatusReason(const char *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