7#include <aws/amp/PrometheusServiceRequest.h>
8#include <aws/amp/PrometheusService_EXPORTS.h>
9#include <aws/amp/model/Destination.h>
10#include <aws/amp/model/RoleConfiguration.h>
11#include <aws/amp/model/ScrapeConfiguration.h>
12#include <aws/amp/model/Source.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
20namespace PrometheusService {
48 template <
typename AliasT = Aws::String>
50 m_aliasHasBeenSet =
true;
51 m_alias = std::forward<AliasT>(value);
53 template <
typename AliasT = Aws::String>
55 SetAlias(std::forward<AliasT>(value));
70 template <
typename ScrapeConfigurationT = ScrapeConfiguration>
72 m_scrapeConfigurationHasBeenSet =
true;
73 m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value);
75 template <
typename ScrapeConfigurationT = ScrapeConfiguration>
89 template <
typename SourceT = Source>
91 m_sourceHasBeenSet =
true;
92 m_source = std::forward<SourceT>(value);
94 template <
typename SourceT = Source>
107 template <
typename DestinationT = Destination>
109 m_destinationHasBeenSet =
true;
110 m_destination = std::forward<DestinationT>(value);
112 template <
typename DestinationT = Destination>
126 template <
typename RoleConfigurationT = RoleConfiguration>
128 m_roleConfigurationHasBeenSet =
true;
129 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
131 template <
typename RoleConfigurationT = RoleConfiguration>
145 template <
typename ClientTokenT = Aws::String>
147 m_clientTokenHasBeenSet =
true;
148 m_clientToken = std::forward<ClientTokenT>(value);
150 template <
typename ClientTokenT = Aws::String>
163 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 m_tagsHasBeenSet =
true;
166 m_tags = std::forward<TagsT>(value);
168 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 SetTags(std::forward<TagsT>(value));
173 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
175 m_tagsHasBeenSet =
true;
176 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
194 bool m_aliasHasBeenSet =
false;
195 bool m_scrapeConfigurationHasBeenSet =
false;
196 bool m_sourceHasBeenSet =
false;
197 bool m_destinationHasBeenSet =
false;
198 bool m_roleConfigurationHasBeenSet =
false;
199 bool m_clientTokenHasBeenSet =
true;
200 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