AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/deadline/model/TaskRunManifestPropertiesRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace deadline
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DEADLINE_API UpdatedSessionActionInfo() = default;
42 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline CompletedStatus GetCompletedStatus() const { return m_completedStatus; }
50 inline bool CompletedStatusHasBeenSet() const { return m_completedStatusHasBeenSet; }
51 inline void SetCompletedStatus(CompletedStatus value) { m_completedStatusHasBeenSet = true; m_completedStatus = value; }
54
56
60 inline int GetProcessExitCode() const { return m_processExitCode; }
61 inline bool ProcessExitCodeHasBeenSet() const { return m_processExitCodeHasBeenSet; }
62 inline void SetProcessExitCode(int value) { m_processExitCodeHasBeenSet = true; m_processExitCode = value; }
63 inline UpdatedSessionActionInfo& WithProcessExitCode(int value) { SetProcessExitCode(value); return *this;}
65
67
70 inline const Aws::String& GetProgressMessage() const { return m_progressMessage; }
71 inline bool ProgressMessageHasBeenSet() const { return m_progressMessageHasBeenSet; }
72 template<typename ProgressMessageT = Aws::String>
73 void SetProgressMessage(ProgressMessageT&& value) { m_progressMessageHasBeenSet = true; m_progressMessage = std::forward<ProgressMessageT>(value); }
74 template<typename ProgressMessageT = Aws::String>
75 UpdatedSessionActionInfo& WithProgressMessage(ProgressMessageT&& value) { SetProgressMessage(std::forward<ProgressMessageT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
83 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
84 template<typename StartedAtT = Aws::Utils::DateTime>
85 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
86 template<typename StartedAtT = Aws::Utils::DateTime>
87 UpdatedSessionActionInfo& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
95 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
96 template<typename EndedAtT = Aws::Utils::DateTime>
97 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
98 template<typename EndedAtT = Aws::Utils::DateTime>
99 UpdatedSessionActionInfo& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
107 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
108 template<typename UpdatedAtT = Aws::Utils::DateTime>
109 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
110 template<typename UpdatedAtT = Aws::Utils::DateTime>
111 UpdatedSessionActionInfo& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
113
115
118 inline double GetProgressPercent() const { return m_progressPercent; }
119 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
120 inline void SetProgressPercent(double value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
121 inline UpdatedSessionActionInfo& WithProgressPercent(double value) { SetProgressPercent(value); return *this;}
123
125
129 inline const Aws::Vector<TaskRunManifestPropertiesRequest>& GetManifests() const { return m_manifests; }
130 inline bool ManifestsHasBeenSet() const { return m_manifestsHasBeenSet; }
131 template<typename ManifestsT = Aws::Vector<TaskRunManifestPropertiesRequest>>
132 void SetManifests(ManifestsT&& value) { m_manifestsHasBeenSet = true; m_manifests = std::forward<ManifestsT>(value); }
133 template<typename ManifestsT = Aws::Vector<TaskRunManifestPropertiesRequest>>
134 UpdatedSessionActionInfo& WithManifests(ManifestsT&& value) { SetManifests(std::forward<ManifestsT>(value)); return *this;}
135 template<typename ManifestsT = TaskRunManifestPropertiesRequest>
136 UpdatedSessionActionInfo& AddManifests(ManifestsT&& value) { m_manifestsHasBeenSet = true; m_manifests.emplace_back(std::forward<ManifestsT>(value)); return *this; }
138 private:
139
140 CompletedStatus m_completedStatus{CompletedStatus::NOT_SET};
141 bool m_completedStatusHasBeenSet = false;
142
143 int m_processExitCode{0};
144 bool m_processExitCodeHasBeenSet = false;
145
146 Aws::String m_progressMessage;
147 bool m_progressMessageHasBeenSet = false;
148
149 Aws::Utils::DateTime m_startedAt{};
150 bool m_startedAtHasBeenSet = false;
151
152 Aws::Utils::DateTime m_endedAt{};
153 bool m_endedAtHasBeenSet = false;
154
155 Aws::Utils::DateTime m_updatedAt{};
156 bool m_updatedAtHasBeenSet = false;
157
158 double m_progressPercent{0.0};
159 bool m_progressPercentHasBeenSet = false;
160
162 bool m_manifestsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace deadline
167} // namespace Aws
AWS_DEADLINE_API UpdatedSessionActionInfo()=default
UpdatedSessionActionInfo & WithStartedAt(StartedAtT &&value)
AWS_DEADLINE_API UpdatedSessionActionInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndedAt() const
AWS_DEADLINE_API UpdatedSessionActionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdatedSessionActionInfo & WithCompletedStatus(CompletedStatus value)
UpdatedSessionActionInfo & WithManifests(ManifestsT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
UpdatedSessionActionInfo & WithProgressPercent(double value)
UpdatedSessionActionInfo & WithProcessExitCode(int value)
const Aws::Vector< TaskRunManifestPropertiesRequest > & GetManifests() const
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
UpdatedSessionActionInfo & WithProgressMessage(ProgressMessageT &&value)
UpdatedSessionActionInfo & WithUpdatedAt(UpdatedAtT &&value)
UpdatedSessionActionInfo & AddManifests(ManifestsT &&value)
UpdatedSessionActionInfo & WithEndedAt(EndedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue