7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Disk.h>
12#include <aws/lightsail/model/InstanceSnapshotState.h>
13#include <aws/lightsail/model/ResourceLocation.h>
14#include <aws/lightsail/model/ResourceType.h>
15#include <aws/lightsail/model/Tag.h>
47 template <
typename NameT = Aws::String>
49 m_nameHasBeenSet =
true;
50 m_name = std::forward<NameT>(value);
52 template <
typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
66 template <
typename ArnT = Aws::String>
68 m_arnHasBeenSet =
true;
69 m_arn = std::forward<ArnT>(value);
71 template <
typename ArnT = Aws::String>
73 SetArn(std::forward<ArnT>(value));
86 template <
typename SupportCodeT = Aws::String>
88 m_supportCodeHasBeenSet =
true;
89 m_supportCode = std::forward<SupportCodeT>(value);
91 template <
typename SupportCodeT = Aws::String>
105 template <
typename CreatedAtT = Aws::Utils::DateTime>
107 m_createdAtHasBeenSet =
true;
108 m_createdAt = std::forward<CreatedAtT>(value);
110 template <
typename CreatedAtT = Aws::Utils::DateTime>
123 template <
typename LocationT = ResourceLocation>
125 m_locationHasBeenSet =
true;
126 m_location = std::forward<LocationT>(value);
128 template <
typename LocationT = ResourceLocation>
142 m_resourceTypeHasBeenSet =
true;
143 m_resourceType = value;
160 template <
typename TagsT = Aws::Vector<Tag>>
162 m_tagsHasBeenSet =
true;
163 m_tags = std::forward<TagsT>(value);
165 template <
typename TagsT = Aws::Vector<Tag>>
167 SetTags(std::forward<TagsT>(value));
170 template <
typename TagsT = Tag>
172 m_tagsHasBeenSet =
true;
173 m_tags.emplace_back(std::forward<TagsT>(value));
185 m_stateHasBeenSet =
true;
201 template <
typename ProgressT = Aws::String>
203 m_progressHasBeenSet =
true;
204 m_progress = std::forward<ProgressT>(value);
206 template <
typename ProgressT = Aws::String>
220 template <
typename FromAttachedDisksT = Aws::Vector<Disk>>
222 m_fromAttachedDisksHasBeenSet =
true;
223 m_fromAttachedDisks = std::forward<FromAttachedDisksT>(value);
225 template <
typename FromAttachedDisksT = Aws::Vector<Disk>>
230 template <
typename FromAttachedDisksT = Disk>
232 m_fromAttachedDisksHasBeenSet =
true;
233 m_fromAttachedDisks.emplace_back(std::forward<FromAttachedDisksT>(value));
244 template <
typename FromInstanceNameT = Aws::String>
246 m_fromInstanceNameHasBeenSet =
true;
247 m_fromInstanceName = std::forward<FromInstanceNameT>(value);
249 template <
typename FromInstanceNameT = Aws::String>
264 template <
typename FromInstanceArnT = Aws::String>
266 m_fromInstanceArnHasBeenSet =
true;
267 m_fromInstanceArn = std::forward<FromInstanceArnT>(value);
269 template <
typename FromInstanceArnT = Aws::String>
284 template <
typename FromBluepr
intIdT = Aws::String>
286 m_fromBlueprintIdHasBeenSet =
true;
287 m_fromBlueprintId = std::forward<FromBlueprintIdT>(value);
289 template <
typename FromBluepr
intIdT = Aws::String>
303 template <
typename FromBundleIdT = Aws::String>
305 m_fromBundleIdHasBeenSet =
true;
306 m_fromBundleId = std::forward<FromBundleIdT>(value);
308 template <
typename FromBundleIdT = Aws::String>
323 m_isFromAutoSnapshotHasBeenSet =
true;
324 m_isFromAutoSnapshot = value;
339 m_sizeInGbHasBeenSet =
true;
356 ResourceLocation m_location;
376 bool m_isFromAutoSnapshot{
false};
379 bool m_nameHasBeenSet =
false;
380 bool m_arnHasBeenSet =
false;
381 bool m_supportCodeHasBeenSet =
false;
382 bool m_createdAtHasBeenSet =
false;
383 bool m_locationHasBeenSet =
false;
384 bool m_resourceTypeHasBeenSet =
false;
385 bool m_tagsHasBeenSet =
false;
386 bool m_stateHasBeenSet =
false;
387 bool m_progressHasBeenSet =
false;
388 bool m_fromAttachedDisksHasBeenSet =
false;
389 bool m_fromInstanceNameHasBeenSet =
false;
390 bool m_fromInstanceArnHasBeenSet =
false;
391 bool m_fromBlueprintIdHasBeenSet =
false;
392 bool m_fromBundleIdHasBeenSet =
false;
393 bool m_isFromAutoSnapshotHasBeenSet =
false;
394 bool m_sizeInGbHasBeenSet =
false;
void SetSizeInGb(int value)
bool ProgressHasBeenSet() const
const Aws::String & GetProgress() const
void SetResourceType(ResourceType value)
AWS_LIGHTSAIL_API InstanceSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceSnapshot & WithArn(ArnT &&value)
bool IsFromAutoSnapshotHasBeenSet() const
void SetTags(TagsT &&value)
bool NameHasBeenSet() const
void SetFromInstanceArn(FromInstanceArnT &&value)
void SetIsFromAutoSnapshot(bool value)
InstanceSnapshot & WithIsFromAutoSnapshot(bool value)
bool FromBundleIdHasBeenSet() const
InstanceSnapshot & WithProgress(ProgressT &&value)
void SetProgress(ProgressT &&value)
InstanceSnapshot & WithResourceType(ResourceType value)
bool CreatedAtHasBeenSet() const
const ResourceLocation & GetLocation() const
void SetState(InstanceSnapshotState value)
AWS_LIGHTSAIL_API InstanceSnapshot(Aws::Utils::Json::JsonView jsonValue)
InstanceSnapshot & AddFromAttachedDisks(FromAttachedDisksT &&value)
const Aws::String & GetName() const
bool FromBlueprintIdHasBeenSet() const
const Aws::String & GetSupportCode() const
InstanceSnapshot & WithState(InstanceSnapshotState value)
void SetSupportCode(SupportCodeT &&value)
const Aws::String & GetArn() const
InstanceSnapshot & WithSupportCode(SupportCodeT &&value)
bool FromInstanceNameHasBeenSet() const
InstanceSnapshot & WithFromInstanceArn(FromInstanceArnT &&value)
void SetArn(ArnT &&value)
InstanceSnapshot & WithName(NameT &&value)
bool SupportCodeHasBeenSet() const
InstanceSnapshot & WithFromInstanceName(FromInstanceNameT &&value)
InstanceSnapshot & WithCreatedAt(CreatedAtT &&value)
bool GetIsFromAutoSnapshot() const
void SetFromBlueprintId(FromBlueprintIdT &&value)
void SetFromAttachedDisks(FromAttachedDisksT &&value)
InstanceSnapshot & WithFromBundleId(FromBundleIdT &&value)
InstanceSnapshot & WithFromAttachedDisks(FromAttachedDisksT &&value)
ResourceType GetResourceType() const
void SetName(NameT &&value)
InstanceSnapshot & WithSizeInGb(int value)
InstanceSnapshot & WithFromBlueprintId(FromBlueprintIdT &&value)
bool StateHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
bool LocationHasBeenSet() const
InstanceSnapshot & WithLocation(LocationT &&value)
void SetFromInstanceName(FromInstanceNameT &&value)
InstanceSnapshotState GetState() const
bool SizeInGbHasBeenSet() const
bool ArnHasBeenSet() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceSnapshot & WithTags(TagsT &&value)
const Aws::String & GetFromInstanceName() const
const Aws::Utils::DateTime & GetCreatedAt() const
bool FromInstanceArnHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool TagsHasBeenSet() const
const Aws::String & GetFromBundleId() const
const Aws::String & GetFromInstanceArn() const
void SetLocation(LocationT &&value)
InstanceSnapshot & AddTags(TagsT &&value)
const Aws::String & GetFromBlueprintId() const
bool FromAttachedDisksHasBeenSet() const
const Aws::Vector< Disk > & GetFromAttachedDisks() const
bool ResourceTypeHasBeenSet() const
void SetFromBundleId(FromBundleIdT &&value)
AWS_LIGHTSAIL_API InstanceSnapshot()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue