AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkerSessionSummary.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 WorkerSessionSummary();
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 WorkerSessionSummary& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
53 inline WorkerSessionSummary& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
54 inline WorkerSessionSummary& WithSessionId(const char* value) { SetSessionId(value); return *this;}
56
58
61 inline const Aws::String& GetQueueId() const{ return m_queueId; }
62 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
63 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
64 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
65 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
66 inline WorkerSessionSummary& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
67 inline WorkerSessionSummary& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
68 inline WorkerSessionSummary& WithQueueId(const char* value) { SetQueueId(value); return *this;}
70
72
75 inline const Aws::String& GetJobId() const{ return m_jobId; }
76 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
77 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
78 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
79 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
80 inline WorkerSessionSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
81 inline WorkerSessionSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
82 inline WorkerSessionSummary& WithJobId(const char* value) { SetJobId(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 WorkerSessionSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
94 inline WorkerSessionSummary& 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 WorkerSessionSummary& 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 WorkerSessionSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
118 inline WorkerSessionSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
120
122
125 inline const SessionLifecycleTargetStatus& GetTargetLifecycleStatus() const{ return m_targetLifecycleStatus; }
126 inline bool TargetLifecycleStatusHasBeenSet() const { return m_targetLifecycleStatusHasBeenSet; }
127 inline void SetTargetLifecycleStatus(const SessionLifecycleTargetStatus& value) { m_targetLifecycleStatusHasBeenSet = true; m_targetLifecycleStatus = value; }
128 inline void SetTargetLifecycleStatus(SessionLifecycleTargetStatus&& value) { m_targetLifecycleStatusHasBeenSet = true; m_targetLifecycleStatus = std::move(value); }
132 private:
133
134 Aws::String m_sessionId;
135 bool m_sessionIdHasBeenSet = false;
136
137 Aws::String m_queueId;
138 bool m_queueIdHasBeenSet = false;
139
140 Aws::String m_jobId;
141 bool m_jobIdHasBeenSet = false;
142
143 Aws::Utils::DateTime m_startedAt;
144 bool m_startedAtHasBeenSet = false;
145
146 SessionLifecycleStatus m_lifecycleStatus;
147 bool m_lifecycleStatusHasBeenSet = false;
148
149 Aws::Utils::DateTime m_endedAt;
150 bool m_endedAtHasBeenSet = false;
151
152 SessionLifecycleTargetStatus m_targetLifecycleStatus;
153 bool m_targetLifecycleStatusHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace deadline
158} // namespace Aws
WorkerSessionSummary & WithEndedAt(const Aws::Utils::DateTime &value)
WorkerSessionSummary & WithQueueId(Aws::String &&value)
void SetLifecycleStatus(const SessionLifecycleStatus &value)
WorkerSessionSummary & WithTargetLifecycleStatus(SessionLifecycleTargetStatus &&value)
WorkerSessionSummary & WithQueueId(const Aws::String &value)
const Aws::Utils::DateTime & GetEndedAt() const
void SetEndedAt(Aws::Utils::DateTime &&value)
const SessionLifecycleTargetStatus & GetTargetLifecycleStatus() const
WorkerSessionSummary & WithEndedAt(Aws::Utils::DateTime &&value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus &&value)
WorkerSessionSummary & WithLifecycleStatus(SessionLifecycleStatus &&value)
const SessionLifecycleStatus & GetLifecycleStatus() const
WorkerSessionSummary & WithSessionId(const Aws::String &value)
WorkerSessionSummary & WithTargetLifecycleStatus(const SessionLifecycleTargetStatus &value)
WorkerSessionSummary & WithSessionId(const char *value)
WorkerSessionSummary & WithJobId(const char *value)
AWS_DEADLINE_API WorkerSessionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetStartedAt(const Aws::Utils::DateTime &value)
WorkerSessionSummary & WithStartedAt(Aws::Utils::DateTime &&value)
void SetSessionId(const Aws::String &value)
void SetEndedAt(const Aws::Utils::DateTime &value)
WorkerSessionSummary & WithSessionId(Aws::String &&value)
void SetStartedAt(Aws::Utils::DateTime &&value)
WorkerSessionSummary & WithLifecycleStatus(const SessionLifecycleStatus &value)
WorkerSessionSummary & WithJobId(Aws::String &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetTargetLifecycleStatus(const SessionLifecycleTargetStatus &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerSessionSummary & WithQueueId(const char *value)
void SetLifecycleStatus(SessionLifecycleStatus &&value)
WorkerSessionSummary & WithJobId(const Aws::String &value)
WorkerSessionSummary & WithStartedAt(const Aws::Utils::DateTime &value)
AWS_DEADLINE_API WorkerSessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue