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/DiskSnapshotState.h>
12#include <aws/lightsail/model/ResourceLocation.h>
13#include <aws/lightsail/model/ResourceType.h>
14#include <aws/lightsail/model/Tag.h>
46 template <
typename NameT = Aws::String>
48 m_nameHasBeenSet =
true;
49 m_name = std::forward<NameT>(value);
51 template <
typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
64 template <
typename ArnT = Aws::String>
66 m_arnHasBeenSet =
true;
67 m_arn = std::forward<ArnT>(value);
69 template <
typename ArnT = Aws::String>
71 SetArn(std::forward<ArnT>(value));
84 template <
typename SupportCodeT = Aws::String>
86 m_supportCodeHasBeenSet =
true;
87 m_supportCode = std::forward<SupportCodeT>(value);
89 template <
typename SupportCodeT = Aws::String>
102 template <
typename CreatedAtT = Aws::Utils::DateTime>
104 m_createdAtHasBeenSet =
true;
105 m_createdAt = std::forward<CreatedAtT>(value);
107 template <
typename CreatedAtT = Aws::Utils::DateTime>
120 template <
typename LocationT = ResourceLocation>
122 m_locationHasBeenSet =
true;
123 m_location = std::forward<LocationT>(value);
125 template <
typename LocationT = ResourceLocation>
139 m_resourceTypeHasBeenSet =
true;
140 m_resourceType = value;
157 template <
typename TagsT = Aws::Vector<Tag>>
159 m_tagsHasBeenSet =
true;
160 m_tags = std::forward<TagsT>(value);
162 template <
typename TagsT = Aws::Vector<Tag>>
164 SetTags(std::forward<TagsT>(value));
167 template <
typename TagsT = Tag>
169 m_tagsHasBeenSet =
true;
170 m_tags.emplace_back(std::forward<TagsT>(value));
182 m_sizeInGbHasBeenSet =
true;
198 m_stateHasBeenSet =
true;
213 template <
typename ProgressT = Aws::String>
215 m_progressHasBeenSet =
true;
216 m_progress = std::forward<ProgressT>(value);
218 template <
typename ProgressT = Aws::String>
232 template <
typename FromDiskNameT = Aws::String>
234 m_fromDiskNameHasBeenSet =
true;
235 m_fromDiskName = std::forward<FromDiskNameT>(value);
237 template <
typename FromDiskNameT = Aws::String>
251 template <
typename FromDiskArnT = Aws::String>
253 m_fromDiskArnHasBeenSet =
true;
254 m_fromDiskArn = std::forward<FromDiskArnT>(value);
256 template <
typename FromDiskArnT = Aws::String>
270 template <
typename FromInstanceNameT = Aws::String>
272 m_fromInstanceNameHasBeenSet =
true;
273 m_fromInstanceName = std::forward<FromInstanceNameT>(value);
275 template <
typename FromInstanceNameT = Aws::String>
289 template <
typename FromInstanceArnT = Aws::String>
291 m_fromInstanceArnHasBeenSet =
true;
292 m_fromInstanceArn = std::forward<FromInstanceArnT>(value);
294 template <
typename FromInstanceArnT = Aws::String>
309 m_isFromAutoSnapshotHasBeenSet =
true;
310 m_isFromAutoSnapshot = value;
319 bool m_nameHasBeenSet =
false;
322 bool m_arnHasBeenSet =
false;
325 bool m_supportCodeHasBeenSet =
false;
328 bool m_createdAtHasBeenSet =
false;
330 ResourceLocation m_location;
331 bool m_locationHasBeenSet =
false;
334 bool m_resourceTypeHasBeenSet =
false;
337 bool m_tagsHasBeenSet =
false;
340 bool m_sizeInGbHasBeenSet =
false;
343 bool m_stateHasBeenSet =
false;
346 bool m_progressHasBeenSet =
false;
349 bool m_fromDiskNameHasBeenSet =
false;
352 bool m_fromDiskArnHasBeenSet =
false;
355 bool m_fromInstanceNameHasBeenSet =
false;
358 bool m_fromInstanceArnHasBeenSet =
false;
360 bool m_isFromAutoSnapshot{
false};
361 bool m_isFromAutoSnapshotHasBeenSet =
false;
bool ArnHasBeenSet() const
DiskSnapshot & WithIsFromAutoSnapshot(bool value)
void SetName(NameT &&value)
bool ProgressHasBeenSet() const
DiskSnapshot & WithProgress(ProgressT &&value)
const Aws::String & GetProgress() const
void SetSizeInGb(int value)
DiskSnapshot & WithSupportCode(SupportCodeT &&value)
bool FromDiskArnHasBeenSet() const
DiskSnapshot & WithLocation(LocationT &&value)
DiskSnapshot & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetFromDiskName() const
void SetProgress(ProgressT &&value)
void SetSupportCode(SupportCodeT &&value)
bool GetIsFromAutoSnapshot() const
bool StateHasBeenSet() const
void SetLocation(LocationT &&value)
void SetFromDiskName(FromDiskNameT &&value)
bool CreatedAtHasBeenSet() const
bool FromDiskNameHasBeenSet() const
const Aws::String & GetFromInstanceArn() const
void SetResourceType(ResourceType value)
DiskSnapshot & WithResourceType(ResourceType value)
bool IsFromAutoSnapshotHasBeenSet() const
DiskSnapshot & WithFromDiskArn(FromDiskArnT &&value)
AWS_LIGHTSAIL_API DiskSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIsFromAutoSnapshot(bool value)
DiskSnapshot & WithState(DiskSnapshotState value)
DiskSnapshot & WithFromInstanceName(FromInstanceNameT &&value)
const Aws::String & GetSupportCode() const
void SetTags(TagsT &&value)
const Aws::String & GetFromInstanceName() const
const Aws::String & GetFromDiskArn() const
void SetState(DiskSnapshotState value)
bool ResourceTypeHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
bool SupportCodeHasBeenSet() const
DiskSnapshot & WithFromInstanceArn(FromInstanceArnT &&value)
void SetFromInstanceName(FromInstanceNameT &&value)
DiskSnapshot & WithFromDiskName(FromDiskNameT &&value)
void SetArn(ArnT &&value)
bool FromInstanceNameHasBeenSet() const
bool NameHasBeenSet() const
DiskSnapshot & WithName(NameT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
DiskSnapshot & WithSizeInGb(int value)
bool TagsHasBeenSet() const
bool FromInstanceArnHasBeenSet() const
bool SizeInGbHasBeenSet() const
const Aws::String & GetArn() const
void SetFromDiskArn(FromDiskArnT &&value)
ResourceType GetResourceType() const
AWS_LIGHTSAIL_API DiskSnapshot()=default
void SetFromInstanceArn(FromInstanceArnT &&value)
DiskSnapshot & AddTags(TagsT &&value)
const ResourceLocation & GetLocation() const
AWS_LIGHTSAIL_API DiskSnapshot(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
DiskSnapshot & WithTags(TagsT &&value)
DiskSnapshotState GetState() const
DiskSnapshot & WithArn(ArnT &&value)
bool LocationHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue