AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
DescribeBackupsRequest.h
1
6#pragma once
7#include <aws/cloudhsmv2/CloudHSMV2Request.h>
8#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.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
13#include <utility>
14
15namespace Aws {
16namespace CloudHSMV2 {
17namespace Model {
18
22 public:
23 AWS_CLOUDHSMV2_API DescribeBackupsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeBackups"; }
30
31 AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetNextToken() const { return m_nextToken; }
41 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
42 template <typename NextTokenT = Aws::String>
43 void SetNextToken(NextTokenT&& value) {
44 m_nextTokenHasBeenSet = true;
45 m_nextToken = std::forward<NextTokenT>(value);
46 }
47 template <typename NextTokenT = Aws::String>
49 SetNextToken(std::forward<NextTokenT>(value));
50 return *this;
51 }
53
55
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
88 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetFilters() const { return m_filters; }
89 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
90 template <typename FiltersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
91 void SetFilters(FiltersT&& value) {
92 m_filtersHasBeenSet = true;
93 m_filters = std::forward<FiltersT>(value);
94 }
95 template <typename FiltersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
97 SetFilters(std::forward<FiltersT>(value));
98 return *this;
99 }
100 template <typename FiltersKeyT = Aws::String, typename FiltersValueT = Aws::Vector<Aws::String>>
101 DescribeBackupsRequest& AddFilters(FiltersKeyT&& key, FiltersValueT&& value) {
102 m_filtersHasBeenSet = true;
103 m_filters.emplace(std::forward<FiltersKeyT>(key), std::forward<FiltersValueT>(value));
104 return *this;
105 }
107
109
120 inline bool GetShared() const { return m_shared; }
121 inline bool SharedHasBeenSet() const { return m_sharedHasBeenSet; }
122 inline void SetShared(bool value) {
123 m_sharedHasBeenSet = true;
124 m_shared = value;
125 }
126 inline DescribeBackupsRequest& WithShared(bool value) {
127 SetShared(value);
128 return *this;
129 }
131
133
137 inline bool GetSortAscending() const { return m_sortAscending; }
138 inline bool SortAscendingHasBeenSet() const { return m_sortAscendingHasBeenSet; }
139 inline void SetSortAscending(bool value) {
140 m_sortAscendingHasBeenSet = true;
141 m_sortAscending = value;
142 }
144 SetSortAscending(value);
145 return *this;
146 }
148 private:
149 Aws::String m_nextToken;
150
151 int m_maxResults{0};
152
154
155 bool m_shared{false};
156
157 bool m_sortAscending{false};
158 bool m_nextTokenHasBeenSet = false;
159 bool m_maxResultsHasBeenSet = false;
160 bool m_filtersHasBeenSet = false;
161 bool m_sharedHasBeenSet = false;
162 bool m_sortAscendingHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace CloudHSMV2
167} // namespace Aws
AWS_CLOUDHSMV2_API DescribeBackupsRequest()=default
AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeBackupsRequest & WithShared(bool value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetFilters() const
virtual const char * GetServiceRequestName() const override
DescribeBackupsRequest & WithSortAscending(bool value)
DescribeBackupsRequest & WithFilters(FiltersT &&value)
AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override
DescribeBackupsRequest & WithNextToken(NextTokenT &&value)
DescribeBackupsRequest & AddFilters(FiltersKeyT &&key, FiltersValueT &&value)
DescribeBackupsRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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