AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
System.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace resiliencehubv2 {
22namespace Model {
23
30class System {
31 public:
32 AWS_RESILIENCEHUBV2_API System() = default;
33 AWS_RESILIENCEHUBV2_API System(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API System& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetSystemArn() const { return m_systemArn; }
40 inline bool SystemArnHasBeenSet() const { return m_systemArnHasBeenSet; }
41 template <typename SystemArnT = Aws::String>
42 void SetSystemArn(SystemArnT&& value) {
43 m_systemArnHasBeenSet = true;
44 m_systemArn = std::forward<SystemArnT>(value);
45 }
46 template <typename SystemArnT = Aws::String>
47 System& WithSystemArn(SystemArnT&& value) {
48 SetSystemArn(std::forward<SystemArnT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetSystemId() const { return m_systemId; }
56 inline bool SystemIdHasBeenSet() const { return m_systemIdHasBeenSet; }
57 template <typename SystemIdT = Aws::String>
58 void SetSystemId(SystemIdT&& value) {
59 m_systemIdHasBeenSet = true;
60 m_systemId = std::forward<SystemIdT>(value);
61 }
62 template <typename SystemIdT = Aws::String>
63 System& WithSystemId(SystemIdT&& value) {
64 SetSystemId(std::forward<SystemIdT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
79 System& WithName(NameT&& value) {
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
95 System& WithDescription(DescriptionT&& value) {
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
105 inline bool GetSharingEnabled() const { return m_sharingEnabled; }
106 inline bool SharingEnabledHasBeenSet() const { return m_sharingEnabledHasBeenSet; }
107 inline void SetSharingEnabled(bool value) {
108 m_sharingEnabledHasBeenSet = true;
109 m_sharingEnabled = value;
110 }
111 inline System& WithSharingEnabled(bool value) {
112 SetSharingEnabled(value);
113 return *this;
114 }
116
118
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 System& WithTags(TagsT&& value) {
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 System& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
142 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
143 template <typename KmsKeyIdT = Aws::String>
144 void SetKmsKeyId(KmsKeyIdT&& value) {
145 m_kmsKeyIdHasBeenSet = true;
146 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
147 }
148 template <typename KmsKeyIdT = Aws::String>
149 System& WithKmsKeyId(KmsKeyIdT&& value) {
150 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
160 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
161 template <typename OrganizationIdT = Aws::String>
162 void SetOrganizationId(OrganizationIdT&& value) {
163 m_organizationIdHasBeenSet = true;
164 m_organizationId = std::forward<OrganizationIdT>(value);
165 }
166 template <typename OrganizationIdT = Aws::String>
167 System& WithOrganizationId(OrganizationIdT&& value) {
168 SetOrganizationId(std::forward<OrganizationIdT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetOuId() const { return m_ouId; }
178 inline bool OuIdHasBeenSet() const { return m_ouIdHasBeenSet; }
179 template <typename OuIdT = Aws::String>
180 void SetOuId(OuIdT&& value) {
181 m_ouIdHasBeenSet = true;
182 m_ouId = std::forward<OuIdT>(value);
183 }
184 template <typename OuIdT = Aws::String>
185 System& WithOuId(OuIdT&& value) {
186 SetOuId(std::forward<OuIdT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
196 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
197 template <typename CreatedAtT = Aws::Utils::DateTime>
198 void SetCreatedAt(CreatedAtT&& value) {
199 m_createdAtHasBeenSet = true;
200 m_createdAt = std::forward<CreatedAtT>(value);
201 }
202 template <typename CreatedAtT = Aws::Utils::DateTime>
203 System& WithCreatedAt(CreatedAtT&& value) {
204 SetCreatedAt(std::forward<CreatedAtT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
214 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
215 template <typename UpdatedAtT = Aws::Utils::DateTime>
216 void SetUpdatedAt(UpdatedAtT&& value) {
217 m_updatedAtHasBeenSet = true;
218 m_updatedAt = std::forward<UpdatedAtT>(value);
219 }
220 template <typename UpdatedAtT = Aws::Utils::DateTime>
221 System& WithUpdatedAt(UpdatedAtT&& value) {
222 SetUpdatedAt(std::forward<UpdatedAtT>(value));
223 return *this;
224 }
226 private:
227 Aws::String m_systemArn;
228
229 Aws::String m_systemId;
230
231 Aws::String m_name;
232
233 Aws::String m_description;
234
235 bool m_sharingEnabled{false};
236
238
239 Aws::String m_kmsKeyId;
240
241 Aws::String m_organizationId;
242
243 Aws::String m_ouId;
244
245 Aws::Utils::DateTime m_createdAt{};
246
247 Aws::Utils::DateTime m_updatedAt{};
248 bool m_systemArnHasBeenSet = false;
249 bool m_systemIdHasBeenSet = false;
250 bool m_nameHasBeenSet = false;
251 bool m_descriptionHasBeenSet = false;
252 bool m_sharingEnabledHasBeenSet = false;
253 bool m_tagsHasBeenSet = false;
254 bool m_kmsKeyIdHasBeenSet = false;
255 bool m_organizationIdHasBeenSet = false;
256 bool m_ouIdHasBeenSet = false;
257 bool m_createdAtHasBeenSet = false;
258 bool m_updatedAtHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace resiliencehubv2
263} // namespace Aws
void SetOuId(OuIdT &&value)
Definition System.h:180
System & WithName(NameT &&value)
Definition System.h:79
System & WithKmsKeyId(KmsKeyIdT &&value)
Definition System.h:149
void SetCreatedAt(CreatedAtT &&value)
Definition System.h:198
void SetKmsKeyId(KmsKeyIdT &&value)
Definition System.h:144
const Aws::String & GetName() const
Definition System.h:71
const Aws::String & GetOuId() const
Definition System.h:177
void SetUpdatedAt(UpdatedAtT &&value)
Definition System.h:216
const Aws::String & GetSystemArn() const
Definition System.h:39
AWS_RESILIENCEHUBV2_API System(Aws::Utils::Json::JsonView jsonValue)
System & WithOrganizationId(OrganizationIdT &&value)
Definition System.h:167
System & WithSystemId(SystemIdT &&value)
Definition System.h:63
void SetDescription(DescriptionT &&value)
Definition System.h:90
System & WithSystemArn(SystemArnT &&value)
Definition System.h:47
System & WithOuId(OuIdT &&value)
Definition System.h:185
void SetOrganizationId(OrganizationIdT &&value)
Definition System.h:162
const Aws::String & GetSystemId() const
Definition System.h:55
void SetName(NameT &&value)
Definition System.h:74
System & WithTags(TagsT &&value)
Definition System.h:127
System & WithCreatedAt(CreatedAtT &&value)
Definition System.h:203
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition System.h:119
const Aws::String & GetOrganizationId() const
Definition System.h:159
const Aws::String & GetDescription() const
Definition System.h:87
const Aws::Utils::DateTime & GetCreatedAt() const
Definition System.h:195
System & WithUpdatedAt(UpdatedAtT &&value)
Definition System.h:221
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
System & WithSharingEnabled(bool value)
Definition System.h:111
void SetTags(TagsT &&value)
Definition System.h:122
void SetSystemArn(SystemArnT &&value)
Definition System.h:42
const Aws::String & GetKmsKeyId() const
Definition System.h:141
void SetSystemId(SystemIdT &&value)
Definition System.h:58
AWS_RESILIENCEHUBV2_API System()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition System.h:213
System & WithDescription(DescriptionT &&value)
Definition System.h:95
System & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition System.h:132
AWS_RESILIENCEHUBV2_API System & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSharingEnabled(bool value)
Definition System.h:107
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