AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateScraperRequest.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 <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace PrometheusService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PROMETHEUSSERVICE_API UpdateScraperRequest();
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
37
39
42 inline const Aws::String& GetAlias() const{ return m_alias; }
43 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
44 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
45 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
46 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
47 inline UpdateScraperRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
48 inline UpdateScraperRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
49 inline UpdateScraperRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
51
53
57 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
58 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
60 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
61 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
62 inline UpdateScraperRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
63 inline UpdateScraperRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
64 inline UpdateScraperRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
66
68
72 inline const Destination& GetDestination() const{ return m_destination; }
73 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
74 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
75 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
76 inline UpdateScraperRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
77 inline UpdateScraperRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
79
81
88 inline const ScrapeConfiguration& GetScrapeConfiguration() const{ return m_scrapeConfiguration; }
89 inline bool ScrapeConfigurationHasBeenSet() const { return m_scrapeConfigurationHasBeenSet; }
90 inline void SetScrapeConfiguration(const ScrapeConfiguration& value) { m_scrapeConfigurationHasBeenSet = true; m_scrapeConfiguration = value; }
91 inline void SetScrapeConfiguration(ScrapeConfiguration&& value) { m_scrapeConfigurationHasBeenSet = true; m_scrapeConfiguration = std::move(value); }
95
97
100 inline const Aws::String& GetScraperId() const{ return m_scraperId; }
101 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
102 inline void SetScraperId(const Aws::String& value) { m_scraperIdHasBeenSet = true; m_scraperId = value; }
103 inline void SetScraperId(Aws::String&& value) { m_scraperIdHasBeenSet = true; m_scraperId = std::move(value); }
104 inline void SetScraperId(const char* value) { m_scraperIdHasBeenSet = true; m_scraperId.assign(value); }
105 inline UpdateScraperRequest& WithScraperId(const Aws::String& value) { SetScraperId(value); return *this;}
106 inline UpdateScraperRequest& WithScraperId(Aws::String&& value) { SetScraperId(std::move(value)); return *this;}
107 inline UpdateScraperRequest& WithScraperId(const char* value) { SetScraperId(value); return *this;}
109 private:
110
111 Aws::String m_alias;
112 bool m_aliasHasBeenSet = false;
113
114 Aws::String m_clientToken;
115 bool m_clientTokenHasBeenSet = false;
116
117 Destination m_destination;
118 bool m_destinationHasBeenSet = false;
119
120 ScrapeConfiguration m_scrapeConfiguration;
121 bool m_scrapeConfigurationHasBeenSet = false;
122
123 Aws::String m_scraperId;
124 bool m_scraperIdHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace PrometheusService
129} // namespace Aws
const ScrapeConfiguration & GetScrapeConfiguration() const
UpdateScraperRequest & WithClientToken(const Aws::String &value)
UpdateScraperRequest & WithScraperId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateScraperRequest & WithScrapeConfiguration(ScrapeConfiguration &&value)
UpdateScraperRequest & WithDestination(const Destination &value)
UpdateScraperRequest & WithDestination(Destination &&value)
UpdateScraperRequest & WithAlias(const Aws::String &value)
UpdateScraperRequest & WithScrapeConfiguration(const ScrapeConfiguration &value)
UpdateScraperRequest & WithAlias(Aws::String &&value)
void SetScrapeConfiguration(ScrapeConfiguration &&value)
UpdateScraperRequest & WithScraperId(Aws::String &&value)
UpdateScraperRequest & WithAlias(const char *value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
UpdateScraperRequest & WithClientToken(Aws::String &&value)
UpdateScraperRequest & WithClientToken(const char *value)
void SetScrapeConfiguration(const ScrapeConfiguration &value)
UpdateScraperRequest & WithScraperId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String