AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeBackupsRequest.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 "DescribeBackups"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
49  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
50 
55  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
56 
61  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
62 
67  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
68 
73  inline DescribeBackupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 
79  inline DescribeBackupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
80 
85  inline DescribeBackupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
86 
87 
93  inline int GetMaxResults() const{ return m_maxResults; }
94 
100  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 
107  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
108 
114  inline DescribeBackupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
115 
116 
132  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetFilters() const{ return m_filters; }
133 
149  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
150 
166  inline void SetFilters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_filtersHasBeenSet = true; m_filters = value; }
167 
183  inline void SetFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
184 
200  inline DescribeBackupsRequest& WithFilters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetFilters(value); return *this;}
201 
217  inline DescribeBackupsRequest& WithFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetFilters(std::move(value)); return *this;}
218 
234  inline DescribeBackupsRequest& AddFilters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; }
235 
251  inline DescribeBackupsRequest& AddFilters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), value); return *this; }
252 
268  inline DescribeBackupsRequest& AddFilters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); return *this; }
269 
285  inline DescribeBackupsRequest& AddFilters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), std::move(value)); return *this; }
286 
302  inline DescribeBackupsRequest& AddFilters(const char* key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); return *this; }
303 
319  inline DescribeBackupsRequest& AddFilters(const char* key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; }
320 
321 
326  inline bool GetSortAscending() const{ return m_sortAscending; }
327 
332  inline bool SortAscendingHasBeenSet() const { return m_sortAscendingHasBeenSet; }
333 
338  inline void SetSortAscending(bool value) { m_sortAscendingHasBeenSet = true; m_sortAscending = value; }
339 
344  inline DescribeBackupsRequest& WithSortAscending(bool value) { SetSortAscending(value); return *this;}
345 
346  private:
347 
348  Aws::String m_nextToken;
349  bool m_nextTokenHasBeenSet;
350 
351  int m_maxResults;
352  bool m_maxResultsHasBeenSet;
353 
355  bool m_filtersHasBeenSet;
356 
357  bool m_sortAscending;
358  bool m_sortAscendingHasBeenSet;
359  };
360 
361 } // namespace Model
362 } // namespace CloudHSMV2
363 } // namespace Aws
#define AWS_CLOUDHSMV2_API
DescribeBackupsRequest & WithNextToken(const char *value)
DescribeBackupsRequest & WithFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
DescribeBackupsRequest & AddFilters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
DescribeBackupsRequest & WithMaxResults(int value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
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
void SetFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetFilters() const
DescribeBackupsRequest & AddFilters(const char *key, const Aws::Vector< Aws::String > &value)
void SetFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
DescribeBackupsRequest & AddFilters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
DescribeBackupsRequest & WithNextToken(Aws::String &&value)
DescribeBackupsRequest & AddFilters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
DescribeBackupsRequest & AddFilters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override
DescribeBackupsRequest & WithSortAscending(bool value)
DescribeBackupsRequest & WithFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
DescribeBackupsRequest & AddFilters(const char *key, Aws::Vector< Aws::String > &&value)
DescribeBackupsRequest & WithNextToken(const Aws::String &value)