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/DiskState.h>
14#include <aws/lightsail/model/AutoMountStatus.h>
15#include <aws/lightsail/model/Tag.h>
16#include <aws/lightsail/model/AddOn.h>
56 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
69 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
70 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
86 inline void SetSupportCode(
const char* value) { m_supportCodeHasBeenSet =
true; m_supportCode.assign(value); }
141 inline Disk&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
142 inline Disk&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
155 inline Disk&
AddAddOns(
const AddOn& value) { m_addOnsHasBeenSet =
true; m_addOns.push_back(value);
return *
this; }
156 inline Disk&
AddAddOns(
AddOn&& value) { m_addOnsHasBeenSet =
true; m_addOns.push_back(std::move(value));
return *
this; }
165 inline void SetSizeInGb(
int value) { m_sizeInGbHasBeenSet =
true; m_sizeInGb = value; }
176 inline void SetIsSystemDisk(
bool value) { m_isSystemDiskHasBeenSet =
true; m_isSystemDisk = value; }
186 inline void SetIops(
int value) { m_iopsHasBeenSet =
true; m_iops = value; }
198 inline void SetPath(
const char* value) { m_pathHasBeenSet =
true; m_path.assign(value); }
211 inline void SetState(
DiskState&& value) { m_stateHasBeenSet =
true; m_state = std::move(value); }
224 inline void SetAttachedTo(
const char* value) { m_attachedToHasBeenSet =
true; m_attachedTo.assign(value); }
236 inline void SetIsAttached(
bool value) { m_isAttachedHasBeenSet =
true; m_isAttached = value; }
256 bool m_nameHasBeenSet =
false;
259 bool m_arnHasBeenSet =
false;
262 bool m_supportCodeHasBeenSet =
false;
265 bool m_createdAtHasBeenSet =
false;
268 bool m_locationHasBeenSet =
false;
271 bool m_resourceTypeHasBeenSet =
false;
274 bool m_tagsHasBeenSet =
false;
277 bool m_addOnsHasBeenSet =
false;
280 bool m_sizeInGbHasBeenSet =
false;
283 bool m_isSystemDiskHasBeenSet =
false;
286 bool m_iopsHasBeenSet =
false;
289 bool m_pathHasBeenSet =
false;
292 bool m_stateHasBeenSet =
false;
295 bool m_attachedToHasBeenSet =
false;
298 bool m_isAttachedHasBeenSet =
false;
301 bool m_autoMountStatusHasBeenSet =
false;
void SetCreatedAt(const Aws::Utils::DateTime &value)
Disk & WithAddOns(const Aws::Vector< AddOn > &value)
const Aws::String & GetPath() const
void SetSupportCode(const char *value)
Disk & WithCreatedAt(const Aws::Utils::DateTime &value)
AWS_LIGHTSAIL_API Disk(Aws::Utils::Json::JsonView jsonValue)
Disk & WithName(const Aws::String &value)
Disk & WithState(DiskState &&value)
AWS_LIGHTSAIL_API Disk & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSupportCode(Aws::String &&value)
const Aws::String & GetAttachedTo() const
bool AutoMountStatusHasBeenSet() const
bool TagsHasBeenSet() const
bool AddOnsHasBeenSet() const
void SetResourceType(ResourceType &&value)
void SetIsSystemDisk(bool value)
void SetSupportCode(const Aws::String &value)
const Aws::String & GetName() const
void SetAttachedTo(const Aws::String &value)
Disk & AddAddOns(AddOn &&value)
Disk & WithAttachedTo(Aws::String &&value)
bool IsSystemDiskHasBeenSet() const
Disk & WithSupportCode(const char *value)
const Aws::String & GetSupportCode() const
Disk & WithTags(const Aws::Vector< Tag > &value)
void SetAutoMountStatus(AutoMountStatus &&value)
bool IsAttachedHasBeenSet() const
bool AttachedToHasBeenSet() const
Disk & WithSupportCode(const Aws::String &value)
void SetAddOns(const Aws::Vector< AddOn > &value)
Disk & WithAttachedTo(const Aws::String &value)
Disk & WithArn(Aws::String &&value)
Disk & WithResourceType(ResourceType &&value)
bool SupportCodeHasBeenSet() const
bool PathHasBeenSet() const
Disk & WithName(const char *value)
void SetName(Aws::String &&value)
bool IopsHasBeenSet() const
bool GetIsSystemDisk() const
const Aws::Vector< Tag > & GetTags() const
Disk & AddTags(Tag &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
bool NameHasBeenSet() const
bool ResourceTypeHasBeenSet() const
Disk & WithLocation(ResourceLocation &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
Disk & WithSupportCode(Aws::String &&value)
void SetAttachedTo(Aws::String &&value)
void SetAutoMountStatus(const AutoMountStatus &value)
Disk & WithIops(int value)
void SetPath(const Aws::String &value)
void SetState(DiskState &&value)
bool SizeInGbHasBeenSet() const
void SetLocation(const ResourceLocation &value)
bool LocationHasBeenSet() const
Disk & WithName(Aws::String &&value)
Disk & WithPath(const Aws::String &value)
void SetIsAttached(bool value)
Disk & WithSizeInGb(int value)
Disk & WithResourceType(const ResourceType &value)
void SetState(const DiskState &value)
void SetPath(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetArn(const Aws::String &value)
void SetArn(Aws::String &&value)
Disk & WithIsSystemDisk(bool value)
Disk & WithIsAttached(bool value)
void SetTags(Aws::Vector< Tag > &&value)
Disk & WithAddOns(Aws::Vector< AddOn > &&value)
const DiskState & GetState() const
void SetName(const char *value)
const Aws::String & GetArn() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
const ResourceType & GetResourceType() const
void SetPath(const char *value)
bool StateHasBeenSet() const
void SetSizeInGb(int value)
const ResourceLocation & GetLocation() const
void SetLocation(ResourceLocation &&value)
Disk & WithCreatedAt(Aws::Utils::DateTime &&value)
Disk & AddTags(const Tag &value)
Disk & WithTags(Aws::Vector< Tag > &&value)
void SetArn(const char *value)
bool GetIsAttached() const
Disk & WithArn(const char *value)
Disk & WithLocation(const ResourceLocation &value)
Disk & WithAutoMountStatus(const AutoMountStatus &value)
void SetAddOns(Aws::Vector< AddOn > &&value)
Disk & AddAddOns(const AddOn &value)
Disk & WithAttachedTo(const char *value)
const AutoMountStatus & GetAutoMountStatus() const
Disk & WithAutoMountStatus(AutoMountStatus &&value)
bool ArnHasBeenSet() const
Disk & WithPath(Aws::String &&value)
void SetResourceType(const ResourceType &value)
Disk & WithPath(const char *value)
bool CreatedAtHasBeenSet() const
Disk & WithState(const DiskState &value)
void SetAttachedTo(const char *value)
const Aws::Vector< AddOn > & GetAddOns() const
Disk & WithArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue