AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
RecoveryPlanExecution.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/Drs_EXPORTS.h>
10#include <aws/drs/model/ErrorDetail.h>
11#include <aws/drs/model/RecoveryPlanExecutionMode.h>
12#include <aws/drs/model/RecoveryPlanExecutionStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace drs {
24namespace Model {
25
32 public:
33 AWS_DRS_API RecoveryPlanExecution() = 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 RecoveryPlanExecution& 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>
68 RecoveryPlanExecution& WithRecoveryPlanArn(RecoveryPlanArnT&& value) {
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 Aws::String& GetCompletedAt() const { return m_completedAt; }
129 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
130 template <typename CompletedAtT = Aws::String>
131 void SetCompletedAt(CompletedAtT&& value) {
132 m_completedAtHasBeenSet = true;
133 m_completedAt = std::forward<CompletedAtT>(value);
134 }
135 template <typename CompletedAtT = Aws::String>
136 RecoveryPlanExecution& WithCompletedAt(CompletedAtT&& value) {
137 SetCompletedAt(std::forward<CompletedAtT>(value));
138 return *this;
139 }
141
143
146 inline const ErrorDetail& GetErrorDetail() const { return m_errorDetail; }
147 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
148 template <typename ErrorDetailT = ErrorDetail>
149 void SetErrorDetail(ErrorDetailT&& value) {
150 m_errorDetailHasBeenSet = true;
151 m_errorDetail = std::forward<ErrorDetailT>(value);
152 }
153 template <typename ErrorDetailT = ErrorDetail>
154 RecoveryPlanExecution& WithErrorDetail(ErrorDetailT&& value) {
155 SetErrorDetail(std::forward<ErrorDetailT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 void SetTags(TagsT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags = std::forward<TagsT>(value);
170 }
171 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
173 SetTags(std::forward<TagsT>(value));
174 return *this;
175 }
176 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
177 RecoveryPlanExecution& AddTags(TagsKeyT&& key, TagsValueT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_recoveryPlanExecutionArn;
185
186 Aws::String m_recoveryPlanArn;
187
189
191
192 Aws::String m_startedAt;
193
194 Aws::String m_completedAt;
195
196 ErrorDetail m_errorDetail;
197
199 bool m_recoveryPlanExecutionArnHasBeenSet = false;
200 bool m_recoveryPlanArnHasBeenSet = false;
201 bool m_modeHasBeenSet = false;
202 bool m_statusHasBeenSet = false;
203 bool m_startedAtHasBeenSet = false;
204 bool m_completedAtHasBeenSet = false;
205 bool m_errorDetailHasBeenSet = false;
206 bool m_tagsHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace drs
211} // namespace Aws
AWS_DRS_API RecoveryPlanExecution()=default
RecoveryPlanExecution & WithErrorDetail(ErrorDetailT &&value)
void SetRecoveryPlanArn(RecoveryPlanArnT &&value)
RecoveryPlanExecution & WithRecoveryPlanArn(RecoveryPlanArnT &&value)
AWS_DRS_API RecoveryPlanExecution(Aws::Utils::Json::JsonView jsonValue)
void SetMode(RecoveryPlanExecutionMode value)
AWS_DRS_API RecoveryPlanExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryPlanExecutionMode GetMode() const
void SetStatus(RecoveryPlanExecutionStatus value)
RecoveryPlanExecution & WithStatus(RecoveryPlanExecutionStatus value)
void SetRecoveryPlanExecutionArn(RecoveryPlanExecutionArnT &&value)
const Aws::String & GetRecoveryPlanArn() const
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
RecoveryPlanExecution & WithRecoveryPlanExecutionArn(RecoveryPlanExecutionArnT &&value)
RecoveryPlanExecution & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RecoveryPlanExecution & WithCompletedAt(CompletedAtT &&value)
RecoveryPlanExecution & WithTags(TagsT &&value)
const Aws::String & GetRecoveryPlanExecutionArn() const
RecoveryPlanExecution & WithMode(RecoveryPlanExecutionMode value)
RecoveryPlanExecutionStatus GetStatus() const
RecoveryPlanExecution & WithStartedAt(StartedAtT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue