AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
RecoveryPlan.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/RecoveryPlanStatus.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 RecoveryPlan() = default;
35
37
40 inline const Aws::String& GetRecoveryPlanArn() const { return m_recoveryPlanArn; }
41 inline bool RecoveryPlanArnHasBeenSet() const { return m_recoveryPlanArnHasBeenSet; }
42 template <typename RecoveryPlanArnT = Aws::String>
43 void SetRecoveryPlanArn(RecoveryPlanArnT&& value) {
44 m_recoveryPlanArnHasBeenSet = true;
45 m_recoveryPlanArn = std::forward<RecoveryPlanArnT>(value);
46 }
47 template <typename RecoveryPlanArnT = Aws::String>
48 RecoveryPlan& WithRecoveryPlanArn(RecoveryPlanArnT&& value) {
49 SetRecoveryPlanArn(std::forward<RecoveryPlanArnT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 RecoveryPlan& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
80 RecoveryPlan& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline RecoveryPlanStatus GetStatus() const { return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(RecoveryPlanStatus value) {
93 m_statusHasBeenSet = true;
94 m_status = value;
95 }
97 SetStatus(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
107 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
108 template <typename CreatedAtT = Aws::String>
109 void SetCreatedAt(CreatedAtT&& value) {
110 m_createdAtHasBeenSet = true;
111 m_createdAt = std::forward<CreatedAtT>(value);
112 }
113 template <typename CreatedAtT = Aws::String>
114 RecoveryPlan& WithCreatedAt(CreatedAtT&& value) {
115 SetCreatedAt(std::forward<CreatedAtT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
125 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
126 template <typename UpdatedAtT = Aws::String>
127 void SetUpdatedAt(UpdatedAtT&& value) {
128 m_updatedAtHasBeenSet = true;
129 m_updatedAt = std::forward<UpdatedAtT>(value);
130 }
131 template <typename UpdatedAtT = Aws::String>
132 RecoveryPlan& WithUpdatedAt(UpdatedAtT&& value) {
133 SetUpdatedAt(std::forward<UpdatedAtT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags = std::forward<TagsT>(value);
148 }
149 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 RecoveryPlan& WithTags(TagsT&& value) {
151 SetTags(std::forward<TagsT>(value));
152 return *this;
153 }
154 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
155 RecoveryPlan& AddTags(TagsKeyT&& key, TagsValueT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_recoveryPlanArn;
163
164 Aws::String m_name;
165
166 Aws::String m_description;
167
169
170 Aws::String m_createdAt;
171
172 Aws::String m_updatedAt;
173
175 bool m_recoveryPlanArnHasBeenSet = false;
176 bool m_nameHasBeenSet = false;
177 bool m_descriptionHasBeenSet = false;
178 bool m_statusHasBeenSet = false;
179 bool m_createdAtHasBeenSet = false;
180 bool m_updatedAtHasBeenSet = false;
181 bool m_tagsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace drs
186} // namespace Aws
void SetStatus(RecoveryPlanStatus value)
AWS_DRS_API RecoveryPlan(Aws::Utils::Json::JsonView jsonValue)
RecoveryPlan & WithCreatedAt(CreatedAtT &&value)
AWS_DRS_API RecoveryPlan()=default
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
RecoveryPlan & WithUpdatedAt(UpdatedAtT &&value)
RecoveryPlan & WithTags(TagsT &&value)
void SetTags(TagsT &&value)
const Aws::String & GetName() const
RecoveryPlan & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_DRS_API RecoveryPlan & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryPlan & WithName(NameT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetDescription(DescriptionT &&value)
void SetName(NameT &&value)
RecoveryPlanStatus GetStatus() const
void SetRecoveryPlanArn(RecoveryPlanArnT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetCreatedAt() const
void SetUpdatedAt(UpdatedAtT &&value)
RecoveryPlan & WithRecoveryPlanArn(RecoveryPlanArnT &&value)
const Aws::String & GetRecoveryPlanArn() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RecoveryPlan & WithDescription(DescriptionT &&value)
bool RecoveryPlanArnHasBeenSet() const
const Aws::String & GetUpdatedAt() const
RecoveryPlan & WithStatus(RecoveryPlanStatus 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