AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
WorkflowRunSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/nova-act/NovaAct_EXPORTS.h>
10#include <aws/nova-act/model/TraceLocation.h>
11#include <aws/nova-act/model/WorkflowRunStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NovaAct {
23namespace Model {
24
32 public:
33 AWS_NOVAACT_API WorkflowRunSummary() = default;
36 AWS_NOVAACT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetWorkflowRunArn() const { return m_workflowRunArn; }
43 inline bool WorkflowRunArnHasBeenSet() const { return m_workflowRunArnHasBeenSet; }
44 template <typename WorkflowRunArnT = Aws::String>
45 void SetWorkflowRunArn(WorkflowRunArnT&& value) {
46 m_workflowRunArnHasBeenSet = true;
47 m_workflowRunArn = std::forward<WorkflowRunArnT>(value);
48 }
49 template <typename WorkflowRunArnT = Aws::String>
50 WorkflowRunSummary& WithWorkflowRunArn(WorkflowRunArnT&& value) {
51 SetWorkflowRunArn(std::forward<WorkflowRunArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetWorkflowRunId() const { return m_workflowRunId; }
61 inline bool WorkflowRunIdHasBeenSet() const { return m_workflowRunIdHasBeenSet; }
62 template <typename WorkflowRunIdT = Aws::String>
63 void SetWorkflowRunId(WorkflowRunIdT&& value) {
64 m_workflowRunIdHasBeenSet = true;
65 m_workflowRunId = std::forward<WorkflowRunIdT>(value);
66 }
67 template <typename WorkflowRunIdT = Aws::String>
68 WorkflowRunSummary& WithWorkflowRunId(WorkflowRunIdT&& value) {
69 SetWorkflowRunId(std::forward<WorkflowRunIdT>(value));
70 return *this;
71 }
73
75
78 inline WorkflowRunStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(WorkflowRunStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
95 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
96 template <typename StartedAtT = Aws::Utils::DateTime>
97 void SetStartedAt(StartedAtT&& value) {
98 m_startedAtHasBeenSet = true;
99 m_startedAt = std::forward<StartedAtT>(value);
100 }
101 template <typename StartedAtT = Aws::Utils::DateTime>
102 WorkflowRunSummary& WithStartedAt(StartedAtT&& value) {
103 SetStartedAt(std::forward<StartedAtT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
113 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
114 template <typename EndedAtT = Aws::Utils::DateTime>
115 void SetEndedAt(EndedAtT&& value) {
116 m_endedAtHasBeenSet = true;
117 m_endedAt = std::forward<EndedAtT>(value);
118 }
119 template <typename EndedAtT = Aws::Utils::DateTime>
120 WorkflowRunSummary& WithEndedAt(EndedAtT&& value) {
121 SetEndedAt(std::forward<EndedAtT>(value));
122 return *this;
123 }
125
127
130 inline const TraceLocation& GetTraceLocation() const { return m_traceLocation; }
131 inline bool TraceLocationHasBeenSet() const { return m_traceLocationHasBeenSet; }
132 template <typename TraceLocationT = TraceLocation>
133 void SetTraceLocation(TraceLocationT&& value) {
134 m_traceLocationHasBeenSet = true;
135 m_traceLocation = std::forward<TraceLocationT>(value);
136 }
137 template <typename TraceLocationT = TraceLocation>
138 WorkflowRunSummary& WithTraceLocation(TraceLocationT&& value) {
139 SetTraceLocation(std::forward<TraceLocationT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_workflowRunArn;
145
146 Aws::String m_workflowRunId;
147
149
150 Aws::Utils::DateTime m_startedAt{};
151
152 Aws::Utils::DateTime m_endedAt{};
153
154 TraceLocation m_traceLocation;
155 bool m_workflowRunArnHasBeenSet = false;
156 bool m_workflowRunIdHasBeenSet = false;
157 bool m_statusHasBeenSet = false;
158 bool m_startedAtHasBeenSet = false;
159 bool m_endedAtHasBeenSet = false;
160 bool m_traceLocationHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace NovaAct
165} // namespace Aws
WorkflowRunSummary & WithWorkflowRunId(WorkflowRunIdT &&value)
WorkflowRunSummary & WithWorkflowRunArn(WorkflowRunArnT &&value)
WorkflowRunSummary & WithTraceLocation(TraceLocationT &&value)
const Aws::String & GetWorkflowRunArn() const
AWS_NOVAACT_API WorkflowRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NOVAACT_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowRunSummary & WithEndedAt(EndedAtT &&value)
AWS_NOVAACT_API WorkflowRunSummary()=default
void SetWorkflowRunId(WorkflowRunIdT &&value)
WorkflowRunSummary & WithStartedAt(StartedAtT &&value)
const Aws::String & GetWorkflowRunId() const
void SetWorkflowRunArn(WorkflowRunArnT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetTraceLocation(TraceLocationT &&value)
WorkflowRunSummary & WithStatus(WorkflowRunStatus value)
const Aws::Utils::DateTime & GetEndedAt() const
AWS_NOVAACT_API WorkflowRunSummary(Aws::Utils::Json::JsonView jsonValue)
const TraceLocation & GetTraceLocation() const
void SetStatus(WorkflowRunStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue