AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SessionSummary.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/SessionLifecycleStatus.h>
11#include <aws/deadline/model/SessionLifecycleTargetStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace deadline
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DEADLINE_API SessionSummary();
38 AWS_DEADLINE_API SessionSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
48 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
49 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
50 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
51 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
52 inline SessionSummary& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
53 inline SessionSummary& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
54 inline SessionSummary& WithSessionId(const char* value) { SetSessionId(value); return *this;}
56
58
61 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
62 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
63 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
64 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
65 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
66 inline SessionSummary& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
67 inline SessionSummary& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
68 inline SessionSummary& WithFleetId(const char* value) { SetFleetId(value); return *this;}
70
72
75 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
76 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
77 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
78 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
79 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
80 inline SessionSummary& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
81 inline SessionSummary& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
82 inline SessionSummary& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
90 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
91 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
92 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
93 inline SessionSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
94 inline SessionSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
96
98
101 inline const SessionLifecycleStatus& GetLifecycleStatus() const{ return m_lifecycleStatus; }
102 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
103 inline void SetLifecycleStatus(const SessionLifecycleStatus& value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
104 inline void SetLifecycleStatus(SessionLifecycleStatus&& value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = std::move(value); }
106 inline SessionSummary& WithLifecycleStatus(SessionLifecycleStatus&& value) { SetLifecycleStatus(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
114 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
115 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
116 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
117 inline SessionSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
118 inline SessionSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
126 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
127 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
128 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
129 inline SessionSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
130 inline SessionSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
132
134
137 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
138 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
139 inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; }
140 inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); }
141 inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); }
142 inline SessionSummary& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
143 inline SessionSummary& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
144 inline SessionSummary& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
146
148
151 inline const SessionLifecycleTargetStatus& GetTargetLifecycleStatus() const{ return m_targetLifecycleStatus; }
152 inline bool TargetLifecycleStatusHasBeenSet() const { return m_targetLifecycleStatusHasBeenSet; }
153 inline void SetTargetLifecycleStatus(const SessionLifecycleTargetStatus& value) { m_targetLifecycleStatusHasBeenSet = true; m_targetLifecycleStatus = value; }
154 inline void SetTargetLifecycleStatus(SessionLifecycleTargetStatus&& value) { m_targetLifecycleStatusHasBeenSet = true; m_targetLifecycleStatus = std::move(value); }
158 private:
159
160 Aws::String m_sessionId;
161 bool m_sessionIdHasBeenSet = false;
162
163 Aws::String m_fleetId;
164 bool m_fleetIdHasBeenSet = false;
165
166 Aws::String m_workerId;
167 bool m_workerIdHasBeenSet = false;
168
169 Aws::Utils::DateTime m_startedAt;
170 bool m_startedAtHasBeenSet = false;
171
172 SessionLifecycleStatus m_lifecycleStatus;
173 bool m_lifecycleStatusHasBeenSet = false;
174
175 Aws::Utils::DateTime m_endedAt;
176 bool m_endedAtHasBeenSet = false;
177
178 Aws::Utils::DateTime m_updatedAt;
179 bool m_updatedAtHasBeenSet = false;
180
181 Aws::String m_updatedBy;
182 bool m_updatedByHasBeenSet = false;
183
184 SessionLifecycleTargetStatus m_targetLifecycleStatus;
185 bool m_targetLifecycleStatusHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace deadline
190} // namespace Aws
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetUpdatedBy(Aws::String &&value)
SessionSummary & WithWorkerId(const Aws::String &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
SessionSummary & WithSessionId(Aws::String &&value)
SessionSummary & WithFleetId(const char *value)
SessionSummary & WithUpdatedBy(const Aws::String &value)
void SetEndedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetWorkerId() const
SessionSummary & WithTargetLifecycleStatus(const SessionLifecycleTargetStatus &value)
const Aws::String & GetFleetId() const
const Aws::String & GetSessionId() const
SessionSummary & WithStartedAt(const Aws::Utils::DateTime &value)
SessionSummary & WithEndedAt(Aws::Utils::DateTime &&value)
AWS_DEADLINE_API SessionSummary(Aws::Utils::Json::JsonView jsonValue)
SessionSummary & WithSessionId(const char *value)
SessionSummary & WithWorkerId(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetFleetId(const Aws::String &value)
SessionSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetFleetId(Aws::String &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetUpdatedBy(const Aws::String &value)
SessionSummary & WithUpdatedBy(const char *value)
SessionSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetTargetLifecycleStatus(const SessionLifecycleTargetStatus &value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus &&value)
const Aws::Utils::DateTime & GetEndedAt() const
SessionSummary & WithWorkerId(Aws::String &&value)
void SetEndedAt(const Aws::Utils::DateTime &value)
void SetFleetId(const char *value)
SessionSummary & WithEndedAt(const Aws::Utils::DateTime &value)
SessionSummary & WithStartedAt(Aws::Utils::DateTime &&value)
SessionSummary & WithSessionId(const Aws::String &value)
SessionSummary & WithLifecycleStatus(const SessionLifecycleStatus &value)
void SetStartedAt(Aws::Utils::DateTime &&value)
AWS_DEADLINE_API SessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWorkerId(Aws::String &&value)
SessionSummary & WithFleetId(const Aws::String &value)
const Aws::Utils::DateTime & GetStartedAt() const
const SessionLifecycleStatus & GetLifecycleStatus() const
void SetSessionId(Aws::String &&value)
void SetSessionId(const char *value)
SessionSummary & WithFleetId(Aws::String &&value)
const SessionLifecycleTargetStatus & GetTargetLifecycleStatus() const
SessionSummary & WithTargetLifecycleStatus(SessionLifecycleTargetStatus &&value)
void SetUpdatedBy(const char *value)
void SetWorkerId(const Aws::String &value)
void SetLifecycleStatus(const SessionLifecycleStatus &value)
void SetLifecycleStatus(SessionLifecycleStatus &&value)
void SetWorkerId(const char *value)
const Aws::String & GetUpdatedBy() const
SessionSummary & WithUpdatedBy(Aws::String &&value)
void SetSessionId(const Aws::String &value)
SessionSummary & WithLifecycleStatus(SessionLifecycleStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue