7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/ServiceJobPreemptedAttempt.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
43 m_preemptedAttemptCountHasBeenSet =
true;
44 m_preemptedAttemptCount = value;
58 template <
typename RecentPreemptedAttemptsT = Aws::Vector<ServiceJobPreemptedAttempt>>
60 m_recentPreemptedAttemptsHasBeenSet =
true;
61 m_recentPreemptedAttempts = std::forward<RecentPreemptedAttemptsT>(value);
63 template <
typename RecentPreemptedAttemptsT = Aws::Vector<ServiceJobPreemptedAttempt>>
68 template <
typename RecentPreemptedAttemptsT = ServiceJobPreemptedAttempt>
70 m_recentPreemptedAttemptsHasBeenSet =
true;
71 m_recentPreemptedAttempts.emplace_back(std::forward<RecentPreemptedAttemptsT>(value));
76 int m_preemptedAttemptCount{0};
79 bool m_preemptedAttemptCountHasBeenSet =
false;
80 bool m_recentPreemptedAttemptsHasBeenSet =
false;
int GetPreemptedAttemptCount() const
AWS_BATCH_API ServiceJobPreemptionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetRecentPreemptedAttempts(RecentPreemptedAttemptsT &&value)
bool RecentPreemptedAttemptsHasBeenSet() const
bool PreemptedAttemptCountHasBeenSet() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceJobPreemptionSummary & WithPreemptedAttemptCount(int value)
AWS_BATCH_API ServiceJobPreemptionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceJobPreemptionSummary & AddRecentPreemptedAttempts(RecentPreemptedAttemptsT &&value)
void SetPreemptedAttemptCount(int value)
const Aws::Vector< ServiceJobPreemptedAttempt > & GetRecentPreemptedAttempts() const
AWS_BATCH_API ServiceJobPreemptionSummary()=default
ServiceJobPreemptionSummary & WithRecentPreemptedAttempts(RecentPreemptedAttemptsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue