AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
JobStateTimeLimitAction.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/JobStateTimeLimitActionsState.h>
10#include <aws/batch/model/JobStateTimeLimitActionsAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_BATCH_API JobStateTimeLimitAction() = default;
41 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetReason() const { return m_reason; }
49 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
50 template<typename ReasonT = Aws::String>
51 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
52 template<typename ReasonT = Aws::String>
53 JobStateTimeLimitAction& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
55
57
61 inline JobStateTimeLimitActionsState GetState() const { return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 inline void SetState(JobStateTimeLimitActionsState value) { m_stateHasBeenSet = true; m_state = value; }
66
68
73 inline int GetMaxTimeSeconds() const { return m_maxTimeSeconds; }
74 inline bool MaxTimeSecondsHasBeenSet() const { return m_maxTimeSecondsHasBeenSet; }
75 inline void SetMaxTimeSeconds(int value) { m_maxTimeSecondsHasBeenSet = true; m_maxTimeSeconds = value; }
76 inline JobStateTimeLimitAction& WithMaxTimeSeconds(int value) { SetMaxTimeSeconds(value); return *this;}
78
80
85 inline JobStateTimeLimitActionsAction GetAction() const { return m_action; }
86 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
87 inline void SetAction(JobStateTimeLimitActionsAction value) { m_actionHasBeenSet = true; m_action = value; }
90 private:
91
92 Aws::String m_reason;
93 bool m_reasonHasBeenSet = false;
94
96 bool m_stateHasBeenSet = false;
97
98 int m_maxTimeSeconds{0};
99 bool m_maxTimeSecondsHasBeenSet = false;
100
102 bool m_actionHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Batch
107} // 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