AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SessionActionSummary.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/SessionActionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/deadline/model/SessionActionDefinitionSummary.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/deadline/model/TaskRunManifestPropertiesResponse.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace deadline
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_DEADLINE_API SessionActionSummary() = default;
42 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetSessionActionId() const { return m_sessionActionId; }
50 inline bool SessionActionIdHasBeenSet() const { return m_sessionActionIdHasBeenSet; }
51 template<typename SessionActionIdT = Aws::String>
52 void SetSessionActionId(SessionActionIdT&& value) { m_sessionActionIdHasBeenSet = true; m_sessionActionId = std::forward<SessionActionIdT>(value); }
53 template<typename SessionActionIdT = Aws::String>
54 SessionActionSummary& WithSessionActionId(SessionActionIdT&& value) { SetSessionActionId(std::forward<SessionActionIdT>(value)); return *this;}
56
58
61 inline SessionActionStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(SessionActionStatus value) { m_statusHasBeenSet = true; m_status = value; }
64 inline SessionActionSummary& WithStatus(SessionActionStatus value) { SetStatus(value); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
72 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
73 template<typename StartedAtT = Aws::Utils::DateTime>
74 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
75 template<typename StartedAtT = Aws::Utils::DateTime>
76 SessionActionSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
84 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
85 template<typename EndedAtT = Aws::Utils::DateTime>
86 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
87 template<typename EndedAtT = Aws::Utils::DateTime>
88 SessionActionSummary& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
90
92
96 inline const Aws::Utils::DateTime& GetWorkerUpdatedAt() const { return m_workerUpdatedAt; }
97 inline bool WorkerUpdatedAtHasBeenSet() const { return m_workerUpdatedAtHasBeenSet; }
98 template<typename WorkerUpdatedAtT = Aws::Utils::DateTime>
99 void SetWorkerUpdatedAt(WorkerUpdatedAtT&& value) { m_workerUpdatedAtHasBeenSet = true; m_workerUpdatedAt = std::forward<WorkerUpdatedAtT>(value); }
100 template<typename WorkerUpdatedAtT = Aws::Utils::DateTime>
101 SessionActionSummary& WithWorkerUpdatedAt(WorkerUpdatedAtT&& value) { SetWorkerUpdatedAt(std::forward<WorkerUpdatedAtT>(value)); return *this;}
103
105
108 inline double GetProgressPercent() const { return m_progressPercent; }
109 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
110 inline void SetProgressPercent(double value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
111 inline SessionActionSummary& WithProgressPercent(double value) { SetProgressPercent(value); return *this;}
113
115
118 inline const SessionActionDefinitionSummary& GetDefinition() const { return m_definition; }
119 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
120 template<typename DefinitionT = SessionActionDefinitionSummary>
121 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
122 template<typename DefinitionT = SessionActionDefinitionSummary>
123 SessionActionSummary& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
125
127
131 inline const Aws::Vector<TaskRunManifestPropertiesResponse>& GetManifests() const { return m_manifests; }
132 inline bool ManifestsHasBeenSet() const { return m_manifestsHasBeenSet; }
133 template<typename ManifestsT = Aws::Vector<TaskRunManifestPropertiesResponse>>
134 void SetManifests(ManifestsT&& value) { m_manifestsHasBeenSet = true; m_manifests = std::forward<ManifestsT>(value); }
135 template<typename ManifestsT = Aws::Vector<TaskRunManifestPropertiesResponse>>
136 SessionActionSummary& WithManifests(ManifestsT&& value) { SetManifests(std::forward<ManifestsT>(value)); return *this;}
137 template<typename ManifestsT = TaskRunManifestPropertiesResponse>
138 SessionActionSummary& AddManifests(ManifestsT&& value) { m_manifestsHasBeenSet = true; m_manifests.emplace_back(std::forward<ManifestsT>(value)); return *this; }
140 private:
141
142 Aws::String m_sessionActionId;
143 bool m_sessionActionIdHasBeenSet = false;
144
146 bool m_statusHasBeenSet = false;
147
148 Aws::Utils::DateTime m_startedAt{};
149 bool m_startedAtHasBeenSet = false;
150
151 Aws::Utils::DateTime m_endedAt{};
152 bool m_endedAtHasBeenSet = false;
153
154 Aws::Utils::DateTime m_workerUpdatedAt{};
155 bool m_workerUpdatedAtHasBeenSet = false;
156
157 double m_progressPercent{0.0};
158 bool m_progressPercentHasBeenSet = false;
159
160 SessionActionDefinitionSummary m_definition;
161 bool m_definitionHasBeenSet = false;
162
164 bool m_manifestsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace deadline
169} // 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