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>
28namespace PrometheusService {
50 template <
typename AliasT = Aws::String>
52 m_aliasHasBeenSet =
true;
53 m_alias = std::forward<AliasT>(value);
55 template <
typename AliasT = Aws::String>
57 SetAlias(std::forward<AliasT>(value));
69 template <
typename ScraperIdT = Aws::String>
71 m_scraperIdHasBeenSet =
true;
72 m_scraperId = std::forward<ScraperIdT>(value);
74 template <
typename ScraperIdT = Aws::String>
88 template <
typename ArnT = Aws::String>
90 m_arnHasBeenSet =
true;
91 m_arn = std::forward<ArnT>(value);
93 template <
typename ArnT = Aws::String>
95 SetArn(std::forward<ArnT>(value));
108 template <
typename RoleArnT = Aws::String>
110 m_roleArnHasBeenSet =
true;
111 m_roleArn = std::forward<RoleArnT>(value);
113 template <
typename RoleArnT = Aws::String>
126 template <
typename StatusT = ScraperStatus>
128 m_statusHasBeenSet =
true;
129 m_status = std::forward<StatusT>(value);
131 template <
typename StatusT = ScraperStatus>
144 template <
typename CreatedAtT = Aws::Utils::DateTime>
146 m_createdAtHasBeenSet =
true;
147 m_createdAt = std::forward<CreatedAtT>(value);
149 template <
typename CreatedAtT = Aws::Utils::DateTime>
162 template <
typename LastModifiedAtT = Aws::Utils::DateTime>
164 m_lastModifiedAtHasBeenSet =
true;
165 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
167 template <
typename LastModifiedAtT = Aws::Utils::DateTime>
180 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 m_tagsHasBeenSet =
true;
183 m_tags = std::forward<TagsT>(value);
185 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 SetTags(std::forward<TagsT>(value));
190 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
192 m_tagsHasBeenSet =
true;
193 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
204 template <
typename StatusReasonT = Aws::String>
206 m_statusReasonHasBeenSet =
true;
207 m_statusReason = std::forward<StatusReasonT>(value);
209 template <
typename StatusReasonT = Aws::String>
222 template <
typename ScrapeConfigurationT = ScrapeConfiguration>
224 m_scrapeConfigurationHasBeenSet =
true;
225 m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value);
227 template <
typename ScrapeConfigurationT = ScrapeConfiguration>
240 template <
typename SourceT = Source>
242 m_sourceHasBeenSet =
true;
243 m_source = std::forward<SourceT>(value);
245 template <
typename SourceT = Source>
259 template <
typename DestinationT = Destination>
261 m_destinationHasBeenSet =
true;
262 m_destination = std::forward<DestinationT>(value);
264 template <
typename DestinationT = Destination>
278 template <
typename RoleConfigurationT = RoleConfiguration>
280 m_roleConfigurationHasBeenSet =
true;
281 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
283 template <
typename RoleConfigurationT = RoleConfiguration>
297 template <
typename ExportersT = Aws::Vector<ExporterConfiguration>>
299 m_exportersHasBeenSet =
true;
300 m_exporters = std::forward<ExportersT>(value);
302 template <
typename ExportersT = Aws::Vector<ExporterConfiguration>>
307 template <
typename ExportersT = ExporterConfiguration>
309 m_exportersHasBeenSet =
true;
310 m_exporters.emplace_back(std::forward<ExportersT>(value));
333 ScrapeConfiguration m_scrapeConfiguration;
337 Destination m_destination;
339 RoleConfiguration m_roleConfiguration;
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;
ScraperDescription & WithTags(TagsT &&value)
bool StatusReasonHasBeenSet() const
bool SourceHasBeenSet() const
const Aws::String & GetStatusReason() const
void SetArn(ArnT &&value)
AWS_PROMETHEUSSERVICE_API ScraperDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ScraperDescription & WithStatus(StatusT &&value)
bool ExportersHasBeenSet() const
bool RoleArnHasBeenSet() const
const Aws::String & GetArn() const
bool CreatedAtHasBeenSet() const
void SetAlias(AliasT &&value)
const Source & GetSource() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ScraperDescription & WithSource(SourceT &&value)
const ScrapeConfiguration & GetScrapeConfiguration() const
void SetRoleArn(RoleArnT &&value)
ScraperDescription & WithArn(ArnT &&value)
ScraperDescription & WithAlias(AliasT &&value)
void SetTags(TagsT &&value)
void SetRoleConfiguration(RoleConfigurationT &&value)
void SetStatus(StatusT &&value)
const Aws::String & GetScraperId() const
ScraperDescription & WithCreatedAt(CreatedAtT &&value)
bool StatusHasBeenSet() const
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)
const Aws::String & GetRoleArn() const
bool ScrapeConfigurationHasBeenSet() const
bool RoleConfigurationHasBeenSet() const
void SetScrapeConfiguration(ScrapeConfigurationT &&value)
bool LastModifiedAtHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastModifiedAt(LastModifiedAtT &&value)
AWS_PROMETHEUSSERVICE_API ScraperDescription()=default
ScraperDescription & WithLastModifiedAt(LastModifiedAtT &&value)
void SetStatusReason(StatusReasonT &&value)
void SetScraperId(ScraperIdT &&value)
bool ArnHasBeenSet() const
bool DestinationHasBeenSet() const
const Destination & GetDestination() const
void SetDestination(DestinationT &&value)
ScraperDescription & AddExporters(ExportersT &&value)
const ScraperStatus & GetStatus() const
bool AliasHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
bool ScraperIdHasBeenSet() const
void SetSource(SourceT &&value)
ScraperDescription & WithRoleArn(RoleArnT &&value)
ScraperDescription & WithExporters(ExportersT &&value)
bool TagsHasBeenSet() const
const Aws::String & GetAlias() const
ScraperDescription & WithDestination(DestinationT &&value)
void SetExporters(ExportersT &&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