AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BatchGetSecretValueResult.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/SecretsManager_EXPORTS.h>
10#include <aws/secretsmanager/model/APIErrorType.h>
11#include <aws/secretsmanager/model/SecretValueEntry.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SecretsManager {
25namespace Model {
27 public:
28 AWS_SECRETSMANAGER_API BatchGetSecretValueResult() = default;
31
33
36 inline const Aws::Vector<SecretValueEntry>& GetSecretValues() const { return m_secretValues; }
37 template <typename SecretValuesT = Aws::Vector<SecretValueEntry>>
38 void SetSecretValues(SecretValuesT&& value) {
39 m_secretValuesHasBeenSet = true;
40 m_secretValues = std::forward<SecretValuesT>(value);
41 }
42 template <typename SecretValuesT = Aws::Vector<SecretValueEntry>>
44 SetSecretValues(std::forward<SecretValuesT>(value));
45 return *this;
46 }
47 template <typename SecretValuesT = SecretValueEntry>
49 m_secretValuesHasBeenSet = true;
50 m_secretValues.emplace_back(std::forward<SecretValuesT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<APIErrorType>& GetErrors() const { return m_errors; }
82 template <typename ErrorsT = Aws::Vector<APIErrorType>>
83 void SetErrors(ErrorsT&& value) {
84 m_errorsHasBeenSet = true;
85 m_errors = std::forward<ErrorsT>(value);
86 }
87 template <typename ErrorsT = Aws::Vector<APIErrorType>>
89 SetErrors(std::forward<ErrorsT>(value));
90 return *this;
91 }
92 template <typename ErrorsT = APIErrorType>
94 m_errorsHasBeenSet = true;
95 m_errors.emplace_back(std::forward<ErrorsT>(value));
96 return *this;
97 }
99
101
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 template <typename RequestIdT = Aws::String>
104 void SetRequestId(RequestIdT&& value) {
105 m_requestIdHasBeenSet = true;
106 m_requestId = std::forward<RequestIdT>(value);
107 }
108 template <typename RequestIdT = Aws::String>
110 SetRequestId(std::forward<RequestIdT>(value));
111 return *this;
112 }
114 private:
115 Aws::Vector<SecretValueEntry> m_secretValues;
116
117 Aws::String m_nextToken;
118
120
121 Aws::String m_requestId;
122 bool m_secretValuesHasBeenSet = false;
123 bool m_nextTokenHasBeenSet = false;
124 bool m_errorsHasBeenSet = false;
125 bool m_requestIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SecretsManager
130} // 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