AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatedSessionActionInfo.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/model/CompletedStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace deadline
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DEADLINE_API UpdatedSessionActionInfo();
40 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const CompletedStatus& GetCompletedStatus() const{ return m_completedStatus; }
48 inline bool CompletedStatusHasBeenSet() const { return m_completedStatusHasBeenSet; }
49 inline void SetCompletedStatus(const CompletedStatus& value) { m_completedStatusHasBeenSet = true; m_completedStatus = value; }
50 inline void SetCompletedStatus(CompletedStatus&& value) { m_completedStatusHasBeenSet = true; m_completedStatus = std::move(value); }
52 inline UpdatedSessionActionInfo& WithCompletedStatus(CompletedStatus&& value) { SetCompletedStatus(std::move(value)); return *this;}
54
56
59 inline int GetProcessExitCode() const{ return m_processExitCode; }
60 inline bool ProcessExitCodeHasBeenSet() const { return m_processExitCodeHasBeenSet; }
61 inline void SetProcessExitCode(int value) { m_processExitCodeHasBeenSet = true; m_processExitCode = value; }
62 inline UpdatedSessionActionInfo& WithProcessExitCode(int value) { SetProcessExitCode(value); return *this;}
64
66
69 inline const Aws::String& GetProgressMessage() const{ return m_progressMessage; }
70 inline bool ProgressMessageHasBeenSet() const { return m_progressMessageHasBeenSet; }
71 inline void SetProgressMessage(const Aws::String& value) { m_progressMessageHasBeenSet = true; m_progressMessage = value; }
72 inline void SetProgressMessage(Aws::String&& value) { m_progressMessageHasBeenSet = true; m_progressMessage = std::move(value); }
73 inline void SetProgressMessage(const char* value) { m_progressMessageHasBeenSet = true; m_progressMessage.assign(value); }
74 inline UpdatedSessionActionInfo& WithProgressMessage(const Aws::String& value) { SetProgressMessage(value); return *this;}
75 inline UpdatedSessionActionInfo& WithProgressMessage(Aws::String&& value) { SetProgressMessage(std::move(value)); return *this;}
76 inline UpdatedSessionActionInfo& WithProgressMessage(const char* value) { SetProgressMessage(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
84 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
85 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
86 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
87 inline UpdatedSessionActionInfo& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
88 inline UpdatedSessionActionInfo& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
96 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
97 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
98 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
99 inline UpdatedSessionActionInfo& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
100 inline UpdatedSessionActionInfo& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
108 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
109 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
110 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
111 inline UpdatedSessionActionInfo& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
112 inline UpdatedSessionActionInfo& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
114
116
119 inline double GetProgressPercent() const{ return m_progressPercent; }
120 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
121 inline void SetProgressPercent(double value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
122 inline UpdatedSessionActionInfo& WithProgressPercent(double value) { SetProgressPercent(value); return *this;}
124 private:
125
126 CompletedStatus m_completedStatus;
127 bool m_completedStatusHasBeenSet = false;
128
129 int m_processExitCode;
130 bool m_processExitCodeHasBeenSet = false;
131
132 Aws::String m_progressMessage;
133 bool m_progressMessageHasBeenSet = 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_updatedAt;
142 bool m_updatedAtHasBeenSet = false;
143
144 double m_progressPercent;
145 bool m_progressPercentHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace deadline
150} // namespace Aws
AWS_DEADLINE_API UpdatedSessionActionInfo(Aws::Utils::Json::JsonView jsonValue)
UpdatedSessionActionInfo & WithStartedAt(Aws::Utils::DateTime &&value)
void SetCompletedStatus(const CompletedStatus &value)
const Aws::Utils::DateTime & GetEndedAt() const
AWS_DEADLINE_API UpdatedSessionActionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdatedSessionActionInfo & WithCompletedStatus(const CompletedStatus &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
UpdatedSessionActionInfo & WithStartedAt(const Aws::Utils::DateTime &value)
UpdatedSessionActionInfo & WithProgressPercent(double value)
UpdatedSessionActionInfo & WithProcessExitCode(int value)
UpdatedSessionActionInfo & WithProgressMessage(const Aws::String &value)
UpdatedSessionActionInfo & WithUpdatedAt(Aws::Utils::DateTime &&value)
UpdatedSessionActionInfo & WithCompletedStatus(CompletedStatus &&value)
void SetEndedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
UpdatedSessionActionInfo & WithEndedAt(const Aws::Utils::DateTime &value)
UpdatedSessionActionInfo & WithEndedAt(Aws::Utils::DateTime &&value)
UpdatedSessionActionInfo & WithUpdatedAt(const Aws::Utils::DateTime &value)
UpdatedSessionActionInfo & WithProgressMessage(Aws::String &&value)
UpdatedSessionActionInfo & WithProgressMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue