AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CallbackDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9#include <aws/lambda/model/ErrorObject.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
30 public:
31 AWS_LAMBDA_API CallbackDetails() = default;
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetCallbackId() const { return m_callbackId; }
43 inline bool CallbackIdHasBeenSet() const { return m_callbackIdHasBeenSet; }
44 template <typename CallbackIdT = Aws::String>
45 void SetCallbackId(CallbackIdT&& value) {
46 m_callbackIdHasBeenSet = true;
47 m_callbackId = std::forward<CallbackIdT>(value);
48 }
49 template <typename CallbackIdT = Aws::String>
50 CallbackDetails& WithCallbackId(CallbackIdT&& value) {
51 SetCallbackId(std::forward<CallbackIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetResult() const { return m_result; }
61 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
62 template <typename ResultT = Aws::String>
63 void SetResult(ResultT&& value) {
64 m_resultHasBeenSet = true;
65 m_result = std::forward<ResultT>(value);
66 }
67 template <typename ResultT = Aws::String>
68 CallbackDetails& WithResult(ResultT&& value) {
69 SetResult(std::forward<ResultT>(value));
70 return *this;
71 }
73
75
78 inline const ErrorObject& GetError() const { return m_error; }
79 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
80 template <typename ErrorT = ErrorObject>
81 void SetError(ErrorT&& value) {
82 m_errorHasBeenSet = true;
83 m_error = std::forward<ErrorT>(value);
84 }
85 template <typename ErrorT = ErrorObject>
86 CallbackDetails& WithError(ErrorT&& value) {
87 SetError(std::forward<ErrorT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_callbackId;
93
94 Aws::String m_result;
95
96 ErrorObject m_error;
97 bool m_callbackIdHasBeenSet = false;
98 bool m_resultHasBeenSet = false;
99 bool m_errorHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Lambda
104} // namespace Aws
CallbackDetails & WithResult(ResultT &&value)
CallbackDetails & WithCallbackId(CallbackIdT &&value)
AWS_LAMBDA_API CallbackDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCallbackId() const
AWS_LAMBDA_API CallbackDetails()=default
CallbackDetails & WithError(ErrorT &&value)
AWS_LAMBDA_API CallbackDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCallbackId(CallbackIdT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
const ErrorObject & GetError() const
const Aws::String & GetResult() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue