AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
51 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
52 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
53 inline JobStateTimeLimitAction& WithReason(const Aws::String& value) { SetReason(value); return *this;}
54 inline JobStateTimeLimitAction& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
55 inline JobStateTimeLimitAction& WithReason(const char* value) { SetReason(value); return *this;}
57
59
63 inline const JobStateTimeLimitActionsState& GetState() const{ return m_state; }
64 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
65 inline void SetState(const JobStateTimeLimitActionsState& value) { m_stateHasBeenSet = true; m_state = value; }
66 inline void SetState(JobStateTimeLimitActionsState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
67 inline JobStateTimeLimitAction& WithState(const JobStateTimeLimitActionsState& value) { SetState(value); return *this;}
68 inline JobStateTimeLimitAction& WithState(JobStateTimeLimitActionsState&& value) { SetState(std::move(value)); return *this;}
70
72
77 inline int GetMaxTimeSeconds() const{ return m_maxTimeSeconds; }
78 inline bool MaxTimeSecondsHasBeenSet() const { return m_maxTimeSecondsHasBeenSet; }
79 inline void SetMaxTimeSeconds(int value) { m_maxTimeSecondsHasBeenSet = true; m_maxTimeSeconds = value; }
80 inline JobStateTimeLimitAction& WithMaxTimeSeconds(int value) { SetMaxTimeSeconds(value); return *this;}
82
84
89 inline const JobStateTimeLimitActionsAction& GetAction() const{ return m_action; }
90 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
91 inline void SetAction(const JobStateTimeLimitActionsAction& value) { m_actionHasBeenSet = true; m_action = value; }
92 inline void SetAction(JobStateTimeLimitActionsAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
93 inline JobStateTimeLimitAction& WithAction(const JobStateTimeLimitActionsAction& value) { SetAction(value); return *this;}
94 inline JobStateTimeLimitAction& WithAction(JobStateTimeLimitActionsAction&& value) { SetAction(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_reason;
99 bool m_reasonHasBeenSet = false;
100
102 bool m_stateHasBeenSet = false;
103
104 int m_maxTimeSeconds;
105 bool m_maxTimeSecondsHasBeenSet = false;
106
108 bool m_actionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Batch
113} // namespace Aws
JobStateTimeLimitAction & WithReason(const char *value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAction(JobStateTimeLimitActionsAction &&value)
const JobStateTimeLimitActionsState & GetState() const
JobStateTimeLimitAction & WithMaxTimeSeconds(int value)
const JobStateTimeLimitActionsAction & GetAction() const
AWS_BATCH_API JobStateTimeLimitAction(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API JobStateTimeLimitAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(const JobStateTimeLimitActionsState &value)
JobStateTimeLimitAction & WithAction(JobStateTimeLimitActionsAction &&value)
JobStateTimeLimitAction & WithState(JobStateTimeLimitActionsState &&value)
JobStateTimeLimitAction & WithReason(const Aws::String &value)
void SetAction(const JobStateTimeLimitActionsAction &value)
JobStateTimeLimitAction & WithState(const JobStateTimeLimitActionsState &value)
void SetState(JobStateTimeLimitActionsState &&value)
JobStateTimeLimitAction & WithReason(Aws::String &&value)
JobStateTimeLimitAction & WithAction(const JobStateTimeLimitActionsAction &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue