AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WorkflowExecutionTerminatedEventAttributes.h
1
6#pragma once
7#include <aws/swf/SWF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/swf/model/ChildPolicy.h>
10#include <aws/swf/model/WorkflowExecutionTerminatedCause.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SWF
24{
25namespace Model
26{
27
35 {
36 public:
41
42
44
47 inline const Aws::String& GetReason() const { return m_reason; }
48 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
49 template<typename ReasonT = Aws::String>
50 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
51 template<typename ReasonT = Aws::String>
52 WorkflowExecutionTerminatedEventAttributes& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDetails() const { return m_details; }
60 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
61 template<typename DetailsT = Aws::String>
62 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
63 template<typename DetailsT = Aws::String>
64 WorkflowExecutionTerminatedEventAttributes& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
66
68
79 inline ChildPolicy GetChildPolicy() const { return m_childPolicy; }
80 inline bool ChildPolicyHasBeenSet() const { return m_childPolicyHasBeenSet; }
81 inline void SetChildPolicy(ChildPolicy value) { m_childPolicyHasBeenSet = true; m_childPolicy = value; }
84
86
91 inline WorkflowExecutionTerminatedCause GetCause() const { return m_cause; }
92 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
93 inline void SetCause(WorkflowExecutionTerminatedCause value) { m_causeHasBeenSet = true; m_cause = value; }
96 private:
97
98 Aws::String m_reason;
99 bool m_reasonHasBeenSet = false;
100
101 Aws::String m_details;
102 bool m_detailsHasBeenSet = false;
103
104 ChildPolicy m_childPolicy{ChildPolicy::NOT_SET};
105 bool m_childPolicyHasBeenSet = false;
106
108 bool m_causeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SWF
113} // namespace Aws
WorkflowExecutionTerminatedEventAttributes & WithReason(ReasonT &&value)
AWS_SWF_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowExecutionTerminatedEventAttributes & WithCause(WorkflowExecutionTerminatedCause value)
WorkflowExecutionTerminatedEventAttributes & WithChildPolicy(ChildPolicy value)
AWS_SWF_API WorkflowExecutionTerminatedEventAttributes(Aws::Utils::Json::JsonView jsonValue)
WorkflowExecutionTerminatedEventAttributes & WithDetails(DetailsT &&value)
AWS_SWF_API WorkflowExecutionTerminatedEventAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue