AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DiskInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
27class DiskInfo {
28 public:
29 AWS_LIGHTSAIL_API DiskInfo() = default;
30 AWS_LIGHTSAIL_API DiskInfo(Aws::Utils::Json::JsonView jsonValue);
31 AWS_LIGHTSAIL_API DiskInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 DiskInfo& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPath() const { return m_path; }
57 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
58 template <typename PathT = Aws::String>
59 void SetPath(PathT&& value) {
60 m_pathHasBeenSet = true;
61 m_path = std::forward<PathT>(value);
62 }
63 template <typename PathT = Aws::String>
64 DiskInfo& WithPath(PathT&& value) {
65 SetPath(std::forward<PathT>(value));
66 return *this;
67 }
69
71
74 inline int GetSizeInGb() const { return m_sizeInGb; }
75 inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
76 inline void SetSizeInGb(int value) {
77 m_sizeInGbHasBeenSet = true;
78 m_sizeInGb = value;
79 }
80 inline DiskInfo& WithSizeInGb(int value) {
81 SetSizeInGb(value);
82 return *this;
83 }
85
87
91 inline bool GetIsSystemDisk() const { return m_isSystemDisk; }
92 inline bool IsSystemDiskHasBeenSet() const { return m_isSystemDiskHasBeenSet; }
93 inline void SetIsSystemDisk(bool value) {
94 m_isSystemDiskHasBeenSet = true;
95 m_isSystemDisk = value;
96 }
97 inline DiskInfo& WithIsSystemDisk(bool value) {
98 SetIsSystemDisk(value);
99 return *this;
100 }
102 private:
103 Aws::String m_name;
104
105 Aws::String m_path;
106
107 int m_sizeInGb{0};
108
109 bool m_isSystemDisk{false};
110 bool m_nameHasBeenSet = false;
111 bool m_pathHasBeenSet = false;
112 bool m_sizeInGbHasBeenSet = false;
113 bool m_isSystemDiskHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace Lightsail
118} // namespace Aws
const Aws::String & GetPath() const
Definition DiskInfo.h:56
void SetIsSystemDisk(bool value)
Definition DiskInfo.h:93
AWS_LIGHTSAIL_API DiskInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API DiskInfo()=default
AWS_LIGHTSAIL_API DiskInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPath(PathT &&value)
Definition DiskInfo.h:59
DiskInfo & WithName(NameT &&value)
Definition DiskInfo.h:46
DiskInfo & WithPath(PathT &&value)
Definition DiskInfo.h:64
DiskInfo & WithIsSystemDisk(bool value)
Definition DiskInfo.h:97
const Aws::String & GetName() const
Definition DiskInfo.h:38
void SetSizeInGb(int value)
Definition DiskInfo.h:76
DiskInfo & WithSizeInGb(int value)
Definition DiskInfo.h:80
void SetName(NameT &&value)
Definition DiskInfo.h:41
bool IsSystemDiskHasBeenSet() const
Definition DiskInfo.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue