AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
WorkerSessionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/SessionLifecycleStatus.h>
11#include <aws/deadline/model/SessionLifecycleTargetStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace deadline {
23namespace Model {
24
31 public:
32 AWS_DEADLINE_API WorkerSessionSummary() = default;
35 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSessionId() const { return m_sessionId; }
42 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
43 template <typename SessionIdT = Aws::String>
44 void SetSessionId(SessionIdT&& value) {
45 m_sessionIdHasBeenSet = true;
46 m_sessionId = std::forward<SessionIdT>(value);
47 }
48 template <typename SessionIdT = Aws::String>
49 WorkerSessionSummary& WithSessionId(SessionIdT&& value) {
50 SetSessionId(std::forward<SessionIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetQueueId() const { return m_queueId; }
60 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
61 template <typename QueueIdT = Aws::String>
62 void SetQueueId(QueueIdT&& value) {
63 m_queueIdHasBeenSet = true;
64 m_queueId = std::forward<QueueIdT>(value);
65 }
66 template <typename QueueIdT = Aws::String>
67 WorkerSessionSummary& WithQueueId(QueueIdT&& value) {
68 SetQueueId(std::forward<QueueIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetJobId() const { return m_jobId; }
78 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
79 template <typename JobIdT = Aws::String>
80 void SetJobId(JobIdT&& value) {
81 m_jobIdHasBeenSet = true;
82 m_jobId = std::forward<JobIdT>(value);
83 }
84 template <typename JobIdT = Aws::String>
86 SetJobId(std::forward<JobIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
96 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
97 template <typename StartedAtT = Aws::Utils::DateTime>
98 void SetStartedAt(StartedAtT&& value) {
99 m_startedAtHasBeenSet = true;
100 m_startedAt = std::forward<StartedAtT>(value);
101 }
102 template <typename StartedAtT = Aws::Utils::DateTime>
103 WorkerSessionSummary& WithStartedAt(StartedAtT&& value) {
104 SetStartedAt(std::forward<StartedAtT>(value));
105 return *this;
106 }
108
110
113 inline SessionLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
114 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
116 m_lifecycleStatusHasBeenSet = true;
117 m_lifecycleStatus = value;
118 }
120 SetLifecycleStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
130 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
131 template <typename EndedAtT = Aws::Utils::DateTime>
132 void SetEndedAt(EndedAtT&& value) {
133 m_endedAtHasBeenSet = true;
134 m_endedAt = std::forward<EndedAtT>(value);
135 }
136 template <typename EndedAtT = Aws::Utils::DateTime>
138 SetEndedAt(std::forward<EndedAtT>(value));
139 return *this;
140 }
142
144
147 inline SessionLifecycleTargetStatus GetTargetLifecycleStatus() const { return m_targetLifecycleStatus; }
148 inline bool TargetLifecycleStatusHasBeenSet() const { return m_targetLifecycleStatusHasBeenSet; }
150 m_targetLifecycleStatusHasBeenSet = true;
151 m_targetLifecycleStatus = value;
152 }
155 return *this;
156 }
158 private:
159 Aws::String m_sessionId;
160
161 Aws::String m_queueId;
162
163 Aws::String m_jobId;
164
165 Aws::Utils::DateTime m_startedAt{};
166
168
169 Aws::Utils::DateTime m_endedAt{};
170
172 bool m_sessionIdHasBeenSet = false;
173 bool m_queueIdHasBeenSet = false;
174 bool m_jobIdHasBeenSet = false;
175 bool m_startedAtHasBeenSet = false;
176 bool m_lifecycleStatusHasBeenSet = false;
177 bool m_endedAtHasBeenSet = false;
178 bool m_targetLifecycleStatusHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace deadline
183} // namespace Aws
void SetLifecycleStatus(SessionLifecycleStatus value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus value)
const Aws::Utils::DateTime & GetEndedAt() const
WorkerSessionSummary & WithStartedAt(StartedAtT &&value)
SessionLifecycleStatus GetLifecycleStatus() const
WorkerSessionSummary & WithJobId(JobIdT &&value)
WorkerSessionSummary & WithTargetLifecycleStatus(SessionLifecycleTargetStatus value)
AWS_DEADLINE_API WorkerSessionSummary(Aws::Utils::Json::JsonView jsonValue)
WorkerSessionSummary & WithQueueId(QueueIdT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
WorkerSessionSummary & WithEndedAt(EndedAtT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
SessionLifecycleTargetStatus GetTargetLifecycleStatus() const
WorkerSessionSummary & WithSessionId(SessionIdT &&value)
AWS_DEADLINE_API WorkerSessionSummary()=default
AWS_DEADLINE_API WorkerSessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkerSessionSummary & WithLifecycleStatus(SessionLifecycleStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue