AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchGetSecretValueRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/secretsmanager/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecretsManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECRETSMANAGER_API BatchGetSecretValueRequest() = default;
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 "BatchGetSecretValue"; }
33
34 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
35
36 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::Vector<Aws::String>& GetSecretIdList() const { return m_secretIdList; }
45 inline bool SecretIdListHasBeenSet() const { return m_secretIdListHasBeenSet; }
46 template<typename SecretIdListT = Aws::Vector<Aws::String>>
47 void SetSecretIdList(SecretIdListT&& value) { m_secretIdListHasBeenSet = true; m_secretIdList = std::forward<SecretIdListT>(value); }
48 template<typename SecretIdListT = Aws::Vector<Aws::String>>
49 BatchGetSecretValueRequest& WithSecretIdList(SecretIdListT&& value) { SetSecretIdList(std::forward<SecretIdListT>(value)); return *this;}
50 template<typename SecretIdListT = Aws::String>
51 BatchGetSecretValueRequest& AddSecretIdList(SecretIdListT&& value) { m_secretIdListHasBeenSet = true; m_secretIdList.emplace_back(std::forward<SecretIdListT>(value)); return *this; }
53
55
59 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 template<typename FiltersT = Aws::Vector<Filter>>
62 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
63 template<typename FiltersT = Aws::Vector<Filter>>
64 BatchGetSecretValueRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
65 template<typename FiltersT = Filter>
66 BatchGetSecretValueRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
68
70
78 inline int GetMaxResults() const { return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 inline BatchGetSecretValueRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
83
85
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 template<typename NextTokenT = Aws::String>
93 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
94 template<typename NextTokenT = Aws::String>
95 BatchGetSecretValueRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
97 private:
98
99 Aws::Vector<Aws::String> m_secretIdList;
100 bool m_secretIdListHasBeenSet = false;
101
102 Aws::Vector<Filter> m_filters;
103 bool m_filtersHasBeenSet = false;
104
105 int m_maxResults{0};
106 bool m_maxResultsHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SecretsManager
114} // 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