7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/Destination.h>
9#include <aws/amp/model/RoleConfiguration.h>
10#include <aws/amp/model/ScraperStatus.h>
11#include <aws/amp/model/Source.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
25namespace PrometheusService {
47 template <
typename AliasT = Aws::String>
49 m_aliasHasBeenSet =
true;
50 m_alias = std::forward<AliasT>(value);
52 template <
typename AliasT = Aws::String>
54 SetAlias(std::forward<AliasT>(value));
65 template <
typename ScraperIdT = Aws::String>
67 m_scraperIdHasBeenSet =
true;
68 m_scraperId = std::forward<ScraperIdT>(value);
70 template <
typename ScraperIdT = Aws::String>
83 template <
typename ArnT = Aws::String>
85 m_arnHasBeenSet =
true;
86 m_arn = std::forward<ArnT>(value);
88 template <
typename ArnT = Aws::String>
90 SetArn(std::forward<ArnT>(value));
102 template <
typename RoleArnT = Aws::String>
104 m_roleArnHasBeenSet =
true;
105 m_roleArn = std::forward<RoleArnT>(value);
107 template <
typename RoleArnT = Aws::String>
120 template <
typename StatusT = ScraperStatus>
122 m_statusHasBeenSet =
true;
123 m_status = std::forward<StatusT>(value);
125 template <
typename StatusT = ScraperStatus>
138 template <
typename CreatedAtT = Aws::Utils::DateTime>
140 m_createdAtHasBeenSet =
true;
141 m_createdAt = std::forward<CreatedAtT>(value);
143 template <
typename CreatedAtT = Aws::Utils::DateTime>
156 template <
typename LastModifiedAtT = Aws::Utils::DateTime>
158 m_lastModifiedAtHasBeenSet =
true;
159 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
161 template <
typename LastModifiedAtT = Aws::Utils::DateTime>
174 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 m_tagsHasBeenSet =
true;
177 m_tags = std::forward<TagsT>(value);
179 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 SetTags(std::forward<TagsT>(value));
184 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
186 m_tagsHasBeenSet =
true;
187 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
198 template <
typename StatusReasonT = Aws::String>
200 m_statusReasonHasBeenSet =
true;
201 m_statusReason = std::forward<StatusReasonT>(value);
203 template <
typename StatusReasonT = Aws::String>
216 template <
typename SourceT = Source>
218 m_sourceHasBeenSet =
true;
219 m_source = std::forward<SourceT>(value);
221 template <
typename SourceT = Source>
235 template <
typename DestinationT = Destination>
237 m_destinationHasBeenSet =
true;
238 m_destination = std::forward<DestinationT>(value);
240 template <
typename DestinationT = Destination>
254 template <
typename RoleConfigurationT = RoleConfiguration>
256 m_roleConfigurationHasBeenSet =
true;
257 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
259 template <
typename RoleConfigurationT = RoleConfiguration>
286 Destination m_destination;
288 RoleConfiguration m_roleConfiguration;
289 bool m_aliasHasBeenSet =
false;
290 bool m_scraperIdHasBeenSet =
false;
291 bool m_arnHasBeenSet =
false;
292 bool m_roleArnHasBeenSet =
false;
293 bool m_statusHasBeenSet =
false;
294 bool m_createdAtHasBeenSet =
false;
295 bool m_lastModifiedAtHasBeenSet =
false;
296 bool m_tagsHasBeenSet =
false;
297 bool m_statusReasonHasBeenSet =
false;
298 bool m_sourceHasBeenSet =
false;
299 bool m_destinationHasBeenSet =
false;
300 bool m_roleConfigurationHasBeenSet =
false;
ScraperSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool RoleArnHasBeenSet() const
ScraperSummary & WithRoleConfiguration(RoleConfigurationT &&value)
void SetRoleConfiguration(RoleConfigurationT &&value)
void SetRoleArn(RoleArnT &&value)
bool DestinationHasBeenSet() const
bool TagsHasBeenSet() const
ScraperSummary & WithStatus(StatusT &&value)
const Aws::String & GetStatusReason() const
ScraperSummary & WithDestination(DestinationT &&value)
bool SourceHasBeenSet() const
void SetArn(ArnT &&value)
void SetDestination(DestinationT &&value)
const Aws::String & GetRoleArn() const
const RoleConfiguration & GetRoleConfiguration() const
ScraperSummary & WithLastModifiedAt(LastModifiedAtT &&value)
void SetScraperId(ScraperIdT &&value)
AWS_PROMETHEUSSERVICE_API ScraperSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API ScraperSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const ScraperStatus & GetStatus() const
void SetSource(SourceT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool LastModifiedAtHasBeenSet() const
void SetStatus(StatusT &&value)
bool AliasHasBeenSet() const
ScraperSummary & WithScraperId(ScraperIdT &&value)
const Source & GetSource() const
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool ArnHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetArn() const
ScraperSummary & WithTags(TagsT &&value)
ScraperSummary & WithArn(ArnT &&value)
void SetAlias(AliasT &&value)
bool StatusReasonHasBeenSet() const
void SetLastModifiedAt(LastModifiedAtT &&value)
ScraperSummary & WithCreatedAt(CreatedAtT &&value)
void SetTags(TagsT &&value)
ScraperSummary & WithRoleArn(RoleArnT &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ScraperSummary & WithAlias(AliasT &&value)
AWS_PROMETHEUSSERVICE_API ScraperSummary()=default
void SetStatusReason(StatusReasonT &&value)
bool CreatedAtHasBeenSet() const
const Aws::String & GetAlias() const
bool RoleConfigurationHasBeenSet() const
ScraperSummary & WithSource(SourceT &&value)
bool ScraperIdHasBeenSet() const
bool StatusHasBeenSet() const
const Aws::String & GetScraperId() const
const Destination & GetDestination() const
ScraperSummary & WithStatusReason(StatusReasonT &&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