AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskFailedEventDetails.h
1
6#pragma once
7#include <aws/states/SFN_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SFN
22{
23namespace Model
24{
25
32 {
33 public:
38
39
41
44 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
45 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
46 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
47 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
48 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
49 inline TaskFailedEventDetails& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
50 inline TaskFailedEventDetails& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
51 inline TaskFailedEventDetails& WithResourceType(const char* value) { SetResourceType(value); return *this;}
53
55
58 inline const Aws::String& GetResource() const{ return m_resource; }
59 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
60 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
61 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
62 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
63 inline TaskFailedEventDetails& WithResource(const Aws::String& value) { SetResource(value); return *this;}
64 inline TaskFailedEventDetails& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
65 inline TaskFailedEventDetails& WithResource(const char* value) { SetResource(value); return *this;}
67
69
72 inline const Aws::String& GetError() const{ return m_error; }
73 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
74 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
75 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
76 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
77 inline TaskFailedEventDetails& WithError(const Aws::String& value) { SetError(value); return *this;}
78 inline TaskFailedEventDetails& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
79 inline TaskFailedEventDetails& WithError(const char* value) { SetError(value); return *this;}
81
83
86 inline const Aws::String& GetCause() const{ return m_cause; }
87 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
88 inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
89 inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
90 inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
91 inline TaskFailedEventDetails& WithCause(const Aws::String& value) { SetCause(value); return *this;}
92 inline TaskFailedEventDetails& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
93 inline TaskFailedEventDetails& WithCause(const char* value) { SetCause(value); return *this;}
95 private:
96
97 Aws::String m_resourceType;
98 bool m_resourceTypeHasBeenSet = false;
99
100 Aws::String m_resource;
101 bool m_resourceHasBeenSet = false;
102
103 Aws::String m_error;
104 bool m_errorHasBeenSet = false;
105
106 Aws::String m_cause;
107 bool m_causeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SFN
112} // namespace Aws
AWS_SFN_API TaskFailedEventDetails(Aws::Utils::Json::JsonView jsonValue)
TaskFailedEventDetails & WithResource(const Aws::String &value)
TaskFailedEventDetails & WithResourceType(const char *value)
TaskFailedEventDetails & WithCause(const char *value)
TaskFailedEventDetails & WithError(const char *value)
TaskFailedEventDetails & WithResourceType(const Aws::String &value)
TaskFailedEventDetails & WithError(Aws::String &&value)
TaskFailedEventDetails & WithResourceType(Aws::String &&value)
TaskFailedEventDetails & WithError(const Aws::String &value)
TaskFailedEventDetails & WithCause(Aws::String &&value)
AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SFN_API TaskFailedEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskFailedEventDetails & WithCause(const Aws::String &value)
TaskFailedEventDetails & WithResource(Aws::String &&value)
TaskFailedEventDetails & WithResource(const char *value)
void SetResourceType(const Aws::String &value)
void SetResource(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue