AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListScrapersRequest.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace PrometheusService
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_PROMETHEUSSERVICE_API ListScrapersRequest();
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 "ListScrapers"; }
41
42 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
43
44 AWS_PROMETHEUSSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
45
46
48
63 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetFilters() const{ return m_filters; }
64 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
65 inline void SetFilters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_filtersHasBeenSet = true; m_filters = value; }
66 inline void SetFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
68 inline ListScrapersRequest& WithFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetFilters(std::move(value)); return *this;}
69 inline ListScrapersRequest& AddFilters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; }
70 inline ListScrapersRequest& AddFilters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), value); return *this; }
71 inline ListScrapersRequest& AddFilters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); return *this; }
72 inline ListScrapersRequest& AddFilters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), std::move(value)); return *this; }
73 inline ListScrapersRequest& AddFilters(const char* key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); return *this; }
74 inline ListScrapersRequest& AddFilters(const char* key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; }
76
78
83 inline int GetMaxResults() const{ return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
86 inline ListScrapersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
88
90
94 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
97 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
98 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
99 inline ListScrapersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
100 inline ListScrapersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
101 inline ListScrapersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
103 private:
104
106 bool m_filtersHasBeenSet = false;
107
108 int m_maxResults;
109 bool m_maxResultsHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace PrometheusService
117} // namespace Aws
ListScrapersRequest & WithNextToken(Aws::String &&value)
ListScrapersRequest & AddFilters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
ListScrapersRequest & WithNextToken(const char *value)
ListScrapersRequest & AddFilters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
ListScrapersRequest & WithFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
ListScrapersRequest & AddFilters(const char *key, const Aws::Vector< Aws::String > &value)
ListScrapersRequest & AddFilters(const char *key, Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
AWS_PROMETHEUSSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListScrapersRequest & AddFilters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
void SetFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
ListScrapersRequest & WithNextToken(const Aws::String &value)
void SetFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetFilters() const
ListScrapersRequest & AddFilters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
ListScrapersRequest & WithFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&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
std::vector< T, Aws::Allocator< T > > Vector