AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
34 AWS_SFN_API TaskFailedEventDetails() = default;
38
39
41
44 inline const Aws::String& GetResourceType() const { return m_resourceType; }
45 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
46 template<typename ResourceTypeT = Aws::String>
47 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
48 template<typename ResourceTypeT = Aws::String>
49 TaskFailedEventDetails& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
51
53
56 inline const Aws::String& GetResource() const { return m_resource; }
57 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
58 template<typename ResourceT = Aws::String>
59 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
60 template<typename ResourceT = Aws::String>
61 TaskFailedEventDetails& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
63
65
68 inline const Aws::String& GetError() const { return m_error; }
69 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
70 template<typename ErrorT = Aws::String>
71 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
72 template<typename ErrorT = Aws::String>
73 TaskFailedEventDetails& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
75
77
80 inline const Aws::String& GetCause() const { return m_cause; }
81 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
82 template<typename CauseT = Aws::String>
83 void SetCause(CauseT&& value) { m_causeHasBeenSet = true; m_cause = std::forward<CauseT>(value); }
84 template<typename CauseT = Aws::String>
85 TaskFailedEventDetails& WithCause(CauseT&& value) { SetCause(std::forward<CauseT>(value)); return *this;}
87 private:
88
89 Aws::String m_resourceType;
90 bool m_resourceTypeHasBeenSet = false;
91
92 Aws::String m_resource;
93 bool m_resourceHasBeenSet = false;
94
95 Aws::String m_error;
96 bool m_errorHasBeenSet = false;
97
98 Aws::String m_cause;
99 bool m_causeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace SFN
104} // namespace Aws
AWS_SFN_API TaskFailedEventDetails(Aws::Utils::Json::JsonView jsonValue)
TaskFailedEventDetails & WithError(ErrorT &&value)
AWS_SFN_API TaskFailedEventDetails()=default
TaskFailedEventDetails & WithCause(CauseT &&value)
TaskFailedEventDetails & WithResource(ResourceT &&value)
AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SFN_API TaskFailedEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskFailedEventDetails & WithResourceType(ResourceTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue