AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
RecoveryPlanExecutionSummary.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/ErrorDetail.h>
10#include <aws/drs/model/RecoveryPlanExecutionMode.h>
11#include <aws/drs/model/RecoveryPlanExecutionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace drs {
23namespace Model {
24
32 public:
33 AWS_DRS_API RecoveryPlanExecutionSummary() = default;
37
39
42 inline const Aws::String& GetRecoveryPlanExecutionArn() const { return m_recoveryPlanExecutionArn; }
43 inline bool RecoveryPlanExecutionArnHasBeenSet() const { return m_recoveryPlanExecutionArnHasBeenSet; }
44 template <typename RecoveryPlanExecutionArnT = Aws::String>
45 void SetRecoveryPlanExecutionArn(RecoveryPlanExecutionArnT&& value) {
46 m_recoveryPlanExecutionArnHasBeenSet = true;
47 m_recoveryPlanExecutionArn = std::forward<RecoveryPlanExecutionArnT>(value);
48 }
49 template <typename RecoveryPlanExecutionArnT = Aws::String>
50 RecoveryPlanExecutionSummary& WithRecoveryPlanExecutionArn(RecoveryPlanExecutionArnT&& value) {
51 SetRecoveryPlanExecutionArn(std::forward<RecoveryPlanExecutionArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRecoveryPlanArn() const { return m_recoveryPlanArn; }
61 inline bool RecoveryPlanArnHasBeenSet() const { return m_recoveryPlanArnHasBeenSet; }
62 template <typename RecoveryPlanArnT = Aws::String>
63 void SetRecoveryPlanArn(RecoveryPlanArnT&& value) {
64 m_recoveryPlanArnHasBeenSet = true;
65 m_recoveryPlanArn = std::forward<RecoveryPlanArnT>(value);
66 }
67 template <typename RecoveryPlanArnT = Aws::String>
69 SetRecoveryPlanArn(std::forward<RecoveryPlanArnT>(value));
70 return *this;
71 }
73
75
78 inline RecoveryPlanExecutionMode GetMode() const { return m_mode; }
79 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
81 m_modeHasBeenSet = true;
82 m_mode = value;
83 }
85 SetMode(value);
86 return *this;
87 }
89
91
94 inline RecoveryPlanExecutionStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetStartedAt() const { return m_startedAt; }
111 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
112 template <typename StartedAtT = Aws::String>
113 void SetStartedAt(StartedAtT&& value) {
114 m_startedAtHasBeenSet = true;
115 m_startedAt = std::forward<StartedAtT>(value);
116 }
117 template <typename StartedAtT = Aws::String>
119 SetStartedAt(std::forward<StartedAtT>(value));
120 return *this;
121 }
123
125
128 inline const ErrorDetail& GetErrorDetail() const { return m_errorDetail; }
129 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
130 template <typename ErrorDetailT = ErrorDetail>
131 void SetErrorDetail(ErrorDetailT&& value) {
132 m_errorDetailHasBeenSet = true;
133 m_errorDetail = std::forward<ErrorDetailT>(value);
134 }
135 template <typename ErrorDetailT = ErrorDetail>
137 SetErrorDetail(std::forward<ErrorDetailT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_recoveryPlanExecutionArn;
143
144 Aws::String m_recoveryPlanArn;
145
147
149
150 Aws::String m_startedAt;
151
152 ErrorDetail m_errorDetail;
153 bool m_recoveryPlanExecutionArnHasBeenSet = false;
154 bool m_recoveryPlanArnHasBeenSet = false;
155 bool m_modeHasBeenSet = false;
156 bool m_statusHasBeenSet = false;
157 bool m_startedAtHasBeenSet = false;
158 bool m_errorDetailHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace drs
163} // namespace Aws
AWS_DRS_API RecoveryPlanExecutionSummary()=default
void SetRecoveryPlanExecutionArn(RecoveryPlanExecutionArnT &&value)
RecoveryPlanExecutionSummary & WithErrorDetail(ErrorDetailT &&value)
AWS_DRS_API RecoveryPlanExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryPlanExecutionSummary & WithRecoveryPlanArn(RecoveryPlanArnT &&value)
AWS_DRS_API RecoveryPlanExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
RecoveryPlanExecutionSummary & WithRecoveryPlanExecutionArn(RecoveryPlanExecutionArnT &&value)
void SetStatus(RecoveryPlanExecutionStatus value)
RecoveryPlanExecutionSummary & WithMode(RecoveryPlanExecutionMode value)
RecoveryPlanExecutionSummary & WithStatus(RecoveryPlanExecutionStatus value)
RecoveryPlanExecutionSummary & WithStartedAt(StartedAtT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue