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/ScraperStatus.h>
12#include <aws/amp/model/Source.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
27namespace PrometheusService {
49 template <
typename AliasT = Aws::String>
51 m_aliasHasBeenSet =
true;
52 m_alias = std::forward<AliasT>(value);
54 template <
typename AliasT = Aws::String>
56 SetAlias(std::forward<AliasT>(value));
67 template <
typename ScraperIdT = Aws::String>
69 m_scraperIdHasBeenSet =
true;
70 m_scraperId = std::forward<ScraperIdT>(value);
72 template <
typename ScraperIdT = Aws::String>
85 template <
typename ArnT = Aws::String>
87 m_arnHasBeenSet =
true;
88 m_arn = std::forward<ArnT>(value);
90 template <
typename ArnT = Aws::String>
92 SetArn(std::forward<ArnT>(value));
104 template <
typename RoleArnT = Aws::String>
106 m_roleArnHasBeenSet =
true;
107 m_roleArn = std::forward<RoleArnT>(value);
109 template <
typename RoleArnT = Aws::String>
122 template <
typename StatusT = ScraperStatus>
124 m_statusHasBeenSet =
true;
125 m_status = std::forward<StatusT>(value);
127 template <
typename StatusT = ScraperStatus>
140 template <
typename CreatedAtT = Aws::Utils::DateTime>
142 m_createdAtHasBeenSet =
true;
143 m_createdAt = std::forward<CreatedAtT>(value);
145 template <
typename CreatedAtT = Aws::Utils::DateTime>
158 template <
typename LastModifiedAtT = Aws::Utils::DateTime>
160 m_lastModifiedAtHasBeenSet =
true;
161 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
163 template <
typename LastModifiedAtT = Aws::Utils::DateTime>
176 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 m_tagsHasBeenSet =
true;
179 m_tags = std::forward<TagsT>(value);
181 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 SetTags(std::forward<TagsT>(value));
186 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
188 m_tagsHasBeenSet =
true;
189 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
200 template <
typename StatusReasonT = Aws::String>
202 m_statusReasonHasBeenSet =
true;
203 m_statusReason = std::forward<StatusReasonT>(value);
205 template <
typename StatusReasonT = Aws::String>
218 template <
typename SourceT = Source>
220 m_sourceHasBeenSet =
true;
221 m_source = std::forward<SourceT>(value);
223 template <
typename SourceT = Source>
237 template <
typename DestinationT = Destination>
239 m_destinationHasBeenSet =
true;
240 m_destination = std::forward<DestinationT>(value);
242 template <
typename DestinationT = Destination>
256 template <
typename RoleConfigurationT = RoleConfiguration>
258 m_roleConfigurationHasBeenSet =
true;
259 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
261 template <
typename RoleConfigurationT = RoleConfiguration>
275 template <
typename ExportersT = Aws::Vector<ExporterConfiguration>>
277 m_exportersHasBeenSet =
true;
278 m_exporters = std::forward<ExportersT>(value);
280 template <
typename ExportersT = Aws::Vector<ExporterConfiguration>>
285 template <
typename ExportersT = ExporterConfiguration>
287 m_exportersHasBeenSet =
true;
288 m_exporters.emplace_back(std::forward<ExportersT>(value));
313 Destination m_destination;
315 RoleConfiguration m_roleConfiguration;
318 bool m_aliasHasBeenSet =
false;
319 bool m_scraperIdHasBeenSet =
false;
320 bool m_arnHasBeenSet =
false;
321 bool m_roleArnHasBeenSet =
false;
322 bool m_statusHasBeenSet =
false;
323 bool m_createdAtHasBeenSet =
false;
324 bool m_lastModifiedAtHasBeenSet =
false;
325 bool m_tagsHasBeenSet =
false;
326 bool m_statusReasonHasBeenSet =
false;
327 bool m_sourceHasBeenSet =
false;
328 bool m_destinationHasBeenSet =
false;
329 bool m_roleConfigurationHasBeenSet =
false;
330 bool m_exportersHasBeenSet =
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)
ScraperSummary & WithExporters(ExportersT &&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 Aws::Vector< ExporterConfiguration > & GetExporters() const
const Source & GetSource() const
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExporters(ExportersT &&value)
bool ExportersHasBeenSet() 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
ScraperSummary & AddExporters(ExportersT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue