AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
ServiceJobEvaluateOnExit.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/ServiceJobRetryAction.h>
9#include <aws/core/utils/memory/stl/AWSString.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
34 {
35 public:
36 AWS_BATCH_API ServiceJobEvaluateOnExit() = default;
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline ServiceJobRetryAction GetAction() const { return m_action; }
48 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
49 inline void SetAction(ServiceJobRetryAction value) { m_actionHasBeenSet = true; m_action = value; }
52
54
60 inline const Aws::String& GetOnStatusReason() const { return m_onStatusReason; }
61 inline bool OnStatusReasonHasBeenSet() const { return m_onStatusReasonHasBeenSet; }
62 template<typename OnStatusReasonT = Aws::String>
63 void SetOnStatusReason(OnStatusReasonT&& value) { m_onStatusReasonHasBeenSet = true; m_onStatusReason = std::forward<OnStatusReasonT>(value); }
64 template<typename OnStatusReasonT = Aws::String>
65 ServiceJobEvaluateOnExit& WithOnStatusReason(OnStatusReasonT&& value) { SetOnStatusReason(std::forward<OnStatusReasonT>(value)); return *this;}
67 private:
68
70 bool m_actionHasBeenSet = false;
71
72 Aws::String m_onStatusReason;
73 bool m_onStatusReasonHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Batch
78} // namespace Aws
AWS_BATCH_API ServiceJobEvaluateOnExit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ServiceJobEvaluateOnExit()=default
ServiceJobEvaluateOnExit & WithAction(ServiceJobRetryAction value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceJobEvaluateOnExit & WithOnStatusReason(OnStatusReasonT &&value)
AWS_BATCH_API ServiceJobEvaluateOnExit(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue