AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Disk.h
1
6#pragma once
7#include <aws/mgn/Mgn_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 mgn
22{
23namespace Model
24{
25
31 class Disk
32 {
33 public:
34 AWS_MGN_API Disk();
35 AWS_MGN_API Disk(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MGN_API Disk& operator=(Aws::Utils::Json::JsonView jsonValue);
38
39
41
44 inline long long GetBytes() const{ return m_bytes; }
45 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
46 inline void SetBytes(long long value) { m_bytesHasBeenSet = true; m_bytes = value; }
47 inline Disk& WithBytes(long long value) { SetBytes(value); return *this;}
49
51
54 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
55 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
56 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
57 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
58 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
59 inline Disk& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
60 inline Disk& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
61 inline Disk& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
63 private:
64
65 long long m_bytes;
66 bool m_bytesHasBeenSet = false;
67
68 Aws::String m_deviceName;
69 bool m_deviceNameHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace mgn
74} // namespace Aws
bool BytesHasBeenSet() const
Definition Disk.h:45
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MGN_API Disk & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetBytes() const
Definition Disk.h:44
Disk & WithDeviceName(const Aws::String &value)
Definition Disk.h:59
bool DeviceNameHasBeenSet() const
Definition Disk.h:55
void SetDeviceName(const Aws::String &value)
Definition Disk.h:56
Disk & WithDeviceName(const char *value)
Definition Disk.h:61
void SetDeviceName(const char *value)
Definition Disk.h:58
Disk & WithDeviceName(Aws::String &&value)
Definition Disk.h:60
Disk & WithBytes(long long value)
Definition Disk.h:47
void SetDeviceName(Aws::String &&value)
Definition Disk.h:57
AWS_MGN_API Disk(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API Disk()
const Aws::String & GetDeviceName() const
Definition Disk.h:54
void SetBytes(long long value)
Definition Disk.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue