AWS SDK for C++  1.9.104
AWS SDK for C++
AttachedDisk.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 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetPath() const{ return m_path; }
45 
49  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
50 
54  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
55 
59  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
60 
64  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
65 
69  inline AttachedDisk& WithPath(const Aws::String& value) { SetPath(value); return *this;}
70 
74  inline AttachedDisk& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
75 
79  inline AttachedDisk& WithPath(const char* value) { SetPath(value); return *this;}
80 
81 
85  inline int GetSizeInGb() const{ return m_sizeInGb; }
86 
90  inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
91 
95  inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; }
96 
100  inline AttachedDisk& WithSizeInGb(int value) { SetSizeInGb(value); return *this;}
101 
102  private:
103 
104  Aws::String m_path;
105  bool m_pathHasBeenSet;
106 
107  int m_sizeInGb;
108  bool m_sizeInGbHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace Lightsail
113 } // namespace Aws
Aws::Lightsail::Model::AttachedDisk
Definition: AttachedDisk.h:33
Aws::Lightsail::Model::AttachedDisk::PathHasBeenSet
bool PathHasBeenSet() const
Definition: AttachedDisk.h:49
Aws::Lightsail::Model::AttachedDisk::operator=
AttachedDisk & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::AttachedDisk::GetSizeInGb
int GetSizeInGb() const
Definition: AttachedDisk.h:85
Aws::Lightsail::Model::AttachedDisk::WithPath
AttachedDisk & WithPath(Aws::String &&value)
Definition: AttachedDisk.h:74
Aws::Lightsail::Model::AttachedDisk::GetPath
const Aws::String & GetPath() const
Definition: AttachedDisk.h:44
Aws::Lightsail::Model::AttachedDisk::AttachedDisk
AttachedDisk(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::AttachedDisk::SetPath
void SetPath(const char *value)
Definition: AttachedDisk.h:64
Aws::Lightsail::Model::AttachedDisk::WithSizeInGb
AttachedDisk & WithSizeInGb(int value)
Definition: AttachedDisk.h:100
Aws::Lightsail::Model::AttachedDisk::AttachedDisk
AttachedDisk()
Aws::Lightsail::Model::AttachedDisk::SetPath
void SetPath(const Aws::String &value)
Definition: AttachedDisk.h:54
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Lightsail::Model::AttachedDisk::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AttachedDisk::SizeInGbHasBeenSet
bool SizeInGbHasBeenSet() const
Definition: AttachedDisk.h:90
Aws::Lightsail::Model::AttachedDisk::WithPath
AttachedDisk & WithPath(const Aws::String &value)
Definition: AttachedDisk.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AttachedDisk::WithPath
AttachedDisk & WithPath(const char *value)
Definition: AttachedDisk.h:79
Aws::Lightsail::Model::AttachedDisk::SetSizeInGb
void SetSizeInGb(int value)
Definition: AttachedDisk.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AttachedDisk::SetPath
void SetPath(Aws::String &&value)
Definition: AttachedDisk.h:59