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>
27namespace PrometheusService
55 inline void SetAlias(
const char* value) { m_aliasHasBeenSet =
true; m_alias.assign(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); }
123 inline void SetRoleArn(
const char* value) { m_roleArnHasBeenSet =
true; m_roleArn.assign(value); }
150 inline void SetScraperId(
const char* value) { m_scraperIdHasBeenSet =
true; m_scraperId.assign(value); }
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); }
188 inline void SetStatusReason(
const char* value) { m_statusReasonHasBeenSet =
true; m_statusReason.assign(value); }
210 inline ScraperDescription&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
215 bool m_aliasHasBeenSet =
false;
218 bool m_arnHasBeenSet =
false;
221 bool m_createdAtHasBeenSet =
false;
224 bool m_destinationHasBeenSet =
false;
227 bool m_lastModifiedAtHasBeenSet =
false;
230 bool m_roleArnHasBeenSet =
false;
233 bool m_scrapeConfigurationHasBeenSet =
false;
236 bool m_scraperIdHasBeenSet =
false;
239 bool m_sourceHasBeenSet =
false;
242 bool m_statusHasBeenSet =
false;
245 bool m_statusReasonHasBeenSet =
false;
248 bool m_tagsHasBeenSet =
false;
void SetLastModifiedAt(Aws::Utils::DateTime &&value)
bool StatusReasonHasBeenSet() const
bool SourceHasBeenSet() const
const Aws::String & GetStatusReason() const
ScraperDescription & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AWS_PROMETHEUSSERVICE_API ScraperDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RoleArnHasBeenSet() const
const Aws::String & GetArn() const
ScraperDescription & WithRoleArn(const char *value)
bool CreatedAtHasBeenSet() const
ScraperDescription & WithScraperId(const Aws::String &value)
ScraperDescription & WithScraperId(const char *value)
const Source & GetSource() const
AWS_PROMETHEUSSERVICE_API ScraperDescription()
ScraperDescription & WithRoleArn(Aws::String &&value)
void SetDestination(const Destination &value)
void SetAlias(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
void SetArn(const Aws::String &value)
ScraperDescription & WithScrapeConfiguration(ScrapeConfiguration &&value)
void SetScraperId(const Aws::String &value)
ScraperDescription & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ScraperDescription & WithAlias(const Aws::String &value)
void SetStatus(ScraperStatus &&value)
const Aws::String & GetScraperId() const
ScraperDescription & WithLastModifiedAt(const Aws::Utils::DateTime &value)
ScraperDescription & WithAlias(const char *value)
ScraperDescription & WithArn(const Aws::String &value)
bool StatusHasBeenSet() const
void SetSource(Source &&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
void SetAlias(const char *value)
ScraperDescription & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::String & GetRoleArn() const
bool ScrapeConfigurationHasBeenSet() const
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)
bool LastModifiedAtHasBeenSet() const
void SetArn(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetRoleArn(const Aws::String &value)
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)
void SetArn(Aws::String &&value)
ScraperDescription & WithStatus(const ScraperStatus &value)
ScraperDescription & WithStatusReason(const char *value)
bool ArnHasBeenSet() const
bool DestinationHasBeenSet() const
const Destination & GetDestination() const
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 SetAlias(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const ScraperStatus & GetStatus() const
bool AliasHasBeenSet() const
void SetScraperId(Aws::String &&value)
void SetStatusReason(const Aws::String &value)
ScraperDescription & WithStatus(ScraperStatus &&value)
void SetScraperId(const char *value)
ScraperDescription & WithSource(Source &&value)
bool ScraperIdHasBeenSet() const
void SetStatusReason(const char *value)
bool TagsHasBeenSet() const
const Aws::String & GetAlias() const
void SetRoleArn(Aws::String &&value)
void SetStatusReason(Aws::String &&value)
void SetStatus(const ScraperStatus &value)
ScraperDescription & WithDestination(const Destination &value)
void SetSource(const Source &value)
ScraperDescription & WithDestination(Destination &&value)
void SetDestination(Destination &&value)
void SetRoleArn(const char *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