7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/AttemptContainerDetail.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/batch/model/AttemptEcsTaskDetails.h>
49 template<
typename ContainerT = AttemptContainerDetail>
50 void SetContainer(ContainerT&& value) { m_containerHasBeenSet =
true; m_container = std::forward<ContainerT>(value); }
51 template<
typename ContainerT = AttemptContainerDetail>
63 inline void SetStartedAt(
long long value) { m_startedAtHasBeenSet =
true; m_startedAt = value; }
75 inline void SetStoppedAt(
long long value) { m_stoppedAtHasBeenSet =
true; m_stoppedAt = value; }
86 template<
typename StatusReasonT = Aws::String>
87 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet =
true; m_statusReason = std::forward<StatusReasonT>(value); }
88 template<
typename StatusReasonT = Aws::String>
99 template<
typename TaskPropertiesT = Aws::Vector<AttemptEcsTaskDetails>>
100 void SetTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet =
true; m_taskProperties = std::forward<TaskPropertiesT>(value); }
101 template<
typename TaskPropertiesT = Aws::Vector<AttemptEcsTaskDetails>>
103 template<
typename TaskPropertiesT = AttemptEcsTaskDetails>
104 AttemptDetail&
AddTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet =
true; m_taskProperties.emplace_back(std::forward<TaskPropertiesT>(value));
return *
this; }
109 bool m_containerHasBeenSet =
false;
111 long long m_startedAt{0};
112 bool m_startedAtHasBeenSet =
false;
114 long long m_stoppedAt{0};
115 bool m_stoppedAtHasBeenSet =
false;
118 bool m_statusReasonHasBeenSet =
false;
121 bool m_taskPropertiesHasBeenSet =
false;
long long GetStartedAt() const
bool StatusReasonHasBeenSet() const
AWS_BATCH_API AttemptDetail()=default
AttemptDetail & AddTaskProperties(TaskPropertiesT &&value)
AttemptDetail & WithTaskProperties(TaskPropertiesT &&value)
void SetStoppedAt(long long value)
void SetContainer(ContainerT &&value)
bool StoppedAtHasBeenSet() const
long long GetStoppedAt() const
const Aws::String & GetStatusReason() const
void SetTaskProperties(TaskPropertiesT &&value)
AttemptDetail & WithStatusReason(StatusReasonT &&value)
AttemptDetail & WithContainer(ContainerT &&value)
void SetStartedAt(long long value)
bool ContainerHasBeenSet() const
AWS_BATCH_API AttemptDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API AttemptDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const AttemptContainerDetail & GetContainer() const
void SetStatusReason(StatusReasonT &&value)
bool TaskPropertiesHasBeenSet() const
AttemptDetail & WithStartedAt(long long value)
const Aws::Vector< AttemptEcsTaskDetails > & GetTaskProperties() const
AttemptDetail & WithStoppedAt(long long value)
bool StartedAtHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue