7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/ServiceResourceId.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
42 template <
typename ServiceResourceIdT = ServiceResourceId>
44 m_serviceResourceIdHasBeenSet =
true;
45 m_serviceResourceId = std::forward<ServiceResourceIdT>(value);
47 template <
typename ServiceResourceIdT = ServiceResourceId>
62 m_startedAtHasBeenSet =
true;
79 m_stoppedAtHasBeenSet =
true;
95 template <
typename StatusReasonT = Aws::String>
97 m_statusReasonHasBeenSet =
true;
98 m_statusReason = std::forward<StatusReasonT>(value);
100 template <
typename StatusReasonT = Aws::String>
109 long long m_startedAt{0};
111 long long m_stoppedAt{0};
114 bool m_serviceResourceIdHasBeenSet =
false;
115 bool m_startedAtHasBeenSet =
false;
116 bool m_stoppedAtHasBeenSet =
false;
117 bool m_statusReasonHasBeenSet =
false;
AWS_BATCH_API ServiceJobPreemptedAttempt(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ServiceJobPreemptedAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetStartedAt() const
ServiceJobPreemptedAttempt & WithServiceResourceId(ServiceResourceIdT &&value)
AWS_BATCH_API ServiceJobPreemptedAttempt()=default
bool StartedAtHasBeenSet() const
bool StoppedAtHasBeenSet() const
ServiceJobPreemptedAttempt & WithStoppedAt(long long value)
const Aws::String & GetStatusReason() const
const ServiceResourceId & GetServiceResourceId() const
ServiceJobPreemptedAttempt & WithStartedAt(long long value)
bool ServiceResourceIdHasBeenSet() const
void SetStoppedAt(long long value)
void SetStartedAt(long long value)
void SetStatusReason(StatusReasonT &&value)
ServiceJobPreemptedAttempt & WithStatusReason(StatusReasonT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
bool StatusReasonHasBeenSet() const
void SetServiceResourceId(ServiceResourceIdT &&value)
long long GetStoppedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue