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/RoleConfiguration.h>
12#include <aws/amp/model/ScrapeConfiguration.h>
13#include <aws/amp/model/Source.h>
14#include <aws/amp/model/ScraperStatus.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
28namespace PrometheusService
54 template<
typename AliasT = Aws::String>
55 void SetAlias(AliasT&& value) { m_aliasHasBeenSet =
true; m_alias = std::forward<AliasT>(value); }
56 template<
typename AliasT = Aws::String>
67 template<
typename ArnT = Aws::String>
68 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
69 template<
typename ArnT = Aws::String>
79 template<
typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
81 template<
typename CreatedAtT = Aws::Utils::DateTime>
92 template<
typename DestinationT = Destination>
93 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet =
true; m_destination = std::forward<DestinationT>(value); }
94 template<
typename DestinationT = Destination>
104 template<
typename LastModifiedAtT = Aws::Utils::DateTime>
105 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet =
true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
106 template<
typename LastModifiedAtT = Aws::Utils::DateTime>
118 template<
typename RoleArnT = Aws::String>
119 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
120 template<
typename RoleArnT = Aws::String>
131 template<
typename RoleConfigurationT = RoleConfiguration>
132 void SetRoleConfiguration(RoleConfigurationT&& value) { m_roleConfigurationHasBeenSet =
true; m_roleConfiguration = std::forward<RoleConfigurationT>(value); }
133 template<
typename RoleConfigurationT = RoleConfiguration>
143 template<
typename ScrapeConfigurationT = ScrapeConfiguration>
144 void SetScrapeConfiguration(ScrapeConfigurationT&& value) { m_scrapeConfigurationHasBeenSet =
true; m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value); }
145 template<
typename ScrapeConfigurationT = ScrapeConfiguration>
156 template<
typename ScraperIdT = Aws::String>
157 void SetScraperId(ScraperIdT&& value) { m_scraperIdHasBeenSet =
true; m_scraperId = std::forward<ScraperIdT>(value); }
158 template<
typename ScraperIdT = Aws::String>
168 template<
typename SourceT = Source>
169 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
170 template<
typename SourceT = Source>
180 template<
typename StatusT = ScraperStatus>
181 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
182 template<
typename StatusT = ScraperStatus>
192 template<
typename StatusReasonT = Aws::String>
193 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet =
true; m_statusReason = std::forward<StatusReasonT>(value); }
194 template<
typename StatusReasonT = Aws::String>
204 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
206 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
208 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
210 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
216 bool m_aliasHasBeenSet =
false;
219 bool m_arnHasBeenSet =
false;
222 bool m_createdAtHasBeenSet =
false;
224 Destination m_destination;
225 bool m_destinationHasBeenSet =
false;
228 bool m_lastModifiedAtHasBeenSet =
false;
231 bool m_roleArnHasBeenSet =
false;
233 RoleConfiguration m_roleConfiguration;
234 bool m_roleConfigurationHasBeenSet =
false;
236 ScrapeConfiguration m_scrapeConfiguration;
237 bool m_scrapeConfigurationHasBeenSet =
false;
240 bool m_scraperIdHasBeenSet =
false;
243 bool m_sourceHasBeenSet =
false;
245 ScraperStatus m_status;
246 bool m_statusHasBeenSet =
false;
249 bool m_statusReasonHasBeenSet =
false;
252 bool m_tagsHasBeenSet =
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 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)
const ScraperStatus & GetStatus() const
bool AliasHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
bool ScraperIdHasBeenSet() const
void SetSource(SourceT &&value)
ScraperDescription & WithRoleArn(RoleArnT &&value)
bool TagsHasBeenSet() const
const Aws::String & GetAlias() const
ScraperDescription & WithDestination(DestinationT &&value)
ScraperDescription & WithRoleConfiguration(RoleConfigurationT &&value)
ScraperDescription & WithScrapeConfiguration(ScrapeConfigurationT &&value)
ScraperDescription & WithStatusReason(StatusReasonT &&value)
AWS_PROMETHEUSSERVICE_API ScraperDescription(Aws::Utils::Json::JsonView jsonValue)
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