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/drs/Drs_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 drs
22{
23namespace Model
24{
25
32 class Disk
33 {
34 public:
35 AWS_DRS_API Disk();
36 AWS_DRS_API Disk(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DRS_API Disk& operator=(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline long long GetBytes() const{ return m_bytes; }
46 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
47 inline void SetBytes(long long value) { m_bytesHasBeenSet = true; m_bytes = value; }
48 inline Disk& WithBytes(long long value) { SetBytes(value); return *this;}
50
52
55 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
56 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
57 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
58 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
59 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
60 inline Disk& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
61 inline Disk& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
62 inline Disk& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
64 private:
65
66 long long m_bytes;
67 bool m_bytesHasBeenSet = false;
68
69 Aws::String m_deviceName;
70 bool m_deviceNameHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace drs
75} // namespace Aws
Disk & WithBytes(long long value)
Definition Disk.h:48
void SetBytes(long long value)
Definition Disk.h:47
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DRS_API Disk()
Disk & WithDeviceName(const Aws::String &value)
Definition Disk.h:60
void SetDeviceName(Aws::String &&value)
Definition Disk.h:58
bool DeviceNameHasBeenSet() const
Definition Disk.h:56
Disk & WithDeviceName(const char *value)
Definition Disk.h:62
const Aws::String & GetDeviceName() const
Definition Disk.h:55
AWS_DRS_API Disk(Aws::Utils::Json::JsonView jsonValue)
bool BytesHasBeenSet() const
Definition Disk.h:46
AWS_DRS_API Disk & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceName(const Aws::String &value)
Definition Disk.h:57
long long GetBytes() const
Definition Disk.h:45
Disk & WithDeviceName(Aws::String &&value)
Definition Disk.h:61
void SetDeviceName(const char *value)
Definition Disk.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue