AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeClustersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CloudHSMV2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeClusters"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
48  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetFilters() const{ return m_filters; }
49 
59  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
60 
70  inline void SetFilters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_filtersHasBeenSet = true; m_filters = value; }
71 
81  inline void SetFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
82 
92  inline DescribeClustersRequest& WithFilters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetFilters(value); return *this;}
93 
103  inline DescribeClustersRequest& WithFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetFilters(std::move(value)); return *this;}
104 
114  inline DescribeClustersRequest& AddFilters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; }
115 
125  inline DescribeClustersRequest& AddFilters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), value); return *this; }
126 
136  inline DescribeClustersRequest& AddFilters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); return *this; }
137 
147  inline DescribeClustersRequest& AddFilters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), std::move(value)); return *this; }
148 
158  inline DescribeClustersRequest& AddFilters(const char* key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); return *this; }
159 
169  inline DescribeClustersRequest& AddFilters(const char* key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; }
170 
171 
176  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
177 
182  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
183 
188  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
189 
194  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
195 
200  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
201 
206  inline DescribeClustersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
207 
212  inline DescribeClustersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
213 
218  inline DescribeClustersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
219 
220 
226  inline int GetMaxResults() const{ return m_maxResults; }
227 
233  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
234 
240  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
241 
247  inline DescribeClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
248 
249  private:
250 
252  bool m_filtersHasBeenSet;
253 
254  Aws::String m_nextToken;
255  bool m_nextTokenHasBeenSet;
256 
257  int m_maxResults;
258  bool m_maxResultsHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace CloudHSMV2
263 } // namespace Aws
DescribeClustersRequest & WithNextToken(Aws::String &&value)
DescribeClustersRequest & AddFilters(const char *key, Aws::Vector< Aws::String > &&value)
#define AWS_CLOUDHSMV2_API
DescribeClustersRequest & WithNextToken(const Aws::String &value)
DescribeClustersRequest & AddFilters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
DescribeClustersRequest & WithMaxResults(int value)
DescribeClustersRequest & AddFilters(const char *key, const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
DescribeClustersRequest & AddFilters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
DescribeClustersRequest & WithNextToken(const char *value)
DescribeClustersRequest & AddFilters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetFilters() const
DescribeClustersRequest & AddFilters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
DescribeClustersRequest & WithFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeClustersRequest & WithFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
void SetFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)