AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
BatchGetSecretValueRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/secretsmanager/SecretsManagerRequest.h>
10#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
11#include <aws/secretsmanager/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecretsManager {
17namespace Model {
18
22 public:
23 AWS_SECRETSMANAGER_API BatchGetSecretValueRequest() = 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 "BatchGetSecretValue"; }
30
31 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
32
33 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::Vector<Aws::String>& GetSecretIdList() const { return m_secretIdList; }
41 inline bool SecretIdListHasBeenSet() const { return m_secretIdListHasBeenSet; }
42 template <typename SecretIdListT = Aws::Vector<Aws::String>>
43 void SetSecretIdList(SecretIdListT&& value) {
44 m_secretIdListHasBeenSet = true;
45 m_secretIdList = std::forward<SecretIdListT>(value);
46 }
47 template <typename SecretIdListT = Aws::Vector<Aws::String>>
49 SetSecretIdList(std::forward<SecretIdListT>(value));
50 return *this;
51 }
52 template <typename SecretIdListT = Aws::String>
54 m_secretIdListHasBeenSet = true;
55 m_secretIdList.emplace_back(std::forward<SecretIdListT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
66 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
67 template <typename FiltersT = Aws::Vector<Filter>>
68 void SetFilters(FiltersT&& value) {
69 m_filtersHasBeenSet = true;
70 m_filters = std::forward<FiltersT>(value);
71 }
72 template <typename FiltersT = Aws::Vector<Filter>>
74 SetFilters(std::forward<FiltersT>(value));
75 return *this;
76 }
77 template <typename FiltersT = Filter>
79 m_filtersHasBeenSet = true;
80 m_filters.emplace_back(std::forward<FiltersT>(value));
81 return *this;
82 }
84
86
94 inline int GetMaxResults() const { return m_maxResults; }
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96 inline void SetMaxResults(int value) {
97 m_maxResultsHasBeenSet = true;
98 m_maxResults = value;
99 }
101 SetMaxResults(value);
102 return *this;
103 }
105
107
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125 private:
126 Aws::Vector<Aws::String> m_secretIdList;
127
128 Aws::Vector<Filter> m_filters;
129
130 int m_maxResults{0};
131
132 Aws::String m_nextToken;
133 bool m_secretIdListHasBeenSet = false;
134 bool m_filtersHasBeenSet = false;
135 bool m_maxResultsHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace SecretsManager
141} // namespace Aws
AWS_SECRETSMANAGER_API BatchGetSecretValueRequest()=default
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetSecretValueRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetSecretIdList() const
BatchGetSecretValueRequest & AddFilters(FiltersT &&value)
BatchGetSecretValueRequest & WithSecretIdList(SecretIdListT &&value)
BatchGetSecretValueRequest & WithFilters(FiltersT &&value)
BatchGetSecretValueRequest & AddSecretIdList(SecretIdListT &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() 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