AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ExecutionFailedDetails.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
30 public:
31 AWS_LAMBDA_API ExecutionFailedDetails() = default;
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const EventError& GetError() const { return m_error; }
41 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
42 template <typename ErrorT = EventError>
43 void SetError(ErrorT&& value) {
44 m_errorHasBeenSet = true;
45 m_error = std::forward<ErrorT>(value);
46 }
47 template <typename ErrorT = EventError>
49 SetError(std::forward<ErrorT>(value));
50 return *this;
51 }
53 private:
54 EventError m_error;
55 bool m_errorHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace Lambda
60} // namespace Aws
ExecutionFailedDetails & WithError(ErrorT &&value)
AWS_LAMBDA_API ExecutionFailedDetails()=default
AWS_LAMBDA_API ExecutionFailedDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API ExecutionFailedDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue