AWS SDK for C++

AWS SDK for C++ Version 1.11.865

Loading...
Searching...
No Matches
UpdateScraperRequest.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/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace PrometheusService {
21namespace Model {
22
26 public:
27 AWS_PROMETHEUSSERVICE_API UpdateScraperRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateScraper"; }
34
35 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetScraperId() const { return m_scraperId; }
42 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
43 template <typename ScraperIdT = Aws::String>
44 void SetScraperId(ScraperIdT&& value) {
45 m_scraperIdHasBeenSet = true;
46 m_scraperId = std::forward<ScraperIdT>(value);
47 }
48 template <typename ScraperIdT = Aws::String>
49 UpdateScraperRequest& WithScraperId(ScraperIdT&& value) {
50 SetScraperId(std::forward<ScraperIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAlias() const { return m_alias; }
60 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
61 template <typename AliasT = Aws::String>
62 void SetAlias(AliasT&& value) {
63 m_aliasHasBeenSet = true;
64 m_alias = std::forward<AliasT>(value);
65 }
66 template <typename AliasT = Aws::String>
68 SetAlias(std::forward<AliasT>(value));
69 return *this;
70 }
72
74
81 inline const ScrapeConfiguration& GetScrapeConfiguration() const { return m_scrapeConfiguration; }
82 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
83 template <typename ScrapeConfigurationT = ScrapeConfiguration>
84 void SetScrapeConfiguration(ScrapeConfigurationT&& value) {
85 m_scrapeConfigurationHasBeenSet = true;
86 m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value);
87 }
88 template <typename ScrapeConfigurationT = ScrapeConfiguration>
89 UpdateScraperRequest& WithScrapeConfiguration(ScrapeConfigurationT&& value) {
90 SetScrapeConfiguration(std::forward<ScrapeConfigurationT>(value));
91 return *this;
92 }
94
96
100 inline const Destination& GetDestination() const { return m_destination; }
101 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
102 template <typename DestinationT = Destination>
103 void SetDestination(DestinationT&& value) {
104 m_destinationHasBeenSet = true;
105 m_destination = std::forward<DestinationT>(value);
106 }
107 template <typename DestinationT = Destination>
108 UpdateScraperRequest& WithDestination(DestinationT&& value) {
109 SetDestination(std::forward<DestinationT>(value));
110 return *this;
111 }
113
115
119 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
120 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
121 template <typename RoleConfigurationT = RoleConfiguration>
122 void SetRoleConfiguration(RoleConfigurationT&& value) {
123 m_roleConfigurationHasBeenSet = true;
124 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
125 }
126 template <typename RoleConfigurationT = RoleConfiguration>
127 UpdateScraperRequest& WithRoleConfiguration(RoleConfigurationT&& value) {
128 SetRoleConfiguration(std::forward<RoleConfigurationT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetClientToken() const { return m_clientToken; }
139 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
140 template <typename ClientTokenT = Aws::String>
141 void SetClientToken(ClientTokenT&& value) {
142 m_clientTokenHasBeenSet = true;
143 m_clientToken = std::forward<ClientTokenT>(value);
144 }
145 template <typename ClientTokenT = Aws::String>
146 UpdateScraperRequest& WithClientToken(ClientTokenT&& value) {
147 SetClientToken(std::forward<ClientTokenT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Vector<ExporterConfiguration>& GetExporters() const { return m_exporters; }
159 inline bool ExportersHasBeenSet() const { return m_exportersHasBeenSet; }
160 template <typename ExportersT = Aws::Vector<ExporterConfiguration>>
161 void SetExporters(ExportersT&& value) {
162 m_exportersHasBeenSet = true;
163 m_exporters = std::forward<ExportersT>(value);
164 }
165 template <typename ExportersT = Aws::Vector<ExporterConfiguration>>
166 UpdateScraperRequest& WithExporters(ExportersT&& value) {
167 SetExporters(std::forward<ExportersT>(value));
168 return *this;
169 }
170 template <typename ExportersT = ExporterConfiguration>
171 UpdateScraperRequest& AddExporters(ExportersT&& value) {
172 m_exportersHasBeenSet = true;
173 m_exporters.emplace_back(std::forward<ExportersT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_scraperId;
179
180 Aws::String m_alias;
181
182 ScrapeConfiguration m_scrapeConfiguration;
183
184 Destination m_destination;
185
186 RoleConfiguration m_roleConfiguration;
187
189
191 bool m_scraperIdHasBeenSet = false;
192 bool m_aliasHasBeenSet = false;
193 bool m_scrapeConfigurationHasBeenSet = false;
194 bool m_destinationHasBeenSet = false;
195 bool m_roleConfigurationHasBeenSet = false;
196 bool m_clientTokenHasBeenSet = true;
197 bool m_exportersHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace PrometheusService
202} // namespace Aws
const ScrapeConfiguration & GetScrapeConfiguration() const
const Aws::Vector< ExporterConfiguration > & GetExporters() const
void SetScrapeConfiguration(ScrapeConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
UpdateScraperRequest & AddExporters(ExportersT &&value)
UpdateScraperRequest & WithScrapeConfiguration(ScrapeConfigurationT &&value)
UpdateScraperRequest & WithDestination(DestinationT &&value)
AWS_PROMETHEUSSERVICE_API UpdateScraperRequest()=default
UpdateScraperRequest & WithAlias(AliasT &&value)
UpdateScraperRequest & WithClientToken(ClientTokenT &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
UpdateScraperRequest & WithExporters(ExportersT &&value)
UpdateScraperRequest & WithScraperId(ScraperIdT &&value)
UpdateScraperRequest & WithRoleConfiguration(RoleConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector