AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EvaluateOnExit.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/RetryAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_BATCH_API EvaluateOnExit();
41 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::String& GetOnStatusReason() const{ return m_onStatusReason; }
53 inline bool OnStatusReasonHasBeenSet() const { return m_onStatusReasonHasBeenSet; }
54 inline void SetOnStatusReason(const Aws::String& value) { m_onStatusReasonHasBeenSet = true; m_onStatusReason = value; }
55 inline void SetOnStatusReason(Aws::String&& value) { m_onStatusReasonHasBeenSet = true; m_onStatusReason = std::move(value); }
56 inline void SetOnStatusReason(const char* value) { m_onStatusReasonHasBeenSet = true; m_onStatusReason.assign(value); }
57 inline EvaluateOnExit& WithOnStatusReason(const Aws::String& value) { SetOnStatusReason(value); return *this;}
58 inline EvaluateOnExit& WithOnStatusReason(Aws::String&& value) { SetOnStatusReason(std::move(value)); return *this;}
59 inline EvaluateOnExit& WithOnStatusReason(const char* value) { SetOnStatusReason(value); return *this;}
61
63
70 inline const Aws::String& GetOnReason() const{ return m_onReason; }
71 inline bool OnReasonHasBeenSet() const { return m_onReasonHasBeenSet; }
72 inline void SetOnReason(const Aws::String& value) { m_onReasonHasBeenSet = true; m_onReason = value; }
73 inline void SetOnReason(Aws::String&& value) { m_onReasonHasBeenSet = true; m_onReason = std::move(value); }
74 inline void SetOnReason(const char* value) { m_onReasonHasBeenSet = true; m_onReason.assign(value); }
75 inline EvaluateOnExit& WithOnReason(const Aws::String& value) { SetOnReason(value); return *this;}
76 inline EvaluateOnExit& WithOnReason(Aws::String&& value) { SetOnReason(std::move(value)); return *this;}
77 inline EvaluateOnExit& WithOnReason(const char* value) { SetOnReason(value); return *this;}
79
81
88 inline const Aws::String& GetOnExitCode() const{ return m_onExitCode; }
89 inline bool OnExitCodeHasBeenSet() const { return m_onExitCodeHasBeenSet; }
90 inline void SetOnExitCode(const Aws::String& value) { m_onExitCodeHasBeenSet = true; m_onExitCode = value; }
91 inline void SetOnExitCode(Aws::String&& value) { m_onExitCodeHasBeenSet = true; m_onExitCode = std::move(value); }
92 inline void SetOnExitCode(const char* value) { m_onExitCodeHasBeenSet = true; m_onExitCode.assign(value); }
93 inline EvaluateOnExit& WithOnExitCode(const Aws::String& value) { SetOnExitCode(value); return *this;}
94 inline EvaluateOnExit& WithOnExitCode(Aws::String&& value) { SetOnExitCode(std::move(value)); return *this;}
95 inline EvaluateOnExit& WithOnExitCode(const char* value) { SetOnExitCode(value); return *this;}
97
99
104 inline const RetryAction& GetAction() const{ return m_action; }
105 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
106 inline void SetAction(const RetryAction& value) { m_actionHasBeenSet = true; m_action = value; }
107 inline void SetAction(RetryAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
108 inline EvaluateOnExit& WithAction(const RetryAction& value) { SetAction(value); return *this;}
109 inline EvaluateOnExit& WithAction(RetryAction&& value) { SetAction(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_onStatusReason;
114 bool m_onStatusReasonHasBeenSet = false;
115
116 Aws::String m_onReason;
117 bool m_onReasonHasBeenSet = false;
118
119 Aws::String m_onExitCode;
120 bool m_onExitCodeHasBeenSet = false;
121
122 RetryAction m_action;
123 bool m_actionHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Batch
128} // namespace Aws
EvaluateOnExit & WithOnExitCode(const Aws::String &value)
EvaluateOnExit & WithOnStatusReason(const Aws::String &value)
EvaluateOnExit & WithOnExitCode(Aws::String &&value)
EvaluateOnExit & WithOnReason(Aws::String &&value)
void SetOnReason(Aws::String &&value)
const RetryAction & GetAction() const
EvaluateOnExit & WithAction(RetryAction &&value)
void SetOnStatusReason(Aws::String &&value)
EvaluateOnExit & WithAction(const RetryAction &value)
void SetOnStatusReason(const Aws::String &value)
void SetOnExitCode(const char *value)
AWS_BATCH_API EvaluateOnExit(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOnStatusReason() const
EvaluateOnExit & WithOnStatusReason(const char *value)
void SetAction(const RetryAction &value)
void SetOnReason(const Aws::String &value)
void SetOnReason(const char *value)
EvaluateOnExit & WithOnStatusReason(Aws::String &&value)
const Aws::String & GetOnExitCode() const
EvaluateOnExit & WithOnExitCode(const char *value)
const Aws::String & GetOnReason() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAction(RetryAction &&value)
void SetOnExitCode(const Aws::String &value)
void SetOnStatusReason(const char *value)
EvaluateOnExit & WithOnReason(const char *value)
AWS_BATCH_API EvaluateOnExit & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluateOnExit & WithOnReason(const Aws::String &value)
void SetOnExitCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue