AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AttachedDisk.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
29 public:
30 AWS_LIGHTSAIL_API AttachedDisk() = default;
31 AWS_LIGHTSAIL_API AttachedDisk(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LIGHTSAIL_API AttachedDisk& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetPath() const { return m_path; }
40 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
41 template <typename PathT = Aws::String>
42 void SetPath(PathT&& value) {
43 m_pathHasBeenSet = true;
44 m_path = std::forward<PathT>(value);
45 }
46 template <typename PathT = Aws::String>
47 AttachedDisk& WithPath(PathT&& value) {
48 SetPath(std::forward<PathT>(value));
49 return *this;
50 }
52
54
57 inline int GetSizeInGb() const { return m_sizeInGb; }
58 inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
59 inline void SetSizeInGb(int value) {
60 m_sizeInGbHasBeenSet = true;
61 m_sizeInGb = value;
62 }
63 inline AttachedDisk& WithSizeInGb(int value) {
64 SetSizeInGb(value);
65 return *this;
66 }
68 private:
69 Aws::String m_path;
70
71 int m_sizeInGb{0};
72 bool m_pathHasBeenSet = false;
73 bool m_sizeInGbHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Lightsail
78} // namespace Aws
const Aws::String & GetPath() const
AWS_LIGHTSAIL_API AttachedDisk & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API AttachedDisk()=default
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AttachedDisk & WithSizeInGb(int value)
AttachedDisk & WithPath(PathT &&value)
AWS_LIGHTSAIL_API AttachedDisk(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue