AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
BatchGetSecretValueResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
11#include <aws/secretsmanager/model/APIErrorType.h>
12#include <aws/secretsmanager/model/SecretValueEntry.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SecretsManager {
26namespace Model {
28 public:
29 AWS_SECRETSMANAGER_API BatchGetSecretValueResult() = default;
32
34
37 inline const Aws::Vector<SecretValueEntry>& GetSecretValues() const { return m_secretValues; }
38 template <typename SecretValuesT = Aws::Vector<SecretValueEntry>>
39 void SetSecretValues(SecretValuesT&& value) {
40 m_secretValuesHasBeenSet = true;
41 m_secretValues = std::forward<SecretValuesT>(value);
42 }
43 template <typename SecretValuesT = Aws::Vector<SecretValueEntry>>
45 SetSecretValues(std::forward<SecretValuesT>(value));
46 return *this;
47 }
48 template <typename SecretValuesT = SecretValueEntry>
50 m_secretValuesHasBeenSet = true;
51 m_secretValues.emplace_back(std::forward<SecretValuesT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 template <typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) {
67 m_nextTokenHasBeenSet = true;
68 m_nextToken = std::forward<NextTokenT>(value);
69 }
70 template <typename NextTokenT = Aws::String>
72 SetNextToken(std::forward<NextTokenT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::Vector<APIErrorType>& GetErrors() const { return m_errors; }
83 template <typename ErrorsT = Aws::Vector<APIErrorType>>
84 void SetErrors(ErrorsT&& value) {
85 m_errorsHasBeenSet = true;
86 m_errors = std::forward<ErrorsT>(value);
87 }
88 template <typename ErrorsT = Aws::Vector<APIErrorType>>
90 SetErrors(std::forward<ErrorsT>(value));
91 return *this;
92 }
93 template <typename ErrorsT = APIErrorType>
95 m_errorsHasBeenSet = true;
96 m_errors.emplace_back(std::forward<ErrorsT>(value));
97 return *this;
98 }
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template <typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) {
106 m_requestIdHasBeenSet = true;
107 m_requestId = std::forward<RequestIdT>(value);
108 }
109 template <typename RequestIdT = Aws::String>
111 SetRequestId(std::forward<RequestIdT>(value));
112 return *this;
113 }
115 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
116
117 private:
118 Aws::Vector<SecretValueEntry> m_secretValues;
119
120 Aws::String m_nextToken;
121
123
124 Aws::String m_requestId;
125 Aws::Http::HttpResponseCode m_HttpResponseCode;
126 bool m_secretValuesHasBeenSet = false;
127 bool m_nextTokenHasBeenSet = false;
128 bool m_errorsHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace SecretsManager
134} // namespace Aws
AWS_SECRETSMANAGER_API BatchGetSecretValueResult()=default
BatchGetSecretValueResult & WithRequestId(RequestIdT &&value)
AWS_SECRETSMANAGER_API BatchGetSecretValueResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetSecretValueResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< APIErrorType > & GetErrors() const
AWS_SECRETSMANAGER_API BatchGetSecretValueResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetSecretValueResult & AddErrors(ErrorsT &&value)
BatchGetSecretValueResult & WithSecretValues(SecretValuesT &&value)
BatchGetSecretValueResult & AddSecretValues(SecretValuesT &&value)
const Aws::Vector< SecretValueEntry > & GetSecretValues() const
BatchGetSecretValueResult & WithErrors(ErrorsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue