AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/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>
16
17#include <utility>
18
19namespace Aws {
20namespace PrometheusService {
21namespace Model {
22
30 public:
31 AWS_PROMETHEUSSERVICE_API CreateScraperRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateScraper"; }
38
39 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
40
42
46 inline const Aws::String& GetAlias() const { return m_alias; }
47 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
48 template <typename AliasT = Aws::String>
49 void SetAlias(AliasT&& value) {
50 m_aliasHasBeenSet = true;
51 m_alias = std::forward<AliasT>(value);
52 }
53 template <typename AliasT = Aws::String>
55 SetAlias(std::forward<AliasT>(value));
56 return *this;
57 }
59
61
68 inline const ScrapeConfiguration& GetScrapeConfiguration() const { return m_scrapeConfiguration; }
69 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
70 template <typename ScrapeConfigurationT = ScrapeConfiguration>
71 void SetScrapeConfiguration(ScrapeConfigurationT&& value) {
72 m_scrapeConfigurationHasBeenSet = true;
73 m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value);
74 }
75 template <typename ScrapeConfigurationT = ScrapeConfiguration>
76 CreateScraperRequest& WithScrapeConfiguration(ScrapeConfigurationT&& value) {
77 SetScrapeConfiguration(std::forward<ScrapeConfigurationT>(value));
78 return *this;
79 }
81
83
87 inline const Source& GetSource() const { return m_source; }
88 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
89 template <typename SourceT = Source>
90 void SetSource(SourceT&& value) {
91 m_sourceHasBeenSet = true;
92 m_source = std::forward<SourceT>(value);
93 }
94 template <typename SourceT = Source>
95 CreateScraperRequest& WithSource(SourceT&& value) {
96 SetSource(std::forward<SourceT>(value));
97 return *this;
98 }
100
102
105 inline const Destination& GetDestination() const { return m_destination; }
106 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
107 template <typename DestinationT = Destination>
108 void SetDestination(DestinationT&& value) {
109 m_destinationHasBeenSet = true;
110 m_destination = std::forward<DestinationT>(value);
111 }
112 template <typename DestinationT = Destination>
113 CreateScraperRequest& WithDestination(DestinationT&& value) {
114 SetDestination(std::forward<DestinationT>(value));
115 return *this;
116 }
118
120
124 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
125 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
126 template <typename RoleConfigurationT = RoleConfiguration>
127 void SetRoleConfiguration(RoleConfigurationT&& value) {
128 m_roleConfigurationHasBeenSet = true;
129 m_roleConfiguration = std::forward<RoleConfigurationT>(value);
130 }
131 template <typename RoleConfigurationT = RoleConfiguration>
132 CreateScraperRequest& WithRoleConfiguration(RoleConfigurationT&& value) {
133 SetRoleConfiguration(std::forward<RoleConfigurationT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetClientToken() const { return m_clientToken; }
144 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
145 template <typename ClientTokenT = Aws::String>
146 void SetClientToken(ClientTokenT&& value) {
147 m_clientTokenHasBeenSet = true;
148 m_clientToken = std::forward<ClientTokenT>(value);
149 }
150 template <typename ClientTokenT = Aws::String>
151 CreateScraperRequest& WithClientToken(ClientTokenT&& value) {
152 SetClientToken(std::forward<ClientTokenT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
174 CreateScraperRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_alias;
182
183 ScrapeConfiguration m_scrapeConfiguration;
184
185 Source m_source;
186
187 Destination m_destination;
188
189 RoleConfiguration m_roleConfiguration;
190
192
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;
201};
202
203} // namespace Model
204} // namespace PrometheusService
205} // namespace Aws
CreateScraperRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateScraperRequest & WithSource(SourceT &&value)
const ScrapeConfiguration & GetScrapeConfiguration() const
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 & 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