AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MockErrorOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/states/SFN_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SFN {
20namespace Model {
21
28 public:
29 AWS_SFN_API MockErrorOutput() = default;
33
35
40 inline const Aws::String& GetError() const { return m_error; }
41 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
42 template <typename ErrorT = Aws::String>
43 void SetError(ErrorT&& value) {
44 m_errorHasBeenSet = true;
45 m_error = std::forward<ErrorT>(value);
46 }
47 template <typename ErrorT = Aws::String>
48 MockErrorOutput& WithError(ErrorT&& value) {
49 SetError(std::forward<ErrorT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetCause() const { return m_cause; }
60 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
61 template <typename CauseT = Aws::String>
62 void SetCause(CauseT&& value) {
63 m_causeHasBeenSet = true;
64 m_cause = std::forward<CauseT>(value);
65 }
66 template <typename CauseT = Aws::String>
67 MockErrorOutput& WithCause(CauseT&& value) {
68 SetCause(std::forward<CauseT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_error;
74
75 Aws::String m_cause;
76 bool m_errorHasBeenSet = false;
77 bool m_causeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace SFN
82} // namespace Aws
const Aws::String & GetError() const
MockErrorOutput & WithError(ErrorT &&value)
const Aws::String & GetCause() const
MockErrorOutput & WithCause(CauseT &&value)
AWS_SFN_API MockErrorOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SFN_API MockErrorOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SFN_API MockErrorOutput()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue