AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38
39
41
44 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
45 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
46 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
47 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
48 inline GetSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
49 inline GetSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
50 inline GetSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
52
54
57 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
58 inline void SetFleetId(const Aws::String& value) { m_fleetId = value; }
59 inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); }
60 inline void SetFleetId(const char* value) { m_fleetId.assign(value); }
61 inline GetSessionResult& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
62 inline GetSessionResult& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
63 inline GetSessionResult& WithFleetId(const char* value) { SetFleetId(value); return *this;}
65
67
70 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
71 inline void SetWorkerId(const Aws::String& value) { m_workerId = value; }
72 inline void SetWorkerId(Aws::String&& value) { m_workerId = std::move(value); }
73 inline void SetWorkerId(const char* value) { m_workerId.assign(value); }
74 inline GetSessionResult& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
75 inline GetSessionResult& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
76 inline GetSessionResult& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
84 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
85 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); }
86 inline GetSessionResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
87 inline GetSessionResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
89
91
94 inline const LogConfiguration& GetLog() const{ return m_log; }
95 inline void SetLog(const LogConfiguration& value) { m_log = value; }
96 inline void SetLog(LogConfiguration&& value) { m_log = std::move(value); }
97 inline GetSessionResult& WithLog(const LogConfiguration& value) { SetLog(value); return *this;}
98 inline GetSessionResult& WithLog(LogConfiguration&& value) { SetLog(std::move(value)); return *this;}
100
102
105 inline const SessionLifecycleStatus& GetLifecycleStatus() const{ return m_lifecycleStatus; }
106 inline void SetLifecycleStatus(const SessionLifecycleStatus& value) { m_lifecycleStatus = value; }
107 inline void SetLifecycleStatus(SessionLifecycleStatus&& value) { m_lifecycleStatus = std::move(value); }
109 inline GetSessionResult& WithLifecycleStatus(SessionLifecycleStatus&& value) { SetLifecycleStatus(std::move(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
117 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAt = value; }
118 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAt = std::move(value); }
119 inline GetSessionResult& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
120 inline GetSessionResult& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
128 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
129 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
130 inline GetSessionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
131 inline GetSessionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
133
135
138 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
139 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
140 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
141 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
142 inline GetSessionResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
143 inline GetSessionResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
144 inline GetSessionResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
146
148
151 inline const SessionLifecycleTargetStatus& GetTargetLifecycleStatus() const{ return m_targetLifecycleStatus; }
152 inline void SetTargetLifecycleStatus(const SessionLifecycleTargetStatus& value) { m_targetLifecycleStatus = value; }
153 inline void SetTargetLifecycleStatus(SessionLifecycleTargetStatus&& value) { m_targetLifecycleStatus = std::move(value); }
157
159
162 inline const HostPropertiesResponse& GetHostProperties() const{ return m_hostProperties; }
163 inline void SetHostProperties(const HostPropertiesResponse& value) { m_hostProperties = value; }
164 inline void SetHostProperties(HostPropertiesResponse&& value) { m_hostProperties = std::move(value); }
166 inline GetSessionResult& WithHostProperties(HostPropertiesResponse&& value) { SetHostProperties(std::move(value)); return *this;}
168
170
173 inline const LogConfiguration& GetWorkerLog() const{ return m_workerLog; }
174 inline void SetWorkerLog(const LogConfiguration& value) { m_workerLog = value; }
175 inline void SetWorkerLog(LogConfiguration&& value) { m_workerLog = std::move(value); }
176 inline GetSessionResult& WithWorkerLog(const LogConfiguration& value) { SetWorkerLog(value); return *this;}
177 inline GetSessionResult& WithWorkerLog(LogConfiguration&& value) { SetWorkerLog(std::move(value)); return *this;}
179
181
182 inline const Aws::String& GetRequestId() const{ return m_requestId; }
183 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
184 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
185 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
186 inline GetSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
187 inline GetSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
188 inline GetSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
190 private:
191
192 Aws::String m_sessionId;
193
194 Aws::String m_fleetId;
195
196 Aws::String m_workerId;
197
198 Aws::Utils::DateTime m_startedAt;
199
200 LogConfiguration m_log;
201
202 SessionLifecycleStatus m_lifecycleStatus;
203
204 Aws::Utils::DateTime m_endedAt;
205
206 Aws::Utils::DateTime m_updatedAt;
207
208 Aws::String m_updatedBy;
209
210 SessionLifecycleTargetStatus m_targetLifecycleStatus;
211
212 HostPropertiesResponse m_hostProperties;
213
214 LogConfiguration m_workerLog;
215
216 Aws::String m_requestId;
217 };
218
219} // namespace Model
220} // namespace deadline
221} // namespace Aws
GetSessionResult & WithSessionId(const Aws::String &value)
GetSessionResult & WithUpdatedBy(const char *value)
GetSessionResult & WithHostProperties(HostPropertiesResponse &&value)
GetSessionResult & WithFleetId(const char *value)
const Aws::String & GetFleetId() const
GetSessionResult & WithStartedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetWorkerId() const
GetSessionResult & WithStartedAt(const Aws::Utils::DateTime &value)
void SetStartedAt(Aws::Utils::DateTime &&value)
GetSessionResult & WithRequestId(const Aws::String &value)
void SetLog(LogConfiguration &&value)
GetSessionResult & WithWorkerId(Aws::String &&value)
void SetHostProperties(const HostPropertiesResponse &value)
void SetFleetId(const Aws::String &value)
GetSessionResult & WithWorkerId(const char *value)
GetSessionResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
GetSessionResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetLifecycleStatus(SessionLifecycleStatus &&value)
const LogConfiguration & GetWorkerLog() const
GetSessionResult & WithFleetId(Aws::String &&value)
GetSessionResult & WithHostProperties(const HostPropertiesResponse &value)
GetSessionResult & WithEndedAt(const Aws::Utils::DateTime &value)
GetSessionResult & WithTargetLifecycleStatus(const SessionLifecycleTargetStatus &value)
const Aws::String & GetSessionId() const
void SetWorkerId(Aws::String &&value)
GetSessionResult & WithRequestId(const char *value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus &&value)
const Aws::Utils::DateTime & GetEndedAt() const
GetSessionResult & WithTargetLifecycleStatus(SessionLifecycleTargetStatus &&value)
GetSessionResult & WithLog(LogConfiguration &&value)
const Aws::String & GetUpdatedBy() const
GetSessionResult & WithFleetId(const Aws::String &value)
void SetLifecycleStatus(const SessionLifecycleStatus &value)
GetSessionResult & WithUpdatedBy(const Aws::String &value)
GetSessionResult & WithLog(const LogConfiguration &value)
void SetUpdatedBy(const Aws::String &value)
void SetEndedAt(const Aws::Utils::DateTime &value)
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetSessionId(Aws::String &&value)
GetSessionResult & WithWorkerLog(const LogConfiguration &value)
const HostPropertiesResponse & GetHostProperties() const
const Aws::String & GetRequestId() const
void SetSessionId(const Aws::String &value)
GetSessionResult & WithSessionId(Aws::String &&value)
GetSessionResult & WithLifecycleStatus(const SessionLifecycleStatus &value)
const SessionLifecycleStatus & GetLifecycleStatus() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const LogConfiguration & GetLog() const
const Aws::Utils::DateTime & GetStartedAt() const
GetSessionResult & WithUpdatedBy(Aws::String &&value)
GetSessionResult & WithRequestId(Aws::String &&value)
GetSessionResult & WithLifecycleStatus(SessionLifecycleStatus &&value)
void SetHostProperties(HostPropertiesResponse &&value)
void SetWorkerId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
void SetEndedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetSessionResult & WithWorkerId(const Aws::String &value)
void SetTargetLifecycleStatus(const SessionLifecycleTargetStatus &value)
GetSessionResult & WithSessionId(const char *value)
const SessionLifecycleTargetStatus & GetTargetLifecycleStatus() const
void SetWorkerLog(const LogConfiguration &value)
AWS_DEADLINE_API GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetWorkerLog(LogConfiguration &&value)
void SetLog(const LogConfiguration &value)
GetSessionResult & WithEndedAt(Aws::Utils::DateTime &&value)
GetSessionResult & WithWorkerLog(LogConfiguration &&value)
AWS_DEADLINE_API GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue