AWS SDK for C++  1.9.109
AWS SDK for C++
ListSecretsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SecretsManager
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "ListSecrets"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
51  inline int GetMaxResults() const{ return m_maxResults; }
52 
64  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 
77  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
78 
90  inline ListSecretsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
91 
92 
100  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
101 
109  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 
118  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
119 
127  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
128 
136  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
137 
145  inline ListSecretsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
146 
154  inline ListSecretsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
155 
163  inline ListSecretsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
164 
165 
169  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
170 
174  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
175 
179  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
180 
184  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
185 
189  inline ListSecretsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
190 
194  inline ListSecretsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
195 
199  inline ListSecretsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
200 
204  inline ListSecretsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
205 
206 
210  inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
211 
215  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
216 
220  inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
221 
225  inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
226 
230  inline ListSecretsRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
231 
235  inline ListSecretsRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
236 
237  private:
238 
239  int m_maxResults;
240  bool m_maxResultsHasBeenSet;
241 
242  Aws::String m_nextToken;
243  bool m_nextTokenHasBeenSet;
244 
245  Aws::Vector<Filter> m_filters;
246  bool m_filtersHasBeenSet;
247 
248  SortOrderType m_sortOrder;
249  bool m_sortOrderHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace SecretsManager
254 } // namespace Aws
Aws::SecretsManager::Model::ListSecretsRequest::GetSortOrder
const SortOrderType & GetSortOrder() const
Definition: ListSecretsRequest.h:210
Aws::SecretsManager::Model::ListSecretsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListSecretsRequest.h:77
Aws::SecretsManager::Model::ListSecretsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListSecretsRequest.h:64
Aws::SecretsManager::Model::ListSecretsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: ListSecretsRequest.h:169
Aws::SecretsManager::Model::ListSecretsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecretsManager::Model::ListSecretsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::ListSecretsRequest::WithFilters
ListSecretsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: ListSecretsRequest.h:189
Aws::SecretsManager::Model::ListSecretsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListSecretsRequest.h:136
Aws::SecretsManager::Model::ListSecretsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSecretsRequest.h:127
Aws::SecretsManager::Model::ListSecretsRequest::AddFilters
ListSecretsRequest & AddFilters(const Filter &value)
Definition: ListSecretsRequest.h:199
Aws::SecretsManager::Model::ListSecretsRequest::SetSortOrder
void SetSortOrder(SortOrderType &&value)
Definition: ListSecretsRequest.h:225
Aws::SecretsManager::Model::ListSecretsRequest::AddFilters
ListSecretsRequest & AddFilters(Filter &&value)
Definition: ListSecretsRequest.h:204
Aws::SecretsManager::Model::ListSecretsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListSecretsRequest.h:109
Aws::SecretsManager::Model::SortOrderType
SortOrderType
Definition: SortOrderType.h:17
Aws::SecretsManager::Model::Filter
Definition: Filter.h:35
Aws::SecretsManager::Model::ListSecretsRequest::WithNextToken
ListSecretsRequest & WithNextToken(const char *value)
Definition: ListSecretsRequest.h:163
Filter.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecretsManager::Model::ListSecretsRequest::WithNextToken
ListSecretsRequest & WithNextToken(Aws::String &&value)
Definition: ListSecretsRequest.h:154
Aws::SecretsManager::Model::ListSecretsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: ListSecretsRequest.h:184
AWSVector.h
Aws::SecretsManager::Model::ListSecretsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: ListSecretsRequest.h:179
Aws::SecretsManager::Model::ListSecretsRequest::ListSecretsRequest
ListSecretsRequest()
Aws::SecretsManager::Model::ListSecretsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListSecretsRequest.h:33
Aws::SecretsManager::Model::ListSecretsRequest::WithFilters
ListSecretsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: ListSecretsRequest.h:194
Aws::SecretsManager::Model::ListSecretsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSecretsRequest.h:100
Aws::SecretsManager::Model::ListSecretsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListSecretsRequest.h:174
Aws::SecretsManager::Model::ListSecretsRequest::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: ListSecretsRequest.h:215
AWSString.h
Aws::SecretsManager::Model::ListSecretsRequest::WithNextToken
ListSecretsRequest & WithNextToken(const Aws::String &value)
Definition: ListSecretsRequest.h:145
Aws::SecretsManager::Model::ListSecretsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListSecretsRequest.h:51
Aws::SecretsManager::Model::ListSecretsRequest
Definition: ListSecretsRequest.h:25
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::SecretsManager::Model::ListSecretsRequest::WithSortOrder
ListSecretsRequest & WithSortOrder(const SortOrderType &value)
Definition: ListSecretsRequest.h:230
Aws
Definition: AccessManagementClient.h:15
Aws::SecretsManager::Model::ListSecretsRequest::WithMaxResults
ListSecretsRequest & WithMaxResults(int value)
Definition: ListSecretsRequest.h:90
SecretsManagerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecretsManager::Model::ListSecretsRequest::WithSortOrder
ListSecretsRequest & WithSortOrder(SortOrderType &&value)
Definition: ListSecretsRequest.h:235
Aws::SecretsManager::Model::ListSecretsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSecretsRequest.h:118
SecretsManager_EXPORTS.h
SortOrderType.h
Aws::SecretsManager::Model::ListSecretsRequest::SetSortOrder
void SetSortOrder(const SortOrderType &value)
Definition: ListSecretsRequest.h:220