AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CallbackFailedDetails.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/model/EventError.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lambda {
20namespace Model {
21
29 public:
30 AWS_LAMBDA_API CallbackFailedDetails() = default;
33 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const EventError& GetError() const { return m_error; }
40 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
41 template <typename ErrorT = EventError>
42 void SetError(ErrorT&& value) {
43 m_errorHasBeenSet = true;
44 m_error = std::forward<ErrorT>(value);
45 }
46 template <typename ErrorT = EventError>
48 SetError(std::forward<ErrorT>(value));
49 return *this;
50 }
52 private:
53 EventError m_error;
54 bool m_errorHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace Lambda
59} // namespace Aws
CallbackFailedDetails & WithError(ErrorT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API CallbackFailedDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API CallbackFailedDetails()=default
AWS_LAMBDA_API CallbackFailedDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue