AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScraperDescription.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/ScrapeConfiguration.h>
12#include <aws/amp/model/Source.h>
13#include <aws/amp/model/ScraperStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace PrometheusService
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_PROMETHEUSSERVICE_API ScraperDescription();
42 AWS_PROMETHEUSSERVICE_API ScraperDescription(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PROMETHEUSSERVICE_API ScraperDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetAlias() const{ return m_alias; }
52 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
53 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
54 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
55 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
56 inline ScraperDescription& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
57 inline ScraperDescription& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
58 inline ScraperDescription& WithAlias(const char* value) { SetAlias(value); return *this;}
60
62
66 inline const Aws::String& GetArn() const{ return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
69 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
70 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
71 inline ScraperDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 inline ScraperDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 inline ScraperDescription& WithArn(const char* value) { SetArn(value); return *this;}
75
77
80 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
81 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
82 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
83 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
84 inline ScraperDescription& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
85 inline ScraperDescription& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
87
89
93 inline const Destination& GetDestination() const{ return m_destination; }
94 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
95 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
96 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
97 inline ScraperDescription& WithDestination(const Destination& value) { SetDestination(value); return *this;}
98 inline ScraperDescription& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; }
106 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
107 inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = value; }
108 inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::move(value); }
110 inline ScraperDescription& WithLastModifiedAt(Aws::Utils::DateTime&& value) { SetLastModifiedAt(std::move(value)); return *this;}
112
114
119 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
120 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
121 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
122 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
123 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
124 inline ScraperDescription& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
125 inline ScraperDescription& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
126 inline ScraperDescription& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
128
130
133 inline const ScrapeConfiguration& GetScrapeConfiguration() const{ return m_scrapeConfiguration; }
134 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
135 inline void SetScrapeConfiguration(const ScrapeConfiguration& value) { m_scrapeConfigurationHasBeenSet = true; m_scrapeConfiguration = value; }
136 inline void SetScrapeConfiguration(ScrapeConfiguration&& value) { m_scrapeConfigurationHasBeenSet = true; m_scrapeConfiguration = std::move(value); }
140
142
146 inline const Aws::String& GetScraperId() const{ return m_scraperId; }
147 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
148 inline void SetScraperId(const Aws::String& value) { m_scraperIdHasBeenSet = true; m_scraperId = value; }
149 inline void SetScraperId(Aws::String&& value) { m_scraperIdHasBeenSet = true; m_scraperId = std::move(value); }
150 inline void SetScraperId(const char* value) { m_scraperIdHasBeenSet = true; m_scraperId.assign(value); }
151 inline ScraperDescription& WithScraperId(const Aws::String& value) { SetScraperId(value); return *this;}
152 inline ScraperDescription& WithScraperId(Aws::String&& value) { SetScraperId(std::move(value)); return *this;}
153 inline ScraperDescription& WithScraperId(const char* value) { SetScraperId(value); return *this;}
155
157
160 inline const Source& GetSource() const{ return m_source; }
161 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
162 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
163 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
164 inline ScraperDescription& WithSource(const Source& value) { SetSource(value); return *this;}
165 inline ScraperDescription& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
167
169
172 inline const ScraperStatus& GetStatus() const{ return m_status; }
173 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
174 inline void SetStatus(const ScraperStatus& value) { m_statusHasBeenSet = true; m_status = value; }
175 inline void SetStatus(ScraperStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
176 inline ScraperDescription& WithStatus(const ScraperStatus& value) { SetStatus(value); return *this;}
177 inline ScraperDescription& WithStatus(ScraperStatus&& value) { SetStatus(std::move(value)); return *this;}
179
181
184 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
185 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
186 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
187 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
188 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
189 inline ScraperDescription& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
190 inline ScraperDescription& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
191 inline ScraperDescription& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
193
195
198 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
199 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
200 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
201 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
202 inline ScraperDescription& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
203 inline ScraperDescription& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
204 inline ScraperDescription& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
205 inline ScraperDescription& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
206 inline ScraperDescription& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
207 inline ScraperDescription& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
208 inline ScraperDescription& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
209 inline ScraperDescription& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
210 inline ScraperDescription& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
212 private:
213
214 Aws::String m_alias;
215 bool m_aliasHasBeenSet = false;
216
217 Aws::String m_arn;
218 bool m_arnHasBeenSet = false;
219
220 Aws::Utils::DateTime m_createdAt;
221 bool m_createdAtHasBeenSet = false;
222
223 Destination m_destination;
224 bool m_destinationHasBeenSet = false;
225
226 Aws::Utils::DateTime m_lastModifiedAt;
227 bool m_lastModifiedAtHasBeenSet = false;
228
229 Aws::String m_roleArn;
230 bool m_roleArnHasBeenSet = false;
231
232 ScrapeConfiguration m_scrapeConfiguration;
233 bool m_scrapeConfigurationHasBeenSet = false;
234
235 Aws::String m_scraperId;
236 bool m_scraperIdHasBeenSet = false;
237
238 Source m_source;
239 bool m_sourceHasBeenSet = false;
240
241 ScraperStatus m_status;
242 bool m_statusHasBeenSet = false;
243
244 Aws::String m_statusReason;
245 bool m_statusReasonHasBeenSet = false;
246
248 bool m_tagsHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace PrometheusService
253} // namespace Aws
void SetLastModifiedAt(Aws::Utils::DateTime &&value)
ScraperDescription & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AWS_PROMETHEUSSERVICE_API ScraperDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ScraperDescription & WithRoleArn(const char *value)
ScraperDescription & WithScraperId(const Aws::String &value)
ScraperDescription & WithScraperId(const char *value)
AWS_PROMETHEUSSERVICE_API ScraperDescription()
ScraperDescription & WithRoleArn(Aws::String &&value)
void SetScrapeConfiguration(ScrapeConfiguration &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ScraperDescription & WithAlias(Aws::String &&value)
void SetScrapeConfiguration(const ScrapeConfiguration &value)
const ScrapeConfiguration & GetScrapeConfiguration() const
ScraperDescription & WithScrapeConfiguration(ScrapeConfiguration &&value)
ScraperDescription & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ScraperDescription & WithAlias(const Aws::String &value)
ScraperDescription & WithLastModifiedAt(const Aws::Utils::DateTime &value)
ScraperDescription & WithAlias(const char *value)
ScraperDescription & WithArn(const Aws::String &value)
ScraperDescription & WithLastModifiedAt(Aws::Utils::DateTime &&value)
ScraperDescription & WithScrapeConfiguration(const ScrapeConfiguration &value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ScraperDescription & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ScraperDescription & AddTags(const Aws::String &key, const Aws::String &value)
ScraperDescription & WithArn(Aws::String &&value)
ScraperDescription & AddTags(Aws::String &&key, Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ScraperDescription & AddTags(const char *key, Aws::String &&value)
ScraperDescription & WithScraperId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ScraperDescription & AddTags(Aws::String &&key, const char *value)
ScraperDescription & WithCreatedAt(Aws::Utils::DateTime &&value)
ScraperDescription & WithRoleArn(const Aws::String &value)
ScraperDescription & WithStatus(const ScraperStatus &value)
ScraperDescription & WithStatusReason(const char *value)
void SetLastModifiedAt(const Aws::Utils::DateTime &value)
ScraperDescription & AddTags(Aws::String &&key, const Aws::String &value)
ScraperDescription & WithArn(const char *value)
ScraperDescription & WithStatusReason(Aws::String &&value)
ScraperDescription & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ScraperDescription & WithStatus(ScraperStatus &&value)
ScraperDescription & WithSource(Source &&value)
ScraperDescription & WithDestination(const Destination &value)
ScraperDescription & WithDestination(Destination &&value)
ScraperDescription & WithSource(const Source &value)
AWS_PROMETHEUSSERVICE_API ScraperDescription(Aws::Utils::Json::JsonView jsonValue)
ScraperDescription & AddTags(const char *key, const char *value)
ScraperDescription & WithStatusReason(const Aws::String &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