AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSessionResult.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/deadline/model/LogConfiguration.h>
11#include <aws/deadline/model/SessionLifecycleStatus.h>
12#include <aws/deadline/model/SessionLifecycleTargetStatus.h>
13#include <aws/deadline/model/HostPropertiesResponse.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace deadline
29{
30namespace Model
31{
33 {
34 public:
35 AWS_DEADLINE_API GetSessionResult() = default;
38
39
41
44 inline const Aws::String& GetSessionId() const { return m_sessionId; }
45 template<typename SessionIdT = Aws::String>
46 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
47 template<typename SessionIdT = Aws::String>
48 GetSessionResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetFleetId() const { return m_fleetId; }
56 template<typename FleetIdT = Aws::String>
57 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
58 template<typename FleetIdT = Aws::String>
59 GetSessionResult& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetWorkerId() const { return m_workerId; }
67 template<typename WorkerIdT = Aws::String>
68 void SetWorkerId(WorkerIdT&& value) { m_workerIdHasBeenSet = true; m_workerId = std::forward<WorkerIdT>(value); }
69 template<typename WorkerIdT = Aws::String>
70 GetSessionResult& WithWorkerId(WorkerIdT&& value) { SetWorkerId(std::forward<WorkerIdT>(value)); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
78 template<typename StartedAtT = Aws::Utils::DateTime>
79 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
80 template<typename StartedAtT = Aws::Utils::DateTime>
81 GetSessionResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
83
85
88 inline const LogConfiguration& GetLog() const { return m_log; }
89 template<typename LogT = LogConfiguration>
90 void SetLog(LogT&& value) { m_logHasBeenSet = true; m_log = std::forward<LogT>(value); }
91 template<typename LogT = LogConfiguration>
92 GetSessionResult& WithLog(LogT&& value) { SetLog(std::forward<LogT>(value)); return *this;}
94
96
99 inline SessionLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
100 inline void SetLifecycleStatus(SessionLifecycleStatus value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
103
105
108 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
109 template<typename EndedAtT = Aws::Utils::DateTime>
110 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
111 template<typename EndedAtT = Aws::Utils::DateTime>
112 GetSessionResult& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
120 template<typename UpdatedAtT = Aws::Utils::DateTime>
121 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
122 template<typename UpdatedAtT = Aws::Utils::DateTime>
123 GetSessionResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
125
127
130 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
131 template<typename UpdatedByT = Aws::String>
132 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
133 template<typename UpdatedByT = Aws::String>
134 GetSessionResult& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
136
138
141 inline SessionLifecycleTargetStatus GetTargetLifecycleStatus() const { return m_targetLifecycleStatus; }
142 inline void SetTargetLifecycleStatus(SessionLifecycleTargetStatus value) { m_targetLifecycleStatusHasBeenSet = true; m_targetLifecycleStatus = value; }
145
147
150 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
151 template<typename HostPropertiesT = HostPropertiesResponse>
152 void SetHostProperties(HostPropertiesT&& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = std::forward<HostPropertiesT>(value); }
153 template<typename HostPropertiesT = HostPropertiesResponse>
154 GetSessionResult& WithHostProperties(HostPropertiesT&& value) { SetHostProperties(std::forward<HostPropertiesT>(value)); return *this;}
156
158
161 inline const LogConfiguration& GetWorkerLog() const { return m_workerLog; }
162 template<typename WorkerLogT = LogConfiguration>
163 void SetWorkerLog(WorkerLogT&& value) { m_workerLogHasBeenSet = true; m_workerLog = std::forward<WorkerLogT>(value); }
164 template<typename WorkerLogT = LogConfiguration>
165 GetSessionResult& WithWorkerLog(WorkerLogT&& value) { SetWorkerLog(std::forward<WorkerLogT>(value)); return *this;}
167
169
170 inline const Aws::String& GetRequestId() const { return m_requestId; }
171 template<typename RequestIdT = Aws::String>
172 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
173 template<typename RequestIdT = Aws::String>
174 GetSessionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
176 private:
177
178 Aws::String m_sessionId;
179 bool m_sessionIdHasBeenSet = false;
180
181 Aws::String m_fleetId;
182 bool m_fleetIdHasBeenSet = false;
183
184 Aws::String m_workerId;
185 bool m_workerIdHasBeenSet = false;
186
187 Aws::Utils::DateTime m_startedAt{};
188 bool m_startedAtHasBeenSet = false;
189
190 LogConfiguration m_log;
191 bool m_logHasBeenSet = false;
192
194 bool m_lifecycleStatusHasBeenSet = false;
195
196 Aws::Utils::DateTime m_endedAt{};
197 bool m_endedAtHasBeenSet = false;
198
199 Aws::Utils::DateTime m_updatedAt{};
200 bool m_updatedAtHasBeenSet = false;
201
202 Aws::String m_updatedBy;
203 bool m_updatedByHasBeenSet = false;
204
206 bool m_targetLifecycleStatusHasBeenSet = false;
207
208 HostPropertiesResponse m_hostProperties;
209 bool m_hostPropertiesHasBeenSet = false;
210
211 LogConfiguration m_workerLog;
212 bool m_workerLogHasBeenSet = false;
213
214 Aws::String m_requestId;
215 bool m_requestIdHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace deadline
220} // namespace Aws
GetSessionResult & WithTargetLifecycleStatus(SessionLifecycleTargetStatus value)
const Aws::String & GetFleetId() const
GetSessionResult & WithWorkerLog(WorkerLogT &&value)
const Aws::String & GetWorkerId() const
void SetHostProperties(HostPropertiesT &&value)
const LogConfiguration & GetWorkerLog() const
const Aws::String & GetSessionId() const
GetSessionResult & WithUpdatedBy(UpdatedByT &&value)
GetSessionResult & WithEndedAt(EndedAtT &&value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus value)
GetSessionResult & WithHostProperties(HostPropertiesT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::String & GetUpdatedBy() const
const HostPropertiesResponse & GetHostProperties() const
const Aws::String & GetRequestId() const
AWS_DEADLINE_API GetSessionResult()=default
GetSessionResult & WithLifecycleStatus(SessionLifecycleStatus value)
SessionLifecycleTargetStatus GetTargetLifecycleStatus() const
const LogConfiguration & GetLog() const
GetSessionResult & WithUpdatedAt(UpdatedAtT &&value)
GetSessionResult & WithSessionId(SessionIdT &&value)
GetSessionResult & WithStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
GetSessionResult & WithRequestId(RequestIdT &&value)
GetSessionResult & WithLog(LogT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetSessionResult & WithFleetId(FleetIdT &&value)
SessionLifecycleStatus GetLifecycleStatus() const
AWS_DEADLINE_API GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLifecycleStatus(SessionLifecycleStatus value)
AWS_DEADLINE_API GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionResult & WithWorkerId(WorkerIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue