AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchGetSecretValueResult.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/secretsmanager/model/SecretValueEntry.h>
11#include <aws/secretsmanager/model/APIErrorType.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SecretsManager
27{
28namespace Model
29{
31 {
32 public:
33 AWS_SECRETSMANAGER_API BatchGetSecretValueResult() = default;
36
37
39
42 inline const Aws::Vector<SecretValueEntry>& GetSecretValues() const { return m_secretValues; }
43 template<typename SecretValuesT = Aws::Vector<SecretValueEntry>>
44 void SetSecretValues(SecretValuesT&& value) { m_secretValuesHasBeenSet = true; m_secretValues = std::forward<SecretValuesT>(value); }
45 template<typename SecretValuesT = Aws::Vector<SecretValueEntry>>
46 BatchGetSecretValueResult& WithSecretValues(SecretValuesT&& value) { SetSecretValues(std::forward<SecretValuesT>(value)); return *this;}
47 template<typename SecretValuesT = SecretValueEntry>
48 BatchGetSecretValueResult& AddSecretValues(SecretValuesT&& value) { m_secretValuesHasBeenSet = true; m_secretValues.emplace_back(std::forward<SecretValuesT>(value)); return *this; }
50
52
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 template<typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
62 template<typename NextTokenT = Aws::String>
63 BatchGetSecretValueResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
65
67
71 inline const Aws::Vector<APIErrorType>& GetErrors() const { return m_errors; }
72 template<typename ErrorsT = Aws::Vector<APIErrorType>>
73 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
74 template<typename ErrorsT = Aws::Vector<APIErrorType>>
75 BatchGetSecretValueResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
76 template<typename ErrorsT = APIErrorType>
77 BatchGetSecretValueResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template<typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
85 template<typename RequestIdT = Aws::String>
86 BatchGetSecretValueResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
88 private:
89
90 Aws::Vector<SecretValueEntry> m_secretValues;
91 bool m_secretValuesHasBeenSet = false;
92
93 Aws::String m_nextToken;
94 bool m_nextTokenHasBeenSet = false;
95
97 bool m_errorsHasBeenSet = false;
98
99 Aws::String m_requestId;
100 bool m_requestIdHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SecretsManager
105} // 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