AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
ServiceJobPreemptionConfiguration.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Batch {
17namespace Model {
18
26 public:
27 AWS_BATCH_API ServiceJobPreemptionConfiguration() = default;
30 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline int GetPreemptionRetriesBeforeTermination() const { return m_preemptionRetriesBeforeTermination; }
39 inline bool PreemptionRetriesBeforeTerminationHasBeenSet() const { return m_preemptionRetriesBeforeTerminationHasBeenSet; }
41 m_preemptionRetriesBeforeTerminationHasBeenSet = true;
42 m_preemptionRetriesBeforeTermination = value;
43 }
46 return *this;
47 }
49 private:
50 int m_preemptionRetriesBeforeTermination{0};
51 bool m_preemptionRetriesBeforeTerminationHasBeenSet = false;
52};
53
54} // namespace Model
55} // namespace Batch
56} // namespace Aws
AWS_BATCH_API ServiceJobPreemptionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceJobPreemptionConfiguration & WithPreemptionRetriesBeforeTermination(int value)
AWS_BATCH_API ServiceJobPreemptionConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue