AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ActSummary.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/ActStatus.h>
11#include <aws/nova-act/model/TraceLocation.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 ActSummary() = default;
34 AWS_NOVAACT_API ActSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NOVAACT_API ActSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NOVAACT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetWorkflowRunId() const { return m_workflowRunId; }
43 inline bool WorkflowRunIdHasBeenSet() const { return m_workflowRunIdHasBeenSet; }
44 template <typename WorkflowRunIdT = Aws::String>
45 void SetWorkflowRunId(WorkflowRunIdT&& value) {
46 m_workflowRunIdHasBeenSet = true;
47 m_workflowRunId = std::forward<WorkflowRunIdT>(value);
48 }
49 template <typename WorkflowRunIdT = Aws::String>
50 ActSummary& WithWorkflowRunId(WorkflowRunIdT&& value) {
51 SetWorkflowRunId(std::forward<WorkflowRunIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSessionId() const { return m_sessionId; }
61 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
62 template <typename SessionIdT = Aws::String>
63 void SetSessionId(SessionIdT&& value) {
64 m_sessionIdHasBeenSet = true;
65 m_sessionId = std::forward<SessionIdT>(value);
66 }
67 template <typename SessionIdT = Aws::String>
68 ActSummary& WithSessionId(SessionIdT&& value) {
69 SetSessionId(std::forward<SessionIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetActId() const { return m_actId; }
79 inline bool ActIdHasBeenSet() const { return m_actIdHasBeenSet; }
80 template <typename ActIdT = Aws::String>
81 void SetActId(ActIdT&& value) {
82 m_actIdHasBeenSet = true;
83 m_actId = std::forward<ActIdT>(value);
84 }
85 template <typename ActIdT = Aws::String>
86 ActSummary& WithActId(ActIdT&& value) {
87 SetActId(std::forward<ActIdT>(value));
88 return *this;
89 }
91
93
96 inline ActStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(ActStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
113 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
114 template <typename StartedAtT = Aws::Utils::DateTime>
115 void SetStartedAt(StartedAtT&& value) {
116 m_startedAtHasBeenSet = true;
117 m_startedAt = std::forward<StartedAtT>(value);
118 }
119 template <typename StartedAtT = Aws::Utils::DateTime>
120 ActSummary& WithStartedAt(StartedAtT&& value) {
121 SetStartedAt(std::forward<StartedAtT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
131 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
132 template <typename EndedAtT = Aws::Utils::DateTime>
133 void SetEndedAt(EndedAtT&& value) {
134 m_endedAtHasBeenSet = true;
135 m_endedAt = std::forward<EndedAtT>(value);
136 }
137 template <typename EndedAtT = Aws::Utils::DateTime>
138 ActSummary& WithEndedAt(EndedAtT&& value) {
139 SetEndedAt(std::forward<EndedAtT>(value));
140 return *this;
141 }
143
145
148 inline const TraceLocation& GetTraceLocation() const { return m_traceLocation; }
149 inline bool TraceLocationHasBeenSet() const { return m_traceLocationHasBeenSet; }
150 template <typename TraceLocationT = TraceLocation>
151 void SetTraceLocation(TraceLocationT&& value) {
152 m_traceLocationHasBeenSet = true;
153 m_traceLocation = std::forward<TraceLocationT>(value);
154 }
155 template <typename TraceLocationT = TraceLocation>
156 ActSummary& WithTraceLocation(TraceLocationT&& value) {
157 SetTraceLocation(std::forward<TraceLocationT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_workflowRunId;
163
164 Aws::String m_sessionId;
165
166 Aws::String m_actId;
167
169
170 Aws::Utils::DateTime m_startedAt{};
171
172 Aws::Utils::DateTime m_endedAt{};
173
174 TraceLocation m_traceLocation;
175 bool m_workflowRunIdHasBeenSet = false;
176 bool m_sessionIdHasBeenSet = false;
177 bool m_actIdHasBeenSet = false;
178 bool m_statusHasBeenSet = false;
179 bool m_startedAtHasBeenSet = false;
180 bool m_endedAtHasBeenSet = false;
181 bool m_traceLocationHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace NovaAct
186} // namespace Aws
ActSummary & WithTraceLocation(TraceLocationT &&value)
Definition ActSummary.h:156
AWS_NOVAACT_API ActSummary()=default
void SetActId(ActIdT &&value)
Definition ActSummary.h:81
void SetWorkflowRunId(WorkflowRunIdT &&value)
Definition ActSummary.h:45
ActSummary & WithActId(ActIdT &&value)
Definition ActSummary.h:86
void SetStatus(ActStatus value)
Definition ActSummary.h:98
const TraceLocation & GetTraceLocation() const
Definition ActSummary.h:148
const Aws::String & GetActId() const
Definition ActSummary.h:78
const Aws::Utils::DateTime & GetStartedAt() const
Definition ActSummary.h:112
void SetSessionId(SessionIdT &&value)
Definition ActSummary.h:63
ActSummary & WithStatus(ActStatus value)
Definition ActSummary.h:102
ActStatus GetStatus() const
Definition ActSummary.h:96
const Aws::String & GetWorkflowRunId() const
Definition ActSummary.h:42
ActSummary & WithEndedAt(EndedAtT &&value)
Definition ActSummary.h:138
void SetStartedAt(StartedAtT &&value)
Definition ActSummary.h:115
void SetEndedAt(EndedAtT &&value)
Definition ActSummary.h:133
ActSummary & WithSessionId(SessionIdT &&value)
Definition ActSummary.h:68
const Aws::Utils::DateTime & GetEndedAt() const
Definition ActSummary.h:130
AWS_NOVAACT_API Aws::Utils::Json::JsonValue Jsonize() const
ActSummary & WithStartedAt(StartedAtT &&value)
Definition ActSummary.h:120
void SetTraceLocation(TraceLocationT &&value)
Definition ActSummary.h:151
ActSummary & WithWorkflowRunId(WorkflowRunIdT &&value)
Definition ActSummary.h:50
AWS_NOVAACT_API ActSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_NOVAACT_API ActSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSessionId() const
Definition ActSummary.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue