AWS SDK for C++

AWS SDK for C++ Version 1.11.865

Loading...
Searching...
No Matches
CreateScraperRequest.h
1
6#pragma once
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>
18
19#include <utility>
20
21namespace Aws {
22namespace PrometheusService {
23namespace Model {
24
32 public:
33 AWS_PROMETHEUSSERVICE_API CreateScraperRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateScraper"; }
40
41 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
42
44
48 inline const Aws::String& GetAlias() const { return m_alias; }
49 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
50 template <typename AliasT = Aws::String>
51 void SetAlias(AliasT&& value) {
52 m_aliasHasBeenSet = true;
53 m_alias = std::forward<AliasT>(value);
54 }
55 template <typename AliasT = Aws::String>
57 SetAlias(std::forward<AliasT>(value));
58 return *this;
59 }
61
63
70 inline const ScrapeConfiguration& GetScrapeConfiguration() const { return m_scrapeConfiguration; }
71 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
72 template <typename ScrapeConfigurationT = ScrapeConfiguration>
73 void SetScrapeConfiguration(ScrapeConfigurationT&& value) {
74 m_scrapeConfigurationHasBeenSet = true;
75 m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value);
76 }
77 template <typename ScrapeConfigurationT = ScrapeConfiguration>
78 CreateScraperRequest& WithScrapeConfiguration(ScrapeConfigurationT&& value) {
79 SetScrapeConfiguration(std::forward<ScrapeConfigurationT>(value));
80 return *this;
81 }
83
85
89 inline const Source& GetSource() const { return m_source; }
90 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
91 template <typename SourceT = Source>
92 void SetSource(SourceT&& value) {
93 m_sourceHasBeenSet = true;
94 m_source = std::forward<SourceT>(value);
95 }
96 template <typename SourceT = Source>
97 CreateScraperRequest& WithSource(SourceT&& value) {
98 SetSource(std::forward<SourceT>(value));
99 return *this;
100 }
102
104
109 inline const Destination& GetDestination() const { return m_destination; }
110 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
111 template <typename DestinationT = Destination>
112 void SetDestination(DestinationT&& value) {
113 m_destinationHasBeenSet = true;
114 m_destination = std::forward<DestinationT>(value);
115 }
116 template <typename DestinationT = Destination>
117 CreateScraperRequest& WithDestination(DestinationT&& value) {
118 SetDestination(std::forward<DestinationT>(value));
119 return *this;
120 }
122
124
128 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
129 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
130 template <typename RoleConfigurationT = RoleConfiguration>
131 void SetRoleConfiguration(RoleConfigurationT&& value) {
132 m_roleConfigurationHasBeenSet = true;
133 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
134 }
135 template <typename RoleConfigurationT = RoleConfiguration>
136 CreateScraperRequest& WithRoleConfiguration(RoleConfigurationT&& value) {
137 SetRoleConfiguration(std::forward<RoleConfigurationT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::String& GetClientToken() const { return m_clientToken; }
148 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
149 template <typename ClientTokenT = Aws::String>
150 void SetClientToken(ClientTokenT&& value) {
151 m_clientTokenHasBeenSet = true;
152 m_clientToken = std::forward<ClientTokenT>(value);
153 }
154 template <typename ClientTokenT = Aws::String>
155 CreateScraperRequest& WithClientToken(ClientTokenT&& value) {
156 SetClientToken(std::forward<ClientTokenT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 CreateScraperRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::Vector<ExporterConfiguration>& GetExporters() const { return m_exporters; }
192 inline bool ExportersHasBeenSet() const { return m_exportersHasBeenSet; }
193 template <typename ExportersT = Aws::Vector<ExporterConfiguration>>
194 void SetExporters(ExportersT&& value) {
195 m_exportersHasBeenSet = true;
196 m_exporters = std::forward<ExportersT>(value);
197 }
198 template <typename ExportersT = Aws::Vector<ExporterConfiguration>>
199 CreateScraperRequest& WithExporters(ExportersT&& value) {
200 SetExporters(std::forward<ExportersT>(value));
201 return *this;
202 }
203 template <typename ExportersT = ExporterConfiguration>
204 CreateScraperRequest& AddExporters(ExportersT&& value) {
205 m_exportersHasBeenSet = true;
206 m_exporters.emplace_back(std::forward<ExportersT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_alias;
212
213 ScrapeConfiguration m_scrapeConfiguration;
214
215 Source m_source;
216
217 Destination m_destination;
218
219 RoleConfiguration m_roleConfiguration;
220
222
224
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;
234};
235
236} // namespace Model
237} // namespace PrometheusService
238} // namespace Aws
CreateScraperRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< ExporterConfiguration > & GetExporters() const
virtual const char * GetServiceRequestName() const override
CreateScraperRequest & WithSource(SourceT &&value)
const ScrapeConfiguration & GetScrapeConfiguration() const
CreateScraperRequest & AddExporters(ExportersT &&value)
CreateScraperRequest & WithClientToken(ClientTokenT &&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 & WithRoleConfiguration(RoleConfigurationT &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
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