AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SessionActionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/SessionActionDefinitionSummary.h>
12#include <aws/deadline/model/SessionActionStatus.h>
13#include <aws/deadline/model/TaskRunManifestPropertiesResponse.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace deadline {
25namespace Model {
26
33 public:
34 AWS_DEADLINE_API SessionActionSummary() = default;
37 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetSessionActionId() const { return m_sessionActionId; }
44 inline bool SessionActionIdHasBeenSet() const { return m_sessionActionIdHasBeenSet; }
45 template <typename SessionActionIdT = Aws::String>
46 void SetSessionActionId(SessionActionIdT&& value) {
47 m_sessionActionIdHasBeenSet = true;
48 m_sessionActionId = std::forward<SessionActionIdT>(value);
49 }
50 template <typename SessionActionIdT = Aws::String>
51 SessionActionSummary& WithSessionActionId(SessionActionIdT&& value) {
52 SetSessionActionId(std::forward<SessionActionIdT>(value));
53 return *this;
54 }
56
58
61 inline SessionActionStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(SessionActionStatus value) {
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
78 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
79 template <typename StartedAtT = Aws::Utils::DateTime>
80 void SetStartedAt(StartedAtT&& value) {
81 m_startedAtHasBeenSet = true;
82 m_startedAt = std::forward<StartedAtT>(value);
83 }
84 template <typename StartedAtT = Aws::Utils::DateTime>
85 SessionActionSummary& WithStartedAt(StartedAtT&& value) {
86 SetStartedAt(std::forward<StartedAtT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
96 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
97 template <typename EndedAtT = Aws::Utils::DateTime>
98 void SetEndedAt(EndedAtT&& value) {
99 m_endedAtHasBeenSet = true;
100 m_endedAt = std::forward<EndedAtT>(value);
101 }
102 template <typename EndedAtT = Aws::Utils::DateTime>
104 SetEndedAt(std::forward<EndedAtT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetWorkerUpdatedAt() const { return m_workerUpdatedAt; }
115 inline bool WorkerUpdatedAtHasBeenSet() const { return m_workerUpdatedAtHasBeenSet; }
116 template <typename WorkerUpdatedAtT = Aws::Utils::DateTime>
117 void SetWorkerUpdatedAt(WorkerUpdatedAtT&& value) {
118 m_workerUpdatedAtHasBeenSet = true;
119 m_workerUpdatedAt = std::forward<WorkerUpdatedAtT>(value);
120 }
121 template <typename WorkerUpdatedAtT = Aws::Utils::DateTime>
122 SessionActionSummary& WithWorkerUpdatedAt(WorkerUpdatedAtT&& value) {
123 SetWorkerUpdatedAt(std::forward<WorkerUpdatedAtT>(value));
124 return *this;
125 }
127
129
132 inline double GetProgressPercent() const { return m_progressPercent; }
133 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
134 inline void SetProgressPercent(double value) {
135 m_progressPercentHasBeenSet = true;
136 m_progressPercent = value;
137 }
139 SetProgressPercent(value);
140 return *this;
141 }
143
145
148 inline const SessionActionDefinitionSummary& GetDefinition() const { return m_definition; }
149 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
150 template <typename DefinitionT = SessionActionDefinitionSummary>
151 void SetDefinition(DefinitionT&& value) {
152 m_definitionHasBeenSet = true;
153 m_definition = std::forward<DefinitionT>(value);
154 }
155 template <typename DefinitionT = SessionActionDefinitionSummary>
156 SessionActionSummary& WithDefinition(DefinitionT&& value) {
157 SetDefinition(std::forward<DefinitionT>(value));
158 return *this;
159 }
161
163
167 inline const Aws::Vector<TaskRunManifestPropertiesResponse>& GetManifests() const { return m_manifests; }
168 inline bool ManifestsHasBeenSet() const { return m_manifestsHasBeenSet; }
169 template <typename ManifestsT = Aws::Vector<TaskRunManifestPropertiesResponse>>
170 void SetManifests(ManifestsT&& value) {
171 m_manifestsHasBeenSet = true;
172 m_manifests = std::forward<ManifestsT>(value);
173 }
174 template <typename ManifestsT = Aws::Vector<TaskRunManifestPropertiesResponse>>
175 SessionActionSummary& WithManifests(ManifestsT&& value) {
176 SetManifests(std::forward<ManifestsT>(value));
177 return *this;
178 }
179 template <typename ManifestsT = TaskRunManifestPropertiesResponse>
180 SessionActionSummary& AddManifests(ManifestsT&& value) {
181 m_manifestsHasBeenSet = true;
182 m_manifests.emplace_back(std::forward<ManifestsT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_sessionActionId;
188
190
191 Aws::Utils::DateTime m_startedAt{};
192
193 Aws::Utils::DateTime m_endedAt{};
194
195 Aws::Utils::DateTime m_workerUpdatedAt{};
196
197 double m_progressPercent{0.0};
198
199 SessionActionDefinitionSummary m_definition;
200
202 bool m_sessionActionIdHasBeenSet = false;
203 bool m_statusHasBeenSet = false;
204 bool m_startedAtHasBeenSet = false;
205 bool m_endedAtHasBeenSet = false;
206 bool m_workerUpdatedAtHasBeenSet = false;
207 bool m_progressPercentHasBeenSet = false;
208 bool m_definitionHasBeenSet = false;
209 bool m_manifestsHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace deadline
214} // namespace Aws
const Aws::Utils::DateTime & GetEndedAt() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
SessionActionSummary & WithDefinition(DefinitionT &&value)
AWS_DEADLINE_API SessionActionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetWorkerUpdatedAt() const
void SetStatus(SessionActionStatus value)
void SetWorkerUpdatedAt(WorkerUpdatedAtT &&value)
SessionActionSummary & AddManifests(ManifestsT &&value)
SessionActionSummary & WithSessionActionId(SessionActionIdT &&value)
SessionActionSummary & WithManifests(ManifestsT &&value)
void SetSessionActionId(SessionActionIdT &&value)
const SessionActionDefinitionSummary & GetDefinition() const
AWS_DEADLINE_API SessionActionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionActionSummary & WithEndedAt(EndedAtT &&value)
SessionActionSummary & WithProgressPercent(double value)
AWS_DEADLINE_API SessionActionSummary()=default
SessionActionSummary & WithStartedAt(StartedAtT &&value)
SessionActionSummary & WithStatus(SessionActionStatus value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Vector< TaskRunManifestPropertiesResponse > & GetManifests() const
SessionActionSummary & WithWorkerUpdatedAt(WorkerUpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue