AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/ScrapeConfiguration.h>
12#include <aws/amp/model/Source.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace PrometheusService
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_PROMETHEUSSERVICE_API CreateScraperRequest();
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
43
45
49 inline const Aws::String& GetAlias() const{ return m_alias; }
50 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
51 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
52 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
53 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
54 inline CreateScraperRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
55 inline CreateScraperRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
56 inline CreateScraperRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
58
60
64 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
65 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
66 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
67 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
68 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
69 inline CreateScraperRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
70 inline CreateScraperRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
71 inline CreateScraperRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
73
75
78 inline const Destination& GetDestination() const{ return m_destination; }
79 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
80 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
81 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
82 inline CreateScraperRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
83 inline CreateScraperRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
85
87
94 inline const ScrapeConfiguration& GetScrapeConfiguration() const{ return m_scrapeConfiguration; }
95 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
96 inline void SetScrapeConfiguration(const ScrapeConfiguration& value) { m_scrapeConfigurationHasBeenSet = true; m_scrapeConfiguration = value; }
97 inline void SetScrapeConfiguration(ScrapeConfiguration&& value) { m_scrapeConfigurationHasBeenSet = true; m_scrapeConfiguration = std::move(value); }
101
103
106 inline const Source& GetSource() const{ return m_source; }
107 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
108 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
109 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
110 inline CreateScraperRequest& WithSource(const Source& value) { SetSource(value); return *this;}
111 inline CreateScraperRequest& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
121 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline CreateScraperRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
123 inline CreateScraperRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
124 inline CreateScraperRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
125 inline CreateScraperRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
126 inline CreateScraperRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateScraperRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
128 inline CreateScraperRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline CreateScraperRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
130 inline CreateScraperRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
132 private:
133
134 Aws::String m_alias;
135 bool m_aliasHasBeenSet = false;
136
137 Aws::String m_clientToken;
138 bool m_clientTokenHasBeenSet = false;
139
140 Destination m_destination;
141 bool m_destinationHasBeenSet = false;
142
143 ScrapeConfiguration m_scrapeConfiguration;
144 bool m_scrapeConfigurationHasBeenSet = false;
145
146 Source m_source;
147 bool m_sourceHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace PrometheusService
155} // namespace Aws
CreateScraperRequest & WithSource(Source &&value)
CreateScraperRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateScraperRequest & WithScrapeConfiguration(ScrapeConfiguration &&value)
CreateScraperRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateScraperRequest & WithAlias(Aws::String &&value)
CreateScraperRequest & WithAlias(const Aws::String &value)
CreateScraperRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateScraperRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateScraperRequest & WithClientToken(Aws::String &&value)
CreateScraperRequest & WithClientToken(const char *value)
CreateScraperRequest & WithDestination(Destination &&value)
const ScrapeConfiguration & GetScrapeConfiguration() const
CreateScraperRequest & WithScrapeConfiguration(const ScrapeConfiguration &value)
CreateScraperRequest & WithAlias(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateScraperRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateScraperRequest & WithSource(const Source &value)
CreateScraperRequest & AddTags(Aws::String &&key, const char *value)
void SetScrapeConfiguration(const ScrapeConfiguration &value)
CreateScraperRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateScraperRequest & WithClientToken(const Aws::String &value)
void SetScrapeConfiguration(ScrapeConfiguration &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
CreateScraperRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateScraperRequest & AddTags(const char *key, const char *value)
CreateScraperRequest & WithDestination(const Destination &value)
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