AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ContextDetails.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
29 public:
30 AWS_LAMBDA_API ContextDetails() = default;
31 AWS_LAMBDA_API ContextDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline bool GetReplayChildren() const { return m_replayChildren; }
42 inline bool ReplayChildrenHasBeenSet() const { return m_replayChildrenHasBeenSet; }
43 inline void SetReplayChildren(bool value) {
44 m_replayChildrenHasBeenSet = true;
45 m_replayChildren = value;
46 }
47 inline ContextDetails& WithReplayChildren(bool value) {
48 SetReplayChildren(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResult() const { return m_result; }
58 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
59 template <typename ResultT = Aws::String>
60 void SetResult(ResultT&& value) {
61 m_resultHasBeenSet = true;
62 m_result = std::forward<ResultT>(value);
63 }
64 template <typename ResultT = Aws::String>
65 ContextDetails& WithResult(ResultT&& value) {
66 SetResult(std::forward<ResultT>(value));
67 return *this;
68 }
70
72
75 inline const ErrorObject& GetError() const { return m_error; }
76 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
77 template <typename ErrorT = ErrorObject>
78 void SetError(ErrorT&& value) {
79 m_errorHasBeenSet = true;
80 m_error = std::forward<ErrorT>(value);
81 }
82 template <typename ErrorT = ErrorObject>
83 ContextDetails& WithError(ErrorT&& value) {
84 SetError(std::forward<ErrorT>(value));
85 return *this;
86 }
88 private:
89 bool m_replayChildren{false};
90
91 Aws::String m_result;
92
93 ErrorObject m_error;
94 bool m_replayChildrenHasBeenSet = false;
95 bool m_resultHasBeenSet = false;
96 bool m_errorHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Lambda
101} // namespace Aws
AWS_LAMBDA_API ContextDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API ContextDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API ContextDetails()=default
ContextDetails & WithError(ErrorT &&value)
ContextDetails & WithReplayChildren(bool value)
ContextDetails & WithResult(ResultT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResult() const
const ErrorObject & GetError() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue