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/Source.h>
13#include <aws/amp/model/ScraperStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
27namespace PrometheusService
53 template<
typename AliasT = Aws::String>
54 void SetAlias(AliasT&& value) { m_aliasHasBeenSet =
true; m_alias = std::forward<AliasT>(value); }
55 template<
typename AliasT = Aws::String>
65 template<
typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
67 template<
typename ArnT = Aws::String>
77 template<
typename CreatedAtT = Aws::Utils::DateTime>
78 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
79 template<
typename CreatedAtT = Aws::Utils::DateTime>
90 template<
typename DestinationT = Destination>
91 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet =
true; m_destination = std::forward<DestinationT>(value); }
92 template<
typename DestinationT = Destination>
102 template<
typename LastModifiedAtT = Aws::Utils::DateTime>
103 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet =
true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
104 template<
typename LastModifiedAtT = Aws::Utils::DateTime>
115 template<
typename RoleArnT = Aws::String>
116 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
117 template<
typename RoleArnT = Aws::String>
128 template<
typename RoleConfigurationT = RoleConfiguration>
129 void SetRoleConfiguration(RoleConfigurationT&& value) { m_roleConfigurationHasBeenSet =
true; m_roleConfiguration = std::forward<RoleConfigurationT>(value); }
130 template<
typename RoleConfigurationT = RoleConfiguration>
140 template<
typename ScraperIdT = Aws::String>
141 void SetScraperId(ScraperIdT&& value) { m_scraperIdHasBeenSet =
true; m_scraperId = std::forward<ScraperIdT>(value); }
142 template<
typename ScraperIdT = Aws::String>
152 template<
typename SourceT = Source>
153 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
154 template<
typename SourceT = Source>
164 template<
typename StatusT = ScraperStatus>
165 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
166 template<
typename StatusT = ScraperStatus>
176 template<
typename StatusReasonT = Aws::String>
177 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet =
true; m_statusReason = std::forward<StatusReasonT>(value); }
178 template<
typename StatusReasonT = Aws::String>
188 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
190 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
192 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
194 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
200 bool m_aliasHasBeenSet =
false;
203 bool m_arnHasBeenSet =
false;
206 bool m_createdAtHasBeenSet =
false;
208 Destination m_destination;
209 bool m_destinationHasBeenSet =
false;
212 bool m_lastModifiedAtHasBeenSet =
false;
215 bool m_roleArnHasBeenSet =
false;
217 RoleConfiguration m_roleConfiguration;
218 bool m_roleConfigurationHasBeenSet =
false;
221 bool m_scraperIdHasBeenSet =
false;
224 bool m_sourceHasBeenSet =
false;
226 ScraperStatus m_status;
227 bool m_statusHasBeenSet =
false;
230 bool m_statusReasonHasBeenSet =
false;
233 bool m_tagsHasBeenSet =
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