AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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& GetRunId() const { return m_runId; }
59 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
60 template <typename RunIdT = Aws::String>
61 void SetRunId(RunIdT&& value) {
62 m_runIdHasBeenSet = true;
63 m_runId = std::forward<RunIdT>(value);
64 }
65 template <typename RunIdT = Aws::String>
66 LaunchActionRun& WithRunId(RunIdT&& value) {
67 SetRunId(std::forward<RunIdT>(value));
68 return *this;
69 }
71
73
76 inline LaunchActionRunStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(LaunchActionRunStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
93 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
94 template <typename FailureReasonT = Aws::String>
95 void SetFailureReason(FailureReasonT&& value) {
96 m_failureReasonHasBeenSet = true;
97 m_failureReason = std::forward<FailureReasonT>(value);
98 }
99 template <typename FailureReasonT = Aws::String>
100 LaunchActionRun& WithFailureReason(FailureReasonT&& value) {
101 SetFailureReason(std::forward<FailureReasonT>(value));
102 return *this;
103 }
105 private:
106 LaunchAction m_action;
107
108 Aws::String m_runId;
109
111
112 Aws::String m_failureReason;
113 bool m_actionHasBeenSet = false;
114 bool m_runIdHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_failureReasonHasBeenSet = 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