AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
LaunchActionRun.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/LaunchAction.h>
10#include <aws/drs/model/LaunchActionRunStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace drs {
22namespace Model {
23
30 public:
31 AWS_DRS_API LaunchActionRun() = default;
35
37
40 inline const LaunchAction& GetAction() const { return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
42 template <typename ActionT = LaunchAction>
43 void SetAction(ActionT&& value) {
44 m_actionHasBeenSet = true;
45 m_action = std::forward<ActionT>(value);
46 }
47 template <typename ActionT = LaunchAction>
48 LaunchActionRun& WithAction(ActionT&& value) {
49 SetAction(std::forward<ActionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
59 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
60 template <typename FailureReasonT = Aws::String>
61 void SetFailureReason(FailureReasonT&& value) {
62 m_failureReasonHasBeenSet = true;
63 m_failureReason = std::forward<FailureReasonT>(value);
64 }
65 template <typename FailureReasonT = Aws::String>
66 LaunchActionRun& WithFailureReason(FailureReasonT&& value) {
67 SetFailureReason(std::forward<FailureReasonT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRunId() const { return m_runId; }
77 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
78 template <typename RunIdT = Aws::String>
79 void SetRunId(RunIdT&& value) {
80 m_runIdHasBeenSet = true;
81 m_runId = std::forward<RunIdT>(value);
82 }
83 template <typename RunIdT = Aws::String>
84 LaunchActionRun& WithRunId(RunIdT&& value) {
85 SetRunId(std::forward<RunIdT>(value));
86 return *this;
87 }
89
91
94 inline LaunchActionRunStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(LaunchActionRunStatus value) {
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105 private:
106 LaunchAction m_action;
107
108 Aws::String m_failureReason;
109
110 Aws::String m_runId;
111
113 bool m_actionHasBeenSet = false;
114 bool m_failureReasonHasBeenSet = false;
115 bool m_runIdHasBeenSet = false;
116 bool m_statusHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace drs
121} // namespace Aws
const LaunchAction & GetAction() const
const Aws::String & GetFailureReason() const
LaunchActionRun & WithFailureReason(FailureReasonT &&value)
LaunchActionRun & WithRunId(RunIdT &&value)
const Aws::String & GetRunId() const
LaunchActionRun & WithAction(ActionT &&value)
AWS_DRS_API LaunchActionRun()=default
void SetAction(ActionT &&value)
void SetFailureReason(FailureReasonT &&value)
LaunchActionRunStatus GetStatus() const
AWS_DRS_API LaunchActionRun & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DRS_API LaunchActionRun(Aws::Utils::Json::JsonView jsonValue)
LaunchActionRun & WithStatus(LaunchActionRunStatus value)
void SetStatus(LaunchActionRunStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue