7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/PrometheusServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/UUID.h>
20namespace PrometheusService
52 template<
typename AliasT = Aws::String>
53 void SetAlias(AliasT&& value) { m_aliasHasBeenSet =
true; m_alias = std::forward<AliasT>(value); }
54 template<
typename AliasT = Aws::String>
65 template<
typename ClientTokenT = Aws::String>
66 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
67 template<
typename ClientTokenT = Aws::String>
77 template<
typename DestinationT = Destination>
78 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet =
true; m_destination = std::forward<DestinationT>(value); }
79 template<
typename DestinationT = Destination>
90 template<
typename RoleConfigurationT = RoleConfiguration>
91 void SetRoleConfiguration(RoleConfigurationT&& value) { m_roleConfigurationHasBeenSet =
true; m_roleConfiguration = std::forward<RoleConfigurationT>(value); }
92 template<
typename RoleConfigurationT = RoleConfiguration>
106 template<
typename ScrapeConfigurationT = ScrapeConfiguration>
107 void SetScrapeConfiguration(ScrapeConfigurationT&& value) { m_scrapeConfigurationHasBeenSet =
true; m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value); }
108 template<
typename ScrapeConfigurationT = ScrapeConfiguration>
118 template<
typename SourceT = Source>
119 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
120 template<
typename SourceT = Source>
130 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
132 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
136 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
142 bool m_aliasHasBeenSet =
false;
145 bool m_clientTokenHasBeenSet =
true;
147 Destination m_destination;
148 bool m_destinationHasBeenSet =
false;
150 RoleConfiguration m_roleConfiguration;
151 bool m_roleConfigurationHasBeenSet =
false;
153 ScrapeConfiguration m_scrapeConfiguration;
154 bool m_scrapeConfigurationHasBeenSet =
false;
157 bool m_sourceHasBeenSet =
false;
160 bool m_tagsHasBeenSet =
false;
CreateScraperRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetDestination(DestinationT &&value)
bool TagsHasBeenSet() const
const Destination & GetDestination() const
const Aws::String & GetClientToken() const
bool SourceHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
bool AliasHasBeenSet() const
void SetAlias(AliasT &&value)
const RoleConfiguration & GetRoleConfiguration() const
bool ClientTokenHasBeenSet() const
void SetRoleConfiguration(RoleConfigurationT &&value)
CreateScraperRequest & WithSource(SourceT &&value)
const ScrapeConfiguration & GetScrapeConfiguration() const
const Aws::String & GetAlias() const
bool RoleConfigurationHasBeenSet() const
bool ScrapeConfigurationHasBeenSet() const
CreateScraperRequest & WithClientToken(ClientTokenT &&value)
void SetTags(TagsT &&value)
AWS_PROMETHEUSSERVICE_API CreateScraperRequest()=default
CreateScraperRequest & WithAlias(AliasT &&value)
CreateScraperRequest & WithDestination(DestinationT &&value)
CreateScraperRequest & WithScrapeConfiguration(ScrapeConfigurationT &&value)
void SetScrapeConfiguration(ScrapeConfigurationT &&value)
CreateScraperRequest & WithTags(TagsT &&value)
bool DestinationHasBeenSet() const
CreateScraperRequest & WithRoleConfiguration(RoleConfigurationT &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
void SetClientToken(ClientTokenT &&value)
void SetSource(SourceT &&value)
const Source & GetSource() const
static Aws::Utils::UUID PseudoRandomUUID()
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