AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
JobStateTimeLimitAction.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/JobStateTimeLimitActionsAction.h>
9#include <aws/batch/model/JobStateTimeLimitActionsState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch {
22namespace Model {
23
32 public:
33 AWS_BATCH_API JobStateTimeLimitAction() = default;
36 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetReason() const { return m_reason; }
43 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
44 template <typename ReasonT = Aws::String>
45 void SetReason(ReasonT&& value) {
46 m_reasonHasBeenSet = true;
47 m_reason = std::forward<ReasonT>(value);
48 }
49 template <typename ReasonT = Aws::String>
51 SetReason(std::forward<ReasonT>(value));
52 return *this;
53 }
55
57
61 inline JobStateTimeLimitActionsState GetState() const { return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 m_stateHasBeenSet = true;
65 m_state = value;
66 }
68 SetState(value);
69 return *this;
70 }
72
74
79 inline int GetMaxTimeSeconds() const { return m_maxTimeSeconds; }
80 inline bool MaxTimeSecondsHasBeenSet() const { return m_maxTimeSecondsHasBeenSet; }
81 inline void SetMaxTimeSeconds(int value) {
82 m_maxTimeSecondsHasBeenSet = true;
83 m_maxTimeSeconds = value;
84 }
86 SetMaxTimeSeconds(value);
87 return *this;
88 }
90
92
97 inline JobStateTimeLimitActionsAction GetAction() const { return m_action; }
98 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
100 m_actionHasBeenSet = true;
101 m_action = value;
102 }
104 SetAction(value);
105 return *this;
106 }
108 private:
109 Aws::String m_reason;
110
112
113 int m_maxTimeSeconds{0};
114
116 bool m_reasonHasBeenSet = false;
117 bool m_stateHasBeenSet = false;
118 bool m_maxTimeSecondsHasBeenSet = false;
119 bool m_actionHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Batch
124} // namespace Aws
JobStateTimeLimitAction & WithReason(ReasonT &&value)
JobStateTimeLimitActionsState GetState() const
JobStateTimeLimitAction & WithState(JobStateTimeLimitActionsState value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAction(JobStateTimeLimitActionsAction value)
JobStateTimeLimitAction & WithAction(JobStateTimeLimitActionsAction value)
JobStateTimeLimitAction & WithMaxTimeSeconds(int value)
AWS_BATCH_API JobStateTimeLimitAction()=default
AWS_BATCH_API JobStateTimeLimitAction(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API JobStateTimeLimitAction & operator=(Aws::Utils::Json::JsonView jsonValue)
JobStateTimeLimitActionsAction GetAction() const
void SetState(JobStateTimeLimitActionsState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue