AWS SDK for C++

AWS SDK for C++ Version 1.11.689

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/RoleConfiguration.h>
11#include <aws/amp/model/ScrapeConfiguration.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace PrometheusService {
19namespace Model {
20
24 public:
25 AWS_PROMETHEUSSERVICE_API UpdateScraperRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateScraper"; }
32
33 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetScraperId() const { return m_scraperId; }
40 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
41 template <typename ScraperIdT = Aws::String>
42 void SetScraperId(ScraperIdT&& value) {
43 m_scraperIdHasBeenSet = true;
44 m_scraperId = std::forward<ScraperIdT>(value);
45 }
46 template <typename ScraperIdT = Aws::String>
47 UpdateScraperRequest& WithScraperId(ScraperIdT&& value) {
48 SetScraperId(std::forward<ScraperIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAlias() const { return m_alias; }
58 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
59 template <typename AliasT = Aws::String>
60 void SetAlias(AliasT&& value) {
61 m_aliasHasBeenSet = true;
62 m_alias = std::forward<AliasT>(value);
63 }
64 template <typename AliasT = Aws::String>
66 SetAlias(std::forward<AliasT>(value));
67 return *this;
68 }
70
72
79 inline const ScrapeConfiguration& GetScrapeConfiguration() const { return m_scrapeConfiguration; }
80 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
81 template <typename ScrapeConfigurationT = ScrapeConfiguration>
82 void SetScrapeConfiguration(ScrapeConfigurationT&& value) {
83 m_scrapeConfigurationHasBeenSet = true;
84 m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value);
85 }
86 template <typename ScrapeConfigurationT = ScrapeConfiguration>
87 UpdateScraperRequest& WithScrapeConfiguration(ScrapeConfigurationT&& value) {
88 SetScrapeConfiguration(std::forward<ScrapeConfigurationT>(value));
89 return *this;
90 }
92
94
98 inline const Destination& GetDestination() const { return m_destination; }
99 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
100 template <typename DestinationT = Destination>
101 void SetDestination(DestinationT&& value) {
102 m_destinationHasBeenSet = true;
103 m_destination = std::forward<DestinationT>(value);
104 }
105 template <typename DestinationT = Destination>
106 UpdateScraperRequest& WithDestination(DestinationT&& value) {
107 SetDestination(std::forward<DestinationT>(value));
108 return *this;
109 }
111
113
117 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
118 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
119 template <typename RoleConfigurationT = RoleConfiguration>
120 void SetRoleConfiguration(RoleConfigurationT&& value) {
121 m_roleConfigurationHasBeenSet = true;
122 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
123 }
124 template <typename RoleConfigurationT = RoleConfiguration>
125 UpdateScraperRequest& WithRoleConfiguration(RoleConfigurationT&& value) {
126 SetRoleConfiguration(std::forward<RoleConfigurationT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetClientToken() const { return m_clientToken; }
137 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
138 template <typename ClientTokenT = Aws::String>
139 void SetClientToken(ClientTokenT&& value) {
140 m_clientTokenHasBeenSet = true;
141 m_clientToken = std::forward<ClientTokenT>(value);
142 }
143 template <typename ClientTokenT = Aws::String>
144 UpdateScraperRequest& WithClientToken(ClientTokenT&& value) {
145 SetClientToken(std::forward<ClientTokenT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_scraperId;
151 bool m_scraperIdHasBeenSet = false;
152
153 Aws::String m_alias;
154 bool m_aliasHasBeenSet = false;
155
156 ScrapeConfiguration m_scrapeConfiguration;
157 bool m_scrapeConfigurationHasBeenSet = false;
158
159 Destination m_destination;
160 bool m_destinationHasBeenSet = false;
161
162 RoleConfiguration m_roleConfiguration;
163 bool m_roleConfigurationHasBeenSet = false;
164
166 bool m_clientTokenHasBeenSet = true;
167};
168
169} // namespace Model
170} // namespace PrometheusService
171} // namespace Aws
const ScrapeConfiguration & GetScrapeConfiguration() const
void SetScrapeConfiguration(ScrapeConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
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 & WithScraperId(ScraperIdT &&value)
UpdateScraperRequest & WithRoleConfiguration(RoleConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String