AWS SDK for C++  1.9.106
AWS SDK for C++
ExportSnapshotRecordSourceInfo.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Lightsail
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
49  inline const ExportSnapshotRecordSourceType& GetResourceType() const{ return m_resourceType; }
50 
55  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
56 
61  inline void SetResourceType(const ExportSnapshotRecordSourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
62 
67  inline void SetResourceType(ExportSnapshotRecordSourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
68 
73  inline ExportSnapshotRecordSourceInfo& WithResourceType(const ExportSnapshotRecordSourceType& value) { SetResourceType(value); return *this;}
74 
79  inline ExportSnapshotRecordSourceInfo& WithResourceType(ExportSnapshotRecordSourceType&& value) { SetResourceType(std::move(value)); return *this;}
80 
81 
85  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
86 
90  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
91 
95  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
96 
100  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
101 
105  inline ExportSnapshotRecordSourceInfo& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
106 
110  inline ExportSnapshotRecordSourceInfo& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
111 
112 
116  inline const Aws::String& GetName() const{ return m_name; }
117 
121  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
122 
126  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
127 
131  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
132 
136  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
137 
141  inline ExportSnapshotRecordSourceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
142 
146  inline ExportSnapshotRecordSourceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
147 
151  inline ExportSnapshotRecordSourceInfo& WithName(const char* value) { SetName(value); return *this;}
152 
153 
157  inline const Aws::String& GetArn() const{ return m_arn; }
158 
162  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
163 
167  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
168 
172  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
173 
177  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
178 
182  inline ExportSnapshotRecordSourceInfo& WithArn(const Aws::String& value) { SetArn(value); return *this;}
183 
187  inline ExportSnapshotRecordSourceInfo& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
188 
192  inline ExportSnapshotRecordSourceInfo& WithArn(const char* value) { SetArn(value); return *this;}
193 
194 
198  inline const Aws::String& GetFromResourceName() const{ return m_fromResourceName; }
199 
203  inline bool FromResourceNameHasBeenSet() const { return m_fromResourceNameHasBeenSet; }
204 
208  inline void SetFromResourceName(const Aws::String& value) { m_fromResourceNameHasBeenSet = true; m_fromResourceName = value; }
209 
213  inline void SetFromResourceName(Aws::String&& value) { m_fromResourceNameHasBeenSet = true; m_fromResourceName = std::move(value); }
214 
218  inline void SetFromResourceName(const char* value) { m_fromResourceNameHasBeenSet = true; m_fromResourceName.assign(value); }
219 
223  inline ExportSnapshotRecordSourceInfo& WithFromResourceName(const Aws::String& value) { SetFromResourceName(value); return *this;}
224 
228  inline ExportSnapshotRecordSourceInfo& WithFromResourceName(Aws::String&& value) { SetFromResourceName(std::move(value)); return *this;}
229 
233  inline ExportSnapshotRecordSourceInfo& WithFromResourceName(const char* value) { SetFromResourceName(value); return *this;}
234 
235 
239  inline const Aws::String& GetFromResourceArn() const{ return m_fromResourceArn; }
240 
244  inline bool FromResourceArnHasBeenSet() const { return m_fromResourceArnHasBeenSet; }
245 
249  inline void SetFromResourceArn(const Aws::String& value) { m_fromResourceArnHasBeenSet = true; m_fromResourceArn = value; }
250 
254  inline void SetFromResourceArn(Aws::String&& value) { m_fromResourceArnHasBeenSet = true; m_fromResourceArn = std::move(value); }
255 
259  inline void SetFromResourceArn(const char* value) { m_fromResourceArnHasBeenSet = true; m_fromResourceArn.assign(value); }
260 
264  inline ExportSnapshotRecordSourceInfo& WithFromResourceArn(const Aws::String& value) { SetFromResourceArn(value); return *this;}
265 
269  inline ExportSnapshotRecordSourceInfo& WithFromResourceArn(Aws::String&& value) { SetFromResourceArn(std::move(value)); return *this;}
270 
274  inline ExportSnapshotRecordSourceInfo& WithFromResourceArn(const char* value) { SetFromResourceArn(value); return *this;}
275 
276 
280  inline const InstanceSnapshotInfo& GetInstanceSnapshotInfo() const{ return m_instanceSnapshotInfo; }
281 
285  inline bool InstanceSnapshotInfoHasBeenSet() const { return m_instanceSnapshotInfoHasBeenSet; }
286 
290  inline void SetInstanceSnapshotInfo(const InstanceSnapshotInfo& value) { m_instanceSnapshotInfoHasBeenSet = true; m_instanceSnapshotInfo = value; }
291 
295  inline void SetInstanceSnapshotInfo(InstanceSnapshotInfo&& value) { m_instanceSnapshotInfoHasBeenSet = true; m_instanceSnapshotInfo = std::move(value); }
296 
300  inline ExportSnapshotRecordSourceInfo& WithInstanceSnapshotInfo(const InstanceSnapshotInfo& value) { SetInstanceSnapshotInfo(value); return *this;}
301 
305  inline ExportSnapshotRecordSourceInfo& WithInstanceSnapshotInfo(InstanceSnapshotInfo&& value) { SetInstanceSnapshotInfo(std::move(value)); return *this;}
306 
307 
311  inline const DiskSnapshotInfo& GetDiskSnapshotInfo() const{ return m_diskSnapshotInfo; }
312 
316  inline bool DiskSnapshotInfoHasBeenSet() const { return m_diskSnapshotInfoHasBeenSet; }
317 
321  inline void SetDiskSnapshotInfo(const DiskSnapshotInfo& value) { m_diskSnapshotInfoHasBeenSet = true; m_diskSnapshotInfo = value; }
322 
326  inline void SetDiskSnapshotInfo(DiskSnapshotInfo&& value) { m_diskSnapshotInfoHasBeenSet = true; m_diskSnapshotInfo = std::move(value); }
327 
331  inline ExportSnapshotRecordSourceInfo& WithDiskSnapshotInfo(const DiskSnapshotInfo& value) { SetDiskSnapshotInfo(value); return *this;}
332 
336  inline ExportSnapshotRecordSourceInfo& WithDiskSnapshotInfo(DiskSnapshotInfo&& value) { SetDiskSnapshotInfo(std::move(value)); return *this;}
337 
338  private:
339 
340  ExportSnapshotRecordSourceType m_resourceType;
341  bool m_resourceTypeHasBeenSet;
342 
343  Aws::Utils::DateTime m_createdAt;
344  bool m_createdAtHasBeenSet;
345 
346  Aws::String m_name;
347  bool m_nameHasBeenSet;
348 
349  Aws::String m_arn;
350  bool m_arnHasBeenSet;
351 
352  Aws::String m_fromResourceName;
353  bool m_fromResourceNameHasBeenSet;
354 
355  Aws::String m_fromResourceArn;
356  bool m_fromResourceArnHasBeenSet;
357 
358  InstanceSnapshotInfo m_instanceSnapshotInfo;
359  bool m_instanceSnapshotInfoHasBeenSet;
360 
361  DiskSnapshotInfo m_diskSnapshotInfo;
362  bool m_diskSnapshotInfoHasBeenSet;
363  };
364 
365 } // namespace Model
366 } // namespace Lightsail
367 } // namespace Aws
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetName
void SetName(const char *value)
Definition: ExportSnapshotRecordSourceInfo.h:136
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithResourceType
ExportSnapshotRecordSourceInfo & WithResourceType(ExportSnapshotRecordSourceType &&value)
Definition: ExportSnapshotRecordSourceInfo.h:79
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::FromResourceArnHasBeenSet
bool FromResourceArnHasBeenSet() const
Definition: ExportSnapshotRecordSourceInfo.h:244
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo
Definition: ExportSnapshotRecordSourceInfo.h:37
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetFromResourceName
void SetFromResourceName(const char *value)
Definition: ExportSnapshotRecordSourceInfo.h:218
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithDiskSnapshotInfo
ExportSnapshotRecordSourceInfo & WithDiskSnapshotInfo(DiskSnapshotInfo &&value)
Definition: ExportSnapshotRecordSourceInfo.h:336
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetResourceType
void SetResourceType(ExportSnapshotRecordSourceType &&value)
Definition: ExportSnapshotRecordSourceInfo.h:67
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetInstanceSnapshotInfo
void SetInstanceSnapshotInfo(const InstanceSnapshotInfo &value)
Definition: ExportSnapshotRecordSourceInfo.h:290
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::GetResourceType
const ExportSnapshotRecordSourceType & GetResourceType() const
Definition: ExportSnapshotRecordSourceInfo.h:49
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithArn
ExportSnapshotRecordSourceInfo & WithArn(const Aws::String &value)
Definition: ExportSnapshotRecordSourceInfo.h:182
ExportSnapshotRecordSourceType.h
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithCreatedAt
ExportSnapshotRecordSourceInfo & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ExportSnapshotRecordSourceInfo.h:110
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetFromResourceArn
void SetFromResourceArn(const Aws::String &value)
Definition: ExportSnapshotRecordSourceInfo.h:249
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::GetName
const Aws::String & GetName() const
Definition: ExportSnapshotRecordSourceInfo.h:116
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::FromResourceNameHasBeenSet
bool FromResourceNameHasBeenSet() const
Definition: ExportSnapshotRecordSourceInfo.h:203
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithName
ExportSnapshotRecordSourceInfo & WithName(const Aws::String &value)
Definition: ExportSnapshotRecordSourceInfo.h:141
DateTime.h
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetDiskSnapshotInfo
void SetDiskSnapshotInfo(DiskSnapshotInfo &&value)
Definition: ExportSnapshotRecordSourceInfo.h:326
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ExportSnapshotRecordSourceInfo.h:55
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetArn
void SetArn(const Aws::String &value)
Definition: ExportSnapshotRecordSourceInfo.h:167
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetInstanceSnapshotInfo
void SetInstanceSnapshotInfo(InstanceSnapshotInfo &&value)
Definition: ExportSnapshotRecordSourceInfo.h:295
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithName
ExportSnapshotRecordSourceInfo & WithName(const char *value)
Definition: ExportSnapshotRecordSourceInfo.h:151
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithInstanceSnapshotInfo
ExportSnapshotRecordSourceInfo & WithInstanceSnapshotInfo(InstanceSnapshotInfo &&value)
Definition: ExportSnapshotRecordSourceInfo.h:305
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithInstanceSnapshotInfo
ExportSnapshotRecordSourceInfo & WithInstanceSnapshotInfo(const InstanceSnapshotInfo &value)
Definition: ExportSnapshotRecordSourceInfo.h:300
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetName
void SetName(Aws::String &&value)
Definition: ExportSnapshotRecordSourceInfo.h:131
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithFromResourceName
ExportSnapshotRecordSourceInfo & WithFromResourceName(const Aws::String &value)
Definition: ExportSnapshotRecordSourceInfo.h:223
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::ExportSnapshotRecordSourceInfo
ExportSnapshotRecordSourceInfo()
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetArn
void SetArn(const char *value)
Definition: ExportSnapshotRecordSourceInfo.h:177
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetResourceType
void SetResourceType(const ExportSnapshotRecordSourceType &value)
Definition: ExportSnapshotRecordSourceInfo.h:61
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetFromResourceName
void SetFromResourceName(Aws::String &&value)
Definition: ExportSnapshotRecordSourceInfo.h:213
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::GetDiskSnapshotInfo
const DiskSnapshotInfo & GetDiskSnapshotInfo() const
Definition: ExportSnapshotRecordSourceInfo.h:311
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ExportSnapshotRecordSourceInfo.h:85
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithCreatedAt
ExportSnapshotRecordSourceInfo & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ExportSnapshotRecordSourceInfo.h:105
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithFromResourceName
ExportSnapshotRecordSourceInfo & WithFromResourceName(Aws::String &&value)
Definition: ExportSnapshotRecordSourceInfo.h:228
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::GetArn
const Aws::String & GetArn() const
Definition: ExportSnapshotRecordSourceInfo.h:157
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetName
void SetName(const Aws::String &value)
Definition: ExportSnapshotRecordSourceInfo.h:126
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::InstanceSnapshotInfoHasBeenSet
bool InstanceSnapshotInfoHasBeenSet() const
Definition: ExportSnapshotRecordSourceInfo.h:285
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::GetFromResourceArn
const Aws::String & GetFromResourceArn() const
Definition: ExportSnapshotRecordSourceInfo.h:239
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithFromResourceArn
ExportSnapshotRecordSourceInfo & WithFromResourceArn(const Aws::String &value)
Definition: ExportSnapshotRecordSourceInfo.h:264
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetFromResourceArn
void SetFromResourceArn(const char *value)
Definition: ExportSnapshotRecordSourceInfo.h:259
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::DiskSnapshotInfoHasBeenSet
bool DiskSnapshotInfoHasBeenSet() const
Definition: ExportSnapshotRecordSourceInfo.h:316
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::GetInstanceSnapshotInfo
const InstanceSnapshotInfo & GetInstanceSnapshotInfo() const
Definition: ExportSnapshotRecordSourceInfo.h:280
Aws::Lightsail::Model::DiskSnapshotInfo
Definition: DiskSnapshotInfo.h:30
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::operator=
ExportSnapshotRecordSourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetFromResourceArn
void SetFromResourceArn(Aws::String &&value)
Definition: ExportSnapshotRecordSourceInfo.h:254
Aws::Lightsail::Model::InstanceSnapshotInfo
Definition: InstanceSnapshotInfo.h:34
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ExportSnapshotRecordSourceInfo.h:100
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ExportSnapshotRecordSourceInfo.h:162
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetDiskSnapshotInfo
void SetDiskSnapshotInfo(const DiskSnapshotInfo &value)
Definition: ExportSnapshotRecordSourceInfo.h:321
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithResourceType
ExportSnapshotRecordSourceInfo & WithResourceType(const ExportSnapshotRecordSourceType &value)
Definition: ExportSnapshotRecordSourceInfo.h:73
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::GetFromResourceName
const Aws::String & GetFromResourceName() const
Definition: ExportSnapshotRecordSourceInfo.h:198
Aws::Lightsail::Model::ExportSnapshotRecordSourceType
ExportSnapshotRecordSourceType
Definition: ExportSnapshotRecordSourceType.h:17
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ExportSnapshotRecordSourceInfo.h:90
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithArn
ExportSnapshotRecordSourceInfo & WithArn(Aws::String &&value)
Definition: ExportSnapshotRecordSourceInfo.h:187
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetFromResourceName
void SetFromResourceName(const Aws::String &value)
Definition: ExportSnapshotRecordSourceInfo.h:208
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithFromResourceName
ExportSnapshotRecordSourceInfo & WithFromResourceName(const char *value)
Definition: ExportSnapshotRecordSourceInfo.h:233
DiskSnapshotInfo.h
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetArn
void SetArn(Aws::String &&value)
Definition: ExportSnapshotRecordSourceInfo.h:172
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ExportSnapshotRecordSourceInfo.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithArn
ExportSnapshotRecordSourceInfo & WithArn(const char *value)
Definition: ExportSnapshotRecordSourceInfo.h:192
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithDiskSnapshotInfo
ExportSnapshotRecordSourceInfo & WithDiskSnapshotInfo(const DiskSnapshotInfo &value)
Definition: ExportSnapshotRecordSourceInfo.h:331
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithFromResourceArn
ExportSnapshotRecordSourceInfo & WithFromResourceArn(const char *value)
Definition: ExportSnapshotRecordSourceInfo.h:274
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ExportSnapshotRecordSourceInfo.h:95
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithName
ExportSnapshotRecordSourceInfo & WithName(Aws::String &&value)
Definition: ExportSnapshotRecordSourceInfo.h:146
InstanceSnapshotInfo.h
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::WithFromResourceArn
ExportSnapshotRecordSourceInfo & WithFromResourceArn(Aws::String &&value)
Definition: ExportSnapshotRecordSourceInfo.h:269
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo::ExportSnapshotRecordSourceInfo
ExportSnapshotRecordSourceInfo(Aws::Utils::Json::JsonView jsonValue)