AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 DiskInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
60 template<typename PathT = Aws::String>
61 DiskInfo& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
63
65
68 inline int GetSizeInGb() const { return m_sizeInGb; }
69 inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
70 inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; }
71 inline DiskInfo& WithSizeInGb(int value) { SetSizeInGb(value); return *this;}
73
75
79 inline bool GetIsSystemDisk() const { return m_isSystemDisk; }
80 inline bool IsSystemDiskHasBeenSet() const { return m_isSystemDiskHasBeenSet; }
81 inline void SetIsSystemDisk(bool value) { m_isSystemDiskHasBeenSet = true; m_isSystemDisk = value; }
82 inline DiskInfo& WithIsSystemDisk(bool value) { SetIsSystemDisk(value); return *this;}
84 private:
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 Aws::String m_path;
90 bool m_pathHasBeenSet = false;
91
92 int m_sizeInGb{0};
93 bool m_sizeInGbHasBeenSet = false;
94
95 bool m_isSystemDisk{false};
96 bool m_isSystemDiskHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Lightsail
101} // namespace Aws
const Aws::String & GetPath() const
Definition DiskInfo.h:56
void SetIsSystemDisk(bool value)
Definition DiskInfo.h:81
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:49
DiskInfo & WithPath(PathT &&value)
Definition DiskInfo.h:61
DiskInfo & WithIsSystemDisk(bool value)
Definition DiskInfo.h:82
const Aws::String & GetName() const
Definition DiskInfo.h:44
void SetSizeInGb(int value)
Definition DiskInfo.h:70
DiskInfo & WithSizeInGb(int value)
Definition DiskInfo.h:71
void SetName(NameT &&value)
Definition DiskInfo.h:47
bool IsSystemDiskHasBeenSet() const
Definition DiskInfo.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue