AWS SDK for C++  1.9.104
AWS SDK for C++
ExecutionAbortedEventDetails.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SFN
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetError() const{ return m_error; }
45 
49  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
50 
54  inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
55 
59  inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
60 
64  inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
65 
69  inline ExecutionAbortedEventDetails& WithError(const Aws::String& value) { SetError(value); return *this;}
70 
74  inline ExecutionAbortedEventDetails& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
75 
79  inline ExecutionAbortedEventDetails& WithError(const char* value) { SetError(value); return *this;}
80 
81 
85  inline const Aws::String& GetCause() const{ return m_cause; }
86 
90  inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
91 
95  inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
96 
100  inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
101 
105  inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
106 
110  inline ExecutionAbortedEventDetails& WithCause(const Aws::String& value) { SetCause(value); return *this;}
111 
115  inline ExecutionAbortedEventDetails& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
116 
120  inline ExecutionAbortedEventDetails& WithCause(const char* value) { SetCause(value); return *this;}
121 
122  private:
123 
124  Aws::String m_error;
125  bool m_errorHasBeenSet;
126 
127  Aws::String m_cause;
128  bool m_causeHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace SFN
133 } // namespace Aws
Aws::SFN::Model::ExecutionAbortedEventDetails
Definition: ExecutionAbortedEventDetails.h:33
Aws::SFN::Model::ExecutionAbortedEventDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SFN::Model::ExecutionAbortedEventDetails::WithError
ExecutionAbortedEventDetails & WithError(Aws::String &&value)
Definition: ExecutionAbortedEventDetails.h:74
Aws::SFN::Model::ExecutionAbortedEventDetails::WithCause
ExecutionAbortedEventDetails & WithCause(const char *value)
Definition: ExecutionAbortedEventDetails.h:120
Aws::SFN::Model::ExecutionAbortedEventDetails::ExecutionAbortedEventDetails
ExecutionAbortedEventDetails()
Aws::SFN::Model::ExecutionAbortedEventDetails::SetError
void SetError(const Aws::String &value)
Definition: ExecutionAbortedEventDetails.h:54
Aws::SFN::Model::ExecutionAbortedEventDetails::WithCause
ExecutionAbortedEventDetails & WithCause(Aws::String &&value)
Definition: ExecutionAbortedEventDetails.h:115
Aws::SFN::Model::ExecutionAbortedEventDetails::operator=
ExecutionAbortedEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SFN::Model::ExecutionAbortedEventDetails::WithError
ExecutionAbortedEventDetails & WithError(const Aws::String &value)
Definition: ExecutionAbortedEventDetails.h:69
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
SFN_EXPORTS.h
Aws::SFN::Model::ExecutionAbortedEventDetails::CauseHasBeenSet
bool CauseHasBeenSet() const
Definition: ExecutionAbortedEventDetails.h:90
Aws::SFN::Model::ExecutionAbortedEventDetails::SetError
void SetError(Aws::String &&value)
Definition: ExecutionAbortedEventDetails.h:59
Aws::SFN::Model::ExecutionAbortedEventDetails::SetCause
void SetCause(const Aws::String &value)
Definition: ExecutionAbortedEventDetails.h:95
Aws::SFN::Model::ExecutionAbortedEventDetails::GetCause
const Aws::String & GetCause() const
Definition: ExecutionAbortedEventDetails.h:85
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SFN::Model::ExecutionAbortedEventDetails::WithCause
ExecutionAbortedEventDetails & WithCause(const Aws::String &value)
Definition: ExecutionAbortedEventDetails.h:110
Aws::SFN::Model::ExecutionAbortedEventDetails::GetError
const Aws::String & GetError() const
Definition: ExecutionAbortedEventDetails.h:44
Aws::SFN::Model::ExecutionAbortedEventDetails::WithError
ExecutionAbortedEventDetails & WithError(const char *value)
Definition: ExecutionAbortedEventDetails.h:79
Aws::SFN::Model::ExecutionAbortedEventDetails::ExecutionAbortedEventDetails
ExecutionAbortedEventDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::SFN::Model::ExecutionAbortedEventDetails::SetError
void SetError(const char *value)
Definition: ExecutionAbortedEventDetails.h:64
Aws::SFN::Model::ExecutionAbortedEventDetails::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: ExecutionAbortedEventDetails.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::ExecutionAbortedEventDetails::SetCause
void SetCause(Aws::String &&value)
Definition: ExecutionAbortedEventDetails.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::ExecutionAbortedEventDetails::SetCause
void SetCause(const char *value)
Definition: ExecutionAbortedEventDetails.h:105