AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateScraperRequest.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/PrometheusServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amp/model/Destination.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/memory/stl/AWSMap.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace PrometheusService
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_PROMETHEUSSERVICE_API CreateScraperRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateScraper"; }
41
42 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
43
44
46
50 inline const Aws::String& GetAlias() const { return m_alias; }
51 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
52 template<typename AliasT = Aws::String>
53 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
54 template<typename AliasT = Aws::String>
55 CreateScraperRequest& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
57
59
63 inline const Aws::String& GetClientToken() const { return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 template<typename ClientTokenT = Aws::String>
66 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
67 template<typename ClientTokenT = Aws::String>
68 CreateScraperRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
70
72
75 inline const Destination& GetDestination() const { return m_destination; }
76 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
77 template<typename DestinationT = Destination>
78 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
79 template<typename DestinationT = Destination>
80 CreateScraperRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
82
84
88 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
89 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
90 template<typename RoleConfigurationT = RoleConfiguration>
91 void SetRoleConfiguration(RoleConfigurationT&& value) { m_roleConfigurationHasBeenSet = true; m_roleConfiguration = std::forward<RoleConfigurationT>(value); }
92 template<typename RoleConfigurationT = RoleConfiguration>
93 CreateScraperRequest& WithRoleConfiguration(RoleConfigurationT&& value) { SetRoleConfiguration(std::forward<RoleConfigurationT>(value)); return *this;}
95
97
104 inline const ScrapeConfiguration& GetScrapeConfiguration() const { return m_scrapeConfiguration; }
105 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
106 template<typename ScrapeConfigurationT = ScrapeConfiguration>
107 void SetScrapeConfiguration(ScrapeConfigurationT&& value) { m_scrapeConfigurationHasBeenSet = true; m_scrapeConfiguration = std::forward<ScrapeConfigurationT>(value); }
108 template<typename ScrapeConfigurationT = ScrapeConfiguration>
109 CreateScraperRequest& WithScrapeConfiguration(ScrapeConfigurationT&& value) { SetScrapeConfiguration(std::forward<ScrapeConfigurationT>(value)); return *this;}
111
113
116 inline const Source& GetSource() const { return m_source; }
117 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
118 template<typename SourceT = Source>
119 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
120 template<typename SourceT = Source>
121 CreateScraperRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
132 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 CreateScraperRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
134 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 CreateScraperRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
137 }
139 private:
140
141 Aws::String m_alias;
142 bool m_aliasHasBeenSet = false;
143
145 bool m_clientTokenHasBeenSet = true;
146
147 Destination m_destination;
148 bool m_destinationHasBeenSet = false;
149
150 RoleConfiguration m_roleConfiguration;
151 bool m_roleConfigurationHasBeenSet = false;
152
153 ScrapeConfiguration m_scrapeConfiguration;
154 bool m_scrapeConfigurationHasBeenSet = false;
155
156 Source m_source;
157 bool m_sourceHasBeenSet = false;
158
160 bool m_tagsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace PrometheusService
165} // 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