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/ExporterConfiguration.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/UUID.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace PrometheusService {
50 template <
typename AliasT = Aws::String>
52 m_aliasHasBeenSet =
true;
53 m_alias = std::forward<AliasT>(value);
55 template <
typename AliasT = Aws::String>
57 SetAlias(std::forward<AliasT>(value));
72 template <
typename ScrapeConfigurationT = ScrapeConfiguration>
74 m_scrapeConfigurationHasBeenSet =
true;
75 m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value);
77 template <
typename ScrapeConfigurationT = ScrapeConfiguration>
91 template <
typename SourceT = Source>
93 m_sourceHasBeenSet =
true;
94 m_source = std::forward<SourceT>(value);
96 template <
typename SourceT = Source>
111 template <
typename DestinationT = Destination>
113 m_destinationHasBeenSet =
true;
114 m_destination = std::forward<DestinationT>(value);
116 template <
typename DestinationT = Destination>
130 template <
typename RoleConfigurationT = RoleConfiguration>
132 m_roleConfigurationHasBeenSet =
true;
133 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
135 template <
typename RoleConfigurationT = RoleConfiguration>
149 template <
typename ClientTokenT = Aws::String>
151 m_clientTokenHasBeenSet =
true;
152 m_clientToken = std::forward<ClientTokenT>(value);
154 template <
typename ClientTokenT = Aws::String>
167 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 m_tagsHasBeenSet =
true;
170 m_tags = std::forward<TagsT>(value);
172 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
177 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
179 m_tagsHasBeenSet =
true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
193 template <
typename ExportersT = Aws::Vector<ExporterConfiguration>>
195 m_exportersHasBeenSet =
true;
196 m_exporters = std::forward<ExportersT>(value);
198 template <
typename ExportersT = Aws::Vector<ExporterConfiguration>>
203 template <
typename ExportersT = ExporterConfiguration>
205 m_exportersHasBeenSet =
true;
206 m_exporters.emplace_back(std::forward<ExportersT>(value));
226 bool m_aliasHasBeenSet =
false;
227 bool m_scrapeConfigurationHasBeenSet =
false;
228 bool m_sourceHasBeenSet =
false;
229 bool m_destinationHasBeenSet =
false;
230 bool m_roleConfigurationHasBeenSet =
false;
231 bool m_clientTokenHasBeenSet =
true;
232 bool m_tagsHasBeenSet =
false;
233 bool m_exportersHasBeenSet =
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
const Aws::Vector< ExporterConfiguration > & GetExporters() 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
CreateScraperRequest & AddExporters(ExportersT &&value)
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 & WithExporters(ExportersT &&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 SetExporters(ExportersT &&value)
bool ExportersHasBeenSet() const
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
std::vector< T, Aws::Allocator< T > > Vector