7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/InstanceSnapshotState.h>
14#include <aws/lightsail/model/Tag.h>
15#include <aws/lightsail/model/Disk.h>
53 template<
typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
55 template<
typename NameT = Aws::String>
66 template<
typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
68 template<
typename ArnT = Aws::String>
80 template<
typename SupportCodeT = Aws::String>
81 void SetSupportCode(SupportCodeT&& value) { m_supportCodeHasBeenSet =
true; m_supportCode = std::forward<SupportCodeT>(value); }
82 template<
typename SupportCodeT = Aws::String>
93 template<
typename CreatedAtT = Aws::Utils::DateTime>
94 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
95 template<
typename CreatedAtT = Aws::Utils::DateTime>
105 template<
typename LocationT = ResourceLocation>
106 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
107 template<
typename LocationT = ResourceLocation>
130 template<
typename TagsT = Aws::Vector<Tag>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
132 template<
typename TagsT = Aws::Vector<Tag>>
134 template<
typename TagsT = Tag>
135 InstanceSnapshot&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
155 template<
typename ProgressT = Aws::String>
156 void SetProgress(ProgressT&& value) { m_progressHasBeenSet =
true; m_progress = std::forward<ProgressT>(value); }
157 template<
typename ProgressT = Aws::String>
168 template<
typename FromAttachedDisksT = Aws::Vector<Disk>>
169 void SetFromAttachedDisks(FromAttachedDisksT&& value) { m_fromAttachedDisksHasBeenSet =
true; m_fromAttachedDisks = std::forward<FromAttachedDisksT>(value); }
170 template<
typename FromAttachedDisksT = Aws::Vector<Disk>>
172 template<
typename FromAttachedDisksT = Disk>
173 InstanceSnapshot&
AddFromAttachedDisks(FromAttachedDisksT&& value) { m_fromAttachedDisksHasBeenSet =
true; m_fromAttachedDisks.emplace_back(std::forward<FromAttachedDisksT>(value));
return *
this; }
182 template<
typename FromInstanceNameT = Aws::String>
183 void SetFromInstanceName(FromInstanceNameT&& value) { m_fromInstanceNameHasBeenSet =
true; m_fromInstanceName = std::forward<FromInstanceNameT>(value); }
184 template<
typename FromInstanceNameT = Aws::String>
196 template<
typename FromInstanceArnT = Aws::String>
197 void SetFromInstanceArn(FromInstanceArnT&& value) { m_fromInstanceArnHasBeenSet =
true; m_fromInstanceArn = std::forward<FromInstanceArnT>(value); }
198 template<
typename FromInstanceArnT = Aws::String>
210 template<
typename FromBluepr
intIdT = Aws::String>
211 void SetFromBlueprintId(FromBlueprintIdT&& value) { m_fromBlueprintIdHasBeenSet =
true; m_fromBlueprintId = std::forward<FromBlueprintIdT>(value); }
212 template<
typename FromBluepr
intIdT = Aws::String>
223 template<
typename FromBundleIdT = Aws::String>
224 void SetFromBundleId(FromBundleIdT&& value) { m_fromBundleIdHasBeenSet =
true; m_fromBundleId = std::forward<FromBundleIdT>(value); }
225 template<
typename FromBundleIdT = Aws::String>
236 inline void SetIsFromAutoSnapshot(
bool value) { m_isFromAutoSnapshotHasBeenSet =
true; m_isFromAutoSnapshot = value; }
246 inline void SetSizeInGb(
int value) { m_sizeInGbHasBeenSet =
true; m_sizeInGb = value; }
252 bool m_nameHasBeenSet =
false;
255 bool m_arnHasBeenSet =
false;
258 bool m_supportCodeHasBeenSet =
false;
261 bool m_createdAtHasBeenSet =
false;
263 ResourceLocation m_location;
264 bool m_locationHasBeenSet =
false;
267 bool m_resourceTypeHasBeenSet =
false;
270 bool m_tagsHasBeenSet =
false;
273 bool m_stateHasBeenSet =
false;
276 bool m_progressHasBeenSet =
false;
279 bool m_fromAttachedDisksHasBeenSet =
false;
282 bool m_fromInstanceNameHasBeenSet =
false;
285 bool m_fromInstanceArnHasBeenSet =
false;
288 bool m_fromBlueprintIdHasBeenSet =
false;
291 bool m_fromBundleIdHasBeenSet =
false;
293 bool m_isFromAutoSnapshot{
false};
294 bool m_isFromAutoSnapshotHasBeenSet =
false;
297 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