AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePolicy.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Batch
20{
21namespace Model
22{
23
34 {
35 public:
36 AWS_BATCH_API UpdatePolicy();
37 AWS_BATCH_API UpdatePolicy(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline bool GetTerminateJobsOnUpdate() const{ return m_terminateJobsOnUpdate; }
49 inline bool TerminateJobsOnUpdateHasBeenSet() const { return m_terminateJobsOnUpdateHasBeenSet; }
50 inline void SetTerminateJobsOnUpdate(bool value) { m_terminateJobsOnUpdateHasBeenSet = true; m_terminateJobsOnUpdate = value; }
51 inline UpdatePolicy& WithTerminateJobsOnUpdate(bool value) { SetTerminateJobsOnUpdate(value); return *this;}
53
55
59 inline long long GetJobExecutionTimeoutMinutes() const{ return m_jobExecutionTimeoutMinutes; }
60 inline bool JobExecutionTimeoutMinutesHasBeenSet() const { return m_jobExecutionTimeoutMinutesHasBeenSet; }
61 inline void SetJobExecutionTimeoutMinutes(long long value) { m_jobExecutionTimeoutMinutesHasBeenSet = true; m_jobExecutionTimeoutMinutes = value; }
62 inline UpdatePolicy& WithJobExecutionTimeoutMinutes(long long value) { SetJobExecutionTimeoutMinutes(value); return *this;}
64 private:
65
66 bool m_terminateJobsOnUpdate;
67 bool m_terminateJobsOnUpdateHasBeenSet = false;
68
69 long long m_jobExecutionTimeoutMinutes;
70 bool m_jobExecutionTimeoutMinutesHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Batch
75} // namespace Aws
bool JobExecutionTimeoutMinutesHasBeenSet() const
void SetTerminateJobsOnUpdate(bool value)
bool TerminateJobsOnUpdateHasBeenSet() const
UpdatePolicy & WithTerminateJobsOnUpdate(bool value)
void SetJobExecutionTimeoutMinutes(long long value)
AWS_BATCH_API UpdatePolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API UpdatePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetJobExecutionTimeoutMinutes() const
UpdatePolicy & WithJobExecutionTimeoutMinutes(long long value)
Aws::Utils::Json::JsonValue JsonValue