AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchActionRun.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/model/LaunchAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/drs/model/LaunchActionRunStatus.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 drs
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DRS_API LaunchActionRun();
40
41
43
46 inline const LaunchAction& GetAction() const{ return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(const LaunchAction& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(LaunchAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline LaunchActionRun& WithAction(const LaunchAction& value) { SetAction(value); return *this;}
51 inline LaunchActionRun& WithAction(LaunchAction&& value) { SetAction(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
59 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
60 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
61 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
62 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
63 inline LaunchActionRun& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
64 inline LaunchActionRun& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
65 inline LaunchActionRun& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
67
69
72 inline const Aws::String& GetRunId() const{ return m_runId; }
73 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
74 inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; }
75 inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); }
76 inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); }
77 inline LaunchActionRun& WithRunId(const Aws::String& value) { SetRunId(value); return *this;}
78 inline LaunchActionRun& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;}
79 inline LaunchActionRun& WithRunId(const char* value) { SetRunId(value); return *this;}
81
83
86 inline const LaunchActionRunStatus& GetStatus() const{ return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(const LaunchActionRunStatus& value) { m_statusHasBeenSet = true; m_status = value; }
89 inline void SetStatus(LaunchActionRunStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
90 inline LaunchActionRun& WithStatus(const LaunchActionRunStatus& value) { SetStatus(value); return *this;}
91 inline LaunchActionRun& WithStatus(LaunchActionRunStatus&& value) { SetStatus(std::move(value)); return *this;}
93 private:
94
95 LaunchAction m_action;
96 bool m_actionHasBeenSet = false;
97
98 Aws::String m_failureReason;
99 bool m_failureReasonHasBeenSet = false;
100
101 Aws::String m_runId;
102 bool m_runIdHasBeenSet = false;
103
104 LaunchActionRunStatus m_status;
105 bool m_statusHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace drs
110} // namespace Aws
void SetFailureReason(Aws::String &&value)
void SetStatus(LaunchActionRunStatus &&value)
void SetAction(LaunchAction &&value)
const LaunchAction & GetAction() const
const Aws::String & GetFailureReason() const
LaunchActionRun & WithAction(const LaunchAction &value)
const Aws::String & GetRunId() const
LaunchActionRun & WithRunId(const Aws::String &value)
LaunchActionRun & WithStatus(LaunchActionRunStatus &&value)
LaunchActionRun & WithStatus(const LaunchActionRunStatus &value)
void SetStatus(const LaunchActionRunStatus &value)
LaunchActionRun & WithRunId(Aws::String &&value)
AWS_DRS_API LaunchActionRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const LaunchActionRunStatus & GetStatus() const
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DRS_API LaunchActionRun(Aws::Utils::Json::JsonView jsonValue)
LaunchActionRun & WithAction(LaunchAction &&value)
LaunchActionRun & WithRunId(const char *value)
void SetRunId(const char *value)
LaunchActionRun & WithFailureReason(const char *value)
LaunchActionRun & WithFailureReason(Aws::String &&value)
void SetAction(const LaunchAction &value)
void SetRunId(const Aws::String &value)
LaunchActionRun & WithFailureReason(const Aws::String &value)
void SetFailureReason(const char *value)
void SetFailureReason(const Aws::String &value)
void SetRunId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue