AWS SDK for C++  1.9.103
AWS SDK for C++
DiskInfo.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline DiskInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline DiskInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 
78  inline DiskInfo& WithName(const char* value) { SetName(value); return *this;}
79 
80 
84  inline const Aws::String& GetPath() const{ return m_path; }
85 
89  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
90 
94  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
95 
99  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
100 
104  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
105 
109  inline DiskInfo& WithPath(const Aws::String& value) { SetPath(value); return *this;}
110 
114  inline DiskInfo& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
115 
119  inline DiskInfo& WithPath(const char* value) { SetPath(value); return *this;}
120 
121 
125  inline int GetSizeInGb() const{ return m_sizeInGb; }
126 
130  inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
131 
135  inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; }
136 
140  inline DiskInfo& WithSizeInGb(int value) { SetSizeInGb(value); return *this;}
141 
142 
147  inline bool GetIsSystemDisk() const{ return m_isSystemDisk; }
148 
153  inline bool IsSystemDiskHasBeenSet() const { return m_isSystemDiskHasBeenSet; }
154 
159  inline void SetIsSystemDisk(bool value) { m_isSystemDiskHasBeenSet = true; m_isSystemDisk = value; }
160 
165  inline DiskInfo& WithIsSystemDisk(bool value) { SetIsSystemDisk(value); return *this;}
166 
167  private:
168 
169  Aws::String m_name;
170  bool m_nameHasBeenSet;
171 
172  Aws::String m_path;
173  bool m_pathHasBeenSet;
174 
175  int m_sizeInGb;
176  bool m_sizeInGbHasBeenSet;
177 
178  bool m_isSystemDisk;
179  bool m_isSystemDiskHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace Lightsail
184 } // namespace Aws
Aws::Lightsail::Model::DiskInfo::GetName
const Aws::String & GetName() const
Definition: DiskInfo.h:43
Aws::Lightsail::Model::DiskInfo::GetPath
const Aws::String & GetPath() const
Definition: DiskInfo.h:84
Aws::Lightsail::Model::DiskInfo::DiskInfo
DiskInfo()
Aws::Lightsail::Model::DiskInfo::WithIsSystemDisk
DiskInfo & WithIsSystemDisk(bool value)
Definition: DiskInfo.h:165
Aws::Lightsail::Model::DiskInfo::WithName
DiskInfo & WithName(Aws::String &&value)
Definition: DiskInfo.h:73
Aws::Lightsail::Model::DiskInfo::SetName
void SetName(Aws::String &&value)
Definition: DiskInfo.h:58
Aws::Lightsail::Model::DiskInfo::SetName
void SetName(const char *value)
Definition: DiskInfo.h:63
Aws::Lightsail::Model::DiskInfo::WithPath
DiskInfo & WithPath(const char *value)
Definition: DiskInfo.h:119
Aws::Lightsail::Model::DiskInfo::GetIsSystemDisk
bool GetIsSystemDisk() const
Definition: DiskInfo.h:147
Aws::Lightsail::Model::DiskInfo::DiskInfo
DiskInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::DiskInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::DiskInfo::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DiskInfo.h:48
Aws::Lightsail::Model::DiskInfo::SizeInGbHasBeenSet
bool SizeInGbHasBeenSet() const
Definition: DiskInfo.h:130
Aws::Lightsail::Model::DiskInfo::SetName
void SetName(const Aws::String &value)
Definition: DiskInfo.h:53
Aws::Lightsail::Model::DiskInfo::SetPath
void SetPath(const char *value)
Definition: DiskInfo.h:104
Aws::Lightsail::Model::DiskInfo::operator=
DiskInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::DiskInfo::WithPath
DiskInfo & WithPath(const Aws::String &value)
Definition: DiskInfo.h:109
Aws::Lightsail::Model::DiskInfo::WithName
DiskInfo & WithName(const Aws::String &value)
Definition: DiskInfo.h:68
Aws::Lightsail::Model::DiskInfo::WithName
DiskInfo & WithName(const char *value)
Definition: DiskInfo.h:78
Aws::Lightsail::Model::DiskInfo::SetPath
void SetPath(const Aws::String &value)
Definition: DiskInfo.h:94
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::DiskInfo::PathHasBeenSet
bool PathHasBeenSet() const
Definition: DiskInfo.h:89
Aws::Lightsail::Model::DiskInfo::SetSizeInGb
void SetSizeInGb(int value)
Definition: DiskInfo.h:135
Lightsail_EXPORTS.h
Aws::Lightsail::Model::DiskInfo::WithPath
DiskInfo & WithPath(Aws::String &&value)
Definition: DiskInfo.h:114
Aws::Lightsail::Model::DiskInfo
Definition: DiskInfo.h:32
Aws::Lightsail::Model::DiskInfo::WithSizeInGb
DiskInfo & WithSizeInGb(int value)
Definition: DiskInfo.h:140
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::DiskInfo::GetSizeInGb
int GetSizeInGb() const
Definition: DiskInfo.h:125
Aws::Lightsail::Model::DiskInfo::SetPath
void SetPath(Aws::String &&value)
Definition: DiskInfo.h:99
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DiskInfo::SetIsSystemDisk
void SetIsSystemDisk(bool value)
Definition: DiskInfo.h:159
Aws::Lightsail::Model::DiskInfo::IsSystemDiskHasBeenSet
bool IsSystemDiskHasBeenSet() const
Definition: DiskInfo.h:153