AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SessionActionSummary.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/SessionActionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/deadline/model/SessionActionDefinitionSummary.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 SessionActionSummary();
40 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetSessionActionId() const{ return m_sessionActionId; }
48 inline bool SessionActionIdHasBeenSet() const { return m_sessionActionIdHasBeenSet; }
49 inline void SetSessionActionId(const Aws::String& value) { m_sessionActionIdHasBeenSet = true; m_sessionActionId = value; }
50 inline void SetSessionActionId(Aws::String&& value) { m_sessionActionIdHasBeenSet = true; m_sessionActionId = std::move(value); }
51 inline void SetSessionActionId(const char* value) { m_sessionActionIdHasBeenSet = true; m_sessionActionId.assign(value); }
52 inline SessionActionSummary& WithSessionActionId(const Aws::String& value) { SetSessionActionId(value); return *this;}
53 inline SessionActionSummary& WithSessionActionId(Aws::String&& value) { SetSessionActionId(std::move(value)); return *this;}
54 inline SessionActionSummary& WithSessionActionId(const char* value) { SetSessionActionId(value); return *this;}
56
58
61 inline const SessionActionStatus& GetStatus() const{ return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(const SessionActionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
64 inline void SetStatus(SessionActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
65 inline SessionActionSummary& WithStatus(const SessionActionStatus& value) { SetStatus(value); return *this;}
66 inline SessionActionSummary& WithStatus(SessionActionStatus&& value) { SetStatus(std::move(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
74 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
75 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
76 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
77 inline SessionActionSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
78 inline SessionActionSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
86 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
87 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
88 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
89 inline SessionActionSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
90 inline SessionActionSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
92
94
98 inline const Aws::Utils::DateTime& GetWorkerUpdatedAt() const{ return m_workerUpdatedAt; }
99 inline bool WorkerUpdatedAtHasBeenSet() const { return m_workerUpdatedAtHasBeenSet; }
100 inline void SetWorkerUpdatedAt(const Aws::Utils::DateTime& value) { m_workerUpdatedAtHasBeenSet = true; m_workerUpdatedAt = value; }
101 inline void SetWorkerUpdatedAt(Aws::Utils::DateTime&& value) { m_workerUpdatedAtHasBeenSet = true; m_workerUpdatedAt = std::move(value); }
103 inline SessionActionSummary& WithWorkerUpdatedAt(Aws::Utils::DateTime&& value) { SetWorkerUpdatedAt(std::move(value)); return *this;}
105
107
110 inline double GetProgressPercent() const{ return m_progressPercent; }
111 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
112 inline void SetProgressPercent(double value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
113 inline SessionActionSummary& WithProgressPercent(double value) { SetProgressPercent(value); return *this;}
115
117
120 inline const SessionActionDefinitionSummary& GetDefinition() const{ return m_definition; }
121 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
122 inline void SetDefinition(const SessionActionDefinitionSummary& value) { m_definitionHasBeenSet = true; m_definition = value; }
123 inline void SetDefinition(SessionActionDefinitionSummary&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
125 inline SessionActionSummary& WithDefinition(SessionActionDefinitionSummary&& value) { SetDefinition(std::move(value)); return *this;}
127 private:
128
129 Aws::String m_sessionActionId;
130 bool m_sessionActionIdHasBeenSet = false;
131
132 SessionActionStatus m_status;
133 bool m_statusHasBeenSet = false;
134
135 Aws::Utils::DateTime m_startedAt;
136 bool m_startedAtHasBeenSet = false;
137
138 Aws::Utils::DateTime m_endedAt;
139 bool m_endedAtHasBeenSet = false;
140
141 Aws::Utils::DateTime m_workerUpdatedAt;
142 bool m_workerUpdatedAtHasBeenSet = false;
143
144 double m_progressPercent;
145 bool m_progressPercentHasBeenSet = false;
146
148 bool m_definitionHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace deadline
153} // namespace Aws
SessionActionSummary & WithDefinition(SessionActionDefinitionSummary &&value)
SessionActionSummary & WithSessionActionId(Aws::String &&value)
void SetEndedAt(Aws::Utils::DateTime &&value)
void SetStatus(const SessionActionStatus &value)
void SetSessionActionId(const Aws::String &value)
void SetEndedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndedAt() const
SessionActionSummary & WithSessionActionId(const char *value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const SessionActionStatus & GetStatus() const
void SetWorkerUpdatedAt(const Aws::Utils::DateTime &value)
SessionActionSummary & WithStartedAt(Aws::Utils::DateTime &&value)
AWS_DEADLINE_API SessionActionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetWorkerUpdatedAt() const
SessionActionSummary & WithStatus(SessionActionStatus &&value)
SessionActionSummary & WithEndedAt(const Aws::Utils::DateTime &value)
SessionActionSummary & WithWorkerUpdatedAt(const Aws::Utils::DateTime &value)
void SetDefinition(const SessionActionDefinitionSummary &value)
void SetWorkerUpdatedAt(Aws::Utils::DateTime &&value)
SessionActionSummary & WithStartedAt(const Aws::Utils::DateTime &value)
SessionActionSummary & WithWorkerUpdatedAt(Aws::Utils::DateTime &&value)
void SetDefinition(SessionActionDefinitionSummary &&value)
const SessionActionDefinitionSummary & GetDefinition() const
AWS_DEADLINE_API SessionActionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionActionSummary & WithEndedAt(Aws::Utils::DateTime &&value)
SessionActionSummary & WithProgressPercent(double value)
void SetStatus(SessionActionStatus &&value)
void SetStartedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetStartedAt(const Aws::Utils::DateTime &value)
SessionActionSummary & WithStatus(const SessionActionStatus &value)
SessionActionSummary & WithSessionActionId(const Aws::String &value)
SessionActionSummary & WithDefinition(const SessionActionDefinitionSummary &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue