AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DiskInfo.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_LIGHTSAIL_API DiskInfo();
35 AWS_LIGHTSAIL_API DiskInfo(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API DiskInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline DiskInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline DiskInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline DiskInfo& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetPath() const{ return m_path; }
59 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
60 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
61 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
62 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
63 inline DiskInfo& WithPath(const Aws::String& value) { SetPath(value); return *this;}
64 inline DiskInfo& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
65 inline DiskInfo& WithPath(const char* value) { SetPath(value); return *this;}
67
69
72 inline int GetSizeInGb() const{ return m_sizeInGb; }
73 inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
74 inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; }
75 inline DiskInfo& WithSizeInGb(int value) { SetSizeInGb(value); return *this;}
77
79
83 inline bool GetIsSystemDisk() const{ return m_isSystemDisk; }
84 inline bool IsSystemDiskHasBeenSet() const { return m_isSystemDiskHasBeenSet; }
85 inline void SetIsSystemDisk(bool value) { m_isSystemDiskHasBeenSet = true; m_isSystemDisk = value; }
86 inline DiskInfo& WithIsSystemDisk(bool value) { SetIsSystemDisk(value); return *this;}
88 private:
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 Aws::String m_path;
94 bool m_pathHasBeenSet = false;
95
96 int m_sizeInGb;
97 bool m_sizeInGbHasBeenSet = false;
98
99 bool m_isSystemDisk;
100 bool m_isSystemDiskHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Lightsail
105} // namespace Aws
DiskInfo & WithPath(const Aws::String &value)
Definition DiskInfo.h:63
DiskInfo & WithName(Aws::String &&value)
Definition DiskInfo.h:50
const Aws::String & GetPath() const
Definition DiskInfo.h:58
void SetIsSystemDisk(bool value)
Definition DiskInfo.h:85
AWS_LIGHTSAIL_API DiskInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
DiskInfo & WithPath(Aws::String &&value)
Definition DiskInfo.h:64
void SetPath(const Aws::String &value)
Definition DiskInfo.h:60
DiskInfo & WithPath(const char *value)
Definition DiskInfo.h:65
DiskInfo & WithName(const char *value)
Definition DiskInfo.h:51
AWS_LIGHTSAIL_API DiskInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const char *value)
Definition DiskInfo.h:48
AWS_LIGHTSAIL_API DiskInfo()
DiskInfo & WithIsSystemDisk(bool value)
Definition DiskInfo.h:86
void SetPath(Aws::String &&value)
Definition DiskInfo.h:61
const Aws::String & GetName() const
Definition DiskInfo.h:44
void SetSizeInGb(int value)
Definition DiskInfo.h:74
DiskInfo & WithSizeInGb(int value)
Definition DiskInfo.h:75
void SetName(Aws::String &&value)
Definition DiskInfo.h:47
void SetName(const Aws::String &value)
Definition DiskInfo.h:46
DiskInfo & WithName(const Aws::String &value)
Definition DiskInfo.h:49
void SetPath(const char *value)
Definition DiskInfo.h:62
bool IsSystemDiskHasBeenSet() const
Definition DiskInfo.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue