AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListSecretsRequest.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/secretsmanager/SecretsManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/secretsmanager/model/SortOrderType.h>
12#include <aws/secretsmanager/model/Filter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SecretsManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SECRETSMANAGER_API ListSecretsRequest();
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_SECRETSMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline bool GetIncludePlannedDeletion() const{ return m_includePlannedDeletion; }
46 inline bool IncludePlannedDeletionHasBeenSet() const { return m_includePlannedDeletionHasBeenSet; }
47 inline void SetIncludePlannedDeletion(bool value) { m_includePlannedDeletionHasBeenSet = true; m_includePlannedDeletion = value; }
48 inline ListSecretsRequest& WithIncludePlannedDeletion(bool value) { SetIncludePlannedDeletion(value); return *this;}
50
52
58 inline int GetMaxResults() const{ return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
61 inline ListSecretsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
63
65
70 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
73 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 inline ListSecretsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 inline ListSecretsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
77 inline ListSecretsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79
81
84 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
85 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
86 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
87 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
88 inline ListSecretsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
89 inline ListSecretsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
90 inline ListSecretsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
91 inline ListSecretsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
93
95
98 inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
99 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
100 inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
101 inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
102 inline ListSecretsRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
103 inline ListSecretsRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
105 private:
106
107 bool m_includePlannedDeletion;
108 bool m_includePlannedDeletionHasBeenSet = false;
109
110 int m_maxResults;
111 bool m_maxResultsHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
116 Aws::Vector<Filter> m_filters;
117 bool m_filtersHasBeenSet = false;
118
119 SortOrderType m_sortOrder;
120 bool m_sortOrderHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace SecretsManager
125} // namespace Aws
ListSecretsRequest & WithNextToken(const Aws::String &value)
ListSecretsRequest & WithFilters(const Aws::Vector< Filter > &value)
void SetSortOrder(const SortOrderType &value)
virtual const char * GetServiceRequestName() const override
ListSecretsRequest & WithIncludePlannedDeletion(bool value)
ListSecretsRequest & WithMaxResults(int value)
ListSecretsRequest & AddFilters(const Filter &value)
ListSecretsRequest & WithNextToken(const char *value)
ListSecretsRequest & WithFilters(Aws::Vector< Filter > &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
ListSecretsRequest & AddFilters(Filter &&value)
ListSecretsRequest & WithSortOrder(SortOrderType &&value)
ListSecretsRequest & WithSortOrder(const SortOrderType &value)
const Aws::Vector< Filter > & GetFilters() const
void SetFilters(Aws::Vector< Filter > &&value)
void SetFilters(const Aws::Vector< Filter > &value)
ListSecretsRequest & WithNextToken(Aws::String &&value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector