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/TaskRunStatus.h>
11#include <aws/deadline/model/TaskTargetRunStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/deadline/model/TaskParameterValue.h>
18template<
typename RESULT_TYPE>
19class AmazonWebServiceResult;
45 template<
typename TaskIdT = Aws::String>
46 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet =
true; m_taskId = std::forward<TaskIdT>(value); }
47 template<
typename TaskIdT = Aws::String>
56 template<
typename CreatedAtT = Aws::Utils::DateTime>
57 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
58 template<
typename CreatedAtT = Aws::Utils::DateTime>
67 template<
typename CreatedByT = Aws::String>
68 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet =
true; m_createdBy = std::forward<CreatedByT>(value); }
69 template<
typename CreatedByT = Aws::String>
96 inline void SetFailureRetryCount(
int value) { m_failureRetryCountHasBeenSet =
true; m_failureRetryCount = value; }
105 template<
typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
106 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
107 template<
typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
109 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = TaskParameterValue>
111 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
120 template<
typename StartedAtT = Aws::Utils::DateTime>
121 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet =
true; m_startedAt = std::forward<StartedAtT>(value); }
122 template<
typename StartedAtT = Aws::Utils::DateTime>
131 template<
typename EndedAtT = Aws::Utils::DateTime>
132 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet =
true; m_endedAt = std::forward<EndedAtT>(value); }
133 template<
typename EndedAtT = Aws::Utils::DateTime>
142 template<
typename UpdatedAtT = Aws::Utils::DateTime>
143 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
144 template<
typename UpdatedAtT = Aws::Utils::DateTime>
153 template<
typename UpdatedByT = Aws::String>
154 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet =
true; m_updatedBy = std::forward<UpdatedByT>(value); }
155 template<
typename UpdatedByT = Aws::String>
164 template<
typename LatestSessionActionIdT = Aws::String>
165 void SetLatestSessionActionId(LatestSessionActionIdT&& value) { m_latestSessionActionIdHasBeenSet =
true; m_latestSessionActionId = std::forward<LatestSessionActionIdT>(value); }
166 template<
typename LatestSessionActionIdT = Aws::String>
173 template<
typename RequestIdT = Aws::String>
174 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
175 template<
typename RequestIdT = Aws::String>
181 bool m_taskIdHasBeenSet =
false;
184 bool m_createdAtHasBeenSet =
false;
187 bool m_createdByHasBeenSet =
false;
190 bool m_runStatusHasBeenSet =
false;
193 bool m_targetRunStatusHasBeenSet =
false;
195 int m_failureRetryCount{0};
196 bool m_failureRetryCountHasBeenSet =
false;
199 bool m_parametersHasBeenSet =
false;
202 bool m_startedAtHasBeenSet =
false;
205 bool m_endedAtHasBeenSet =
false;
208 bool m_updatedAtHasBeenSet =
false;
211 bool m_updatedByHasBeenSet =
false;
214 bool m_latestSessionActionIdHasBeenSet =
false;
217 bool m_requestIdHasBeenSet =
false;
void SetTaskId(TaskIdT &&value)
GetTaskResult & WithLatestSessionActionId(LatestSessionActionIdT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
GetTaskResult & WithParameters(ParametersT &&value)
const Aws::Map< Aws::String, TaskParameterValue > & GetParameters() const
const Aws::String & GetLatestSessionActionId() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetTaskResult & WithTargetRunStatus(TaskTargetRunStatus value)
void SetStartedAt(StartedAtT &&value)
AWS_DEADLINE_API GetTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTargetRunStatus(TaskTargetRunStatus value)
GetTaskResult & WithRunStatus(TaskRunStatus value)
const Aws::String & GetUpdatedBy() const
GetTaskResult & WithUpdatedAt(UpdatedAtT &&value)
void SetCreatedBy(CreatedByT &&value)
GetTaskResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetTaskId() const
GetTaskResult & WithUpdatedBy(UpdatedByT &&value)
void SetParameters(ParametersT &&value)
void SetRunStatus(TaskRunStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetCreatedBy() const
void SetUpdatedBy(UpdatedByT &&value)
AWS_DEADLINE_API GetTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEADLINE_API GetTaskResult()=default
GetTaskResult & WithStartedAt(StartedAtT &&value)
void SetFailureRetryCount(int value)
GetTaskResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
TaskRunStatus GetRunStatus() const
int GetFailureRetryCount() const
GetTaskResult & WithCreatedAt(CreatedAtT &&value)
GetTaskResult & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Utils::DateTime & GetEndedAt() const
void SetRequestId(RequestIdT &&value)
void SetLatestSessionActionId(LatestSessionActionIdT &&value)
GetTaskResult & WithFailureRetryCount(int value)
void SetEndedAt(EndedAtT &&value)
GetTaskResult & WithTaskId(TaskIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
GetTaskResult & WithEndedAt(EndedAtT &&value)
TaskTargetRunStatus GetTargetRunStatus() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue