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/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace StorageGateway
23{
24namespace Model
25{
26
32 class Disk
33 {
34 public:
35 AWS_STORAGEGATEWAY_API Disk();
36 AWS_STORAGEGATEWAY_API Disk(Aws::Utils::Json::JsonView jsonValue);
37 AWS_STORAGEGATEWAY_API Disk& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetDiskId() const{ return m_diskId; }
47 inline bool DiskIdHasBeenSet() const { return m_diskIdHasBeenSet; }
48 inline void SetDiskId(const Aws::String& value) { m_diskIdHasBeenSet = true; m_diskId = value; }
49 inline void SetDiskId(Aws::String&& value) { m_diskIdHasBeenSet = true; m_diskId = std::move(value); }
50 inline void SetDiskId(const char* value) { m_diskIdHasBeenSet = true; m_diskId.assign(value); }
51 inline Disk& WithDiskId(const Aws::String& value) { SetDiskId(value); return *this;}
52 inline Disk& WithDiskId(Aws::String&& value) { SetDiskId(std::move(value)); return *this;}
53 inline Disk& WithDiskId(const char* value) { SetDiskId(value); return *this;}
55
57
60 inline const Aws::String& GetDiskPath() const{ return m_diskPath; }
61 inline bool DiskPathHasBeenSet() const { return m_diskPathHasBeenSet; }
62 inline void SetDiskPath(const Aws::String& value) { m_diskPathHasBeenSet = true; m_diskPath = value; }
63 inline void SetDiskPath(Aws::String&& value) { m_diskPathHasBeenSet = true; m_diskPath = std::move(value); }
64 inline void SetDiskPath(const char* value) { m_diskPathHasBeenSet = true; m_diskPath.assign(value); }
65 inline Disk& WithDiskPath(const Aws::String& value) { SetDiskPath(value); return *this;}
66 inline Disk& WithDiskPath(Aws::String&& value) { SetDiskPath(std::move(value)); return *this;}
67 inline Disk& WithDiskPath(const char* value) { SetDiskPath(value); return *this;}
69
71
75 inline const Aws::String& GetDiskNode() const{ return m_diskNode; }
76 inline bool DiskNodeHasBeenSet() const { return m_diskNodeHasBeenSet; }
77 inline void SetDiskNode(const Aws::String& value) { m_diskNodeHasBeenSet = true; m_diskNode = value; }
78 inline void SetDiskNode(Aws::String&& value) { m_diskNodeHasBeenSet = true; m_diskNode = std::move(value); }
79 inline void SetDiskNode(const char* value) { m_diskNodeHasBeenSet = true; m_diskNode.assign(value); }
80 inline Disk& WithDiskNode(const Aws::String& value) { SetDiskNode(value); return *this;}
81 inline Disk& WithDiskNode(Aws::String&& value) { SetDiskNode(std::move(value)); return *this;}
82 inline Disk& WithDiskNode(const char* value) { SetDiskNode(value); return *this;}
84
86
89 inline const Aws::String& GetDiskStatus() const{ return m_diskStatus; }
90 inline bool DiskStatusHasBeenSet() const { return m_diskStatusHasBeenSet; }
91 inline void SetDiskStatus(const Aws::String& value) { m_diskStatusHasBeenSet = true; m_diskStatus = value; }
92 inline void SetDiskStatus(Aws::String&& value) { m_diskStatusHasBeenSet = true; m_diskStatus = std::move(value); }
93 inline void SetDiskStatus(const char* value) { m_diskStatusHasBeenSet = true; m_diskStatus.assign(value); }
94 inline Disk& WithDiskStatus(const Aws::String& value) { SetDiskStatus(value); return *this;}
95 inline Disk& WithDiskStatus(Aws::String&& value) { SetDiskStatus(std::move(value)); return *this;}
96 inline Disk& WithDiskStatus(const char* value) { SetDiskStatus(value); return *this;}
98
100
103 inline long long GetDiskSizeInBytes() const{ return m_diskSizeInBytes; }
104 inline bool DiskSizeInBytesHasBeenSet() const { return m_diskSizeInBytesHasBeenSet; }
105 inline void SetDiskSizeInBytes(long long value) { m_diskSizeInBytesHasBeenSet = true; m_diskSizeInBytes = value; }
106 inline Disk& WithDiskSizeInBytes(long long value) { SetDiskSizeInBytes(value); return *this;}
108
110
111 inline const Aws::String& GetDiskAllocationType() const{ return m_diskAllocationType; }
112 inline bool DiskAllocationTypeHasBeenSet() const { return m_diskAllocationTypeHasBeenSet; }
113 inline void SetDiskAllocationType(const Aws::String& value) { m_diskAllocationTypeHasBeenSet = true; m_diskAllocationType = value; }
114 inline void SetDiskAllocationType(Aws::String&& value) { m_diskAllocationTypeHasBeenSet = true; m_diskAllocationType = std::move(value); }
115 inline void SetDiskAllocationType(const char* value) { m_diskAllocationTypeHasBeenSet = true; m_diskAllocationType.assign(value); }
116 inline Disk& WithDiskAllocationType(const Aws::String& value) { SetDiskAllocationType(value); return *this;}
117 inline Disk& WithDiskAllocationType(Aws::String&& value) { SetDiskAllocationType(std::move(value)); return *this;}
118 inline Disk& WithDiskAllocationType(const char* value) { SetDiskAllocationType(value); return *this;}
120
122
127 inline const Aws::String& GetDiskAllocationResource() const{ return m_diskAllocationResource; }
128 inline bool DiskAllocationResourceHasBeenSet() const { return m_diskAllocationResourceHasBeenSet; }
129 inline void SetDiskAllocationResource(const Aws::String& value) { m_diskAllocationResourceHasBeenSet = true; m_diskAllocationResource = value; }
130 inline void SetDiskAllocationResource(Aws::String&& value) { m_diskAllocationResourceHasBeenSet = true; m_diskAllocationResource = std::move(value); }
131 inline void SetDiskAllocationResource(const char* value) { m_diskAllocationResourceHasBeenSet = true; m_diskAllocationResource.assign(value); }
132 inline Disk& WithDiskAllocationResource(const Aws::String& value) { SetDiskAllocationResource(value); return *this;}
133 inline Disk& WithDiskAllocationResource(Aws::String&& value) { SetDiskAllocationResource(std::move(value)); return *this;}
134 inline Disk& WithDiskAllocationResource(const char* value) { SetDiskAllocationResource(value); return *this;}
136
138
139 inline const Aws::Vector<Aws::String>& GetDiskAttributeList() const{ return m_diskAttributeList; }
140 inline bool DiskAttributeListHasBeenSet() const { return m_diskAttributeListHasBeenSet; }
141 inline void SetDiskAttributeList(const Aws::Vector<Aws::String>& value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList = value; }
142 inline void SetDiskAttributeList(Aws::Vector<Aws::String>&& value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList = std::move(value); }
143 inline Disk& WithDiskAttributeList(const Aws::Vector<Aws::String>& value) { SetDiskAttributeList(value); return *this;}
144 inline Disk& WithDiskAttributeList(Aws::Vector<Aws::String>&& value) { SetDiskAttributeList(std::move(value)); return *this;}
145 inline Disk& AddDiskAttributeList(const Aws::String& value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList.push_back(value); return *this; }
146 inline Disk& AddDiskAttributeList(Aws::String&& value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList.push_back(std::move(value)); return *this; }
147 inline Disk& AddDiskAttributeList(const char* value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList.push_back(value); return *this; }
149 private:
150
151 Aws::String m_diskId;
152 bool m_diskIdHasBeenSet = false;
153
154 Aws::String m_diskPath;
155 bool m_diskPathHasBeenSet = false;
156
157 Aws::String m_diskNode;
158 bool m_diskNodeHasBeenSet = false;
159
160 Aws::String m_diskStatus;
161 bool m_diskStatusHasBeenSet = false;
162
163 long long m_diskSizeInBytes;
164 bool m_diskSizeInBytesHasBeenSet = false;
165
166 Aws::String m_diskAllocationType;
167 bool m_diskAllocationTypeHasBeenSet = false;
168
169 Aws::String m_diskAllocationResource;
170 bool m_diskAllocationResourceHasBeenSet = false;
171
172 Aws::Vector<Aws::String> m_diskAttributeList;
173 bool m_diskAttributeListHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace StorageGateway
178} // namespace Aws
Disk & WithDiskNode(const char *value)
Definition Disk.h:82
void SetDiskPath(const Aws::String &value)
Definition Disk.h:62
Disk & WithDiskAllocationResource(const Aws::String &value)
Definition Disk.h:132
void SetDiskId(const Aws::String &value)
Definition Disk.h:48
const Aws::String & GetDiskNode() const
Definition Disk.h:75
const Aws::String & GetDiskAllocationType() const
Definition Disk.h:111
const Aws::String & GetDiskId() const
Definition Disk.h:46
void SetDiskAllocationType(Aws::String &&value)
Definition Disk.h:114
Disk & AddDiskAttributeList(Aws::String &&value)
Definition Disk.h:146
void SetDiskNode(Aws::String &&value)
Definition Disk.h:78
void SetDiskId(const char *value)
Definition Disk.h:50
void SetDiskAllocationResource(const Aws::String &value)
Definition Disk.h:129
Disk & WithDiskId(Aws::String &&value)
Definition Disk.h:52
bool DiskAttributeListHasBeenSet() const
Definition Disk.h:140
Disk & WithDiskStatus(const Aws::String &value)
Definition Disk.h:94
void SetDiskAllocationType(const Aws::String &value)
Definition Disk.h:113
Disk & AddDiskAttributeList(const char *value)
Definition Disk.h:147
Disk & WithDiskSizeInBytes(long long value)
Definition Disk.h:106
const Aws::String & GetDiskAllocationResource() const
Definition Disk.h:127
bool DiskIdHasBeenSet() const
Definition Disk.h:47
bool DiskSizeInBytesHasBeenSet() const
Definition Disk.h:104
AWS_STORAGEGATEWAY_API Disk(Aws::Utils::Json::JsonView jsonValue)
Disk & WithDiskPath(const Aws::String &value)
Definition Disk.h:65
void SetDiskAttributeList(const Aws::Vector< Aws::String > &value)
Definition Disk.h:141
Disk & WithDiskStatus(const char *value)
Definition Disk.h:96
Disk & WithDiskAllocationType(const Aws::String &value)
Definition Disk.h:116
AWS_STORAGEGATEWAY_API Disk()
AWS_STORAGEGATEWAY_API Disk & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DiskAllocationResourceHasBeenSet() const
Definition Disk.h:128
Disk & WithDiskStatus(Aws::String &&value)
Definition Disk.h:95
void SetDiskStatus(Aws::String &&value)
Definition Disk.h:92
void SetDiskPath(Aws::String &&value)
Definition Disk.h:63
bool DiskPathHasBeenSet() const
Definition Disk.h:61
Disk & WithDiskAllocationType(const char *value)
Definition Disk.h:118
long long GetDiskSizeInBytes() const
Definition Disk.h:103
Disk & WithDiskAllocationType(Aws::String &&value)
Definition Disk.h:117
Disk & WithDiskId(const char *value)
Definition Disk.h:53
Disk & WithDiskAttributeList(const Aws::Vector< Aws::String > &value)
Definition Disk.h:143
void SetDiskStatus(const Aws::String &value)
Definition Disk.h:91
Disk & WithDiskNode(Aws::String &&value)
Definition Disk.h:81
Disk & WithDiskAttributeList(Aws::Vector< Aws::String > &&value)
Definition Disk.h:144
void SetDiskAttributeList(Aws::Vector< Aws::String > &&value)
Definition Disk.h:142
Disk & WithDiskAllocationResource(Aws::String &&value)
Definition Disk.h:133
void SetDiskAllocationResource(const char *value)
Definition Disk.h:131
void SetDiskStatus(const char *value)
Definition Disk.h:93
void SetDiskId(Aws::String &&value)
Definition Disk.h:49
Disk & WithDiskNode(const Aws::String &value)
Definition Disk.h:80
void SetDiskNode(const char *value)
Definition Disk.h:79
void SetDiskSizeInBytes(long long value)
Definition Disk.h:105
bool DiskNodeHasBeenSet() const
Definition Disk.h:76
const Aws::Vector< Aws::String > & GetDiskAttributeList() const
Definition Disk.h:139
Disk & WithDiskPath(const char *value)
Definition Disk.h:67
bool DiskAllocationTypeHasBeenSet() const
Definition Disk.h:112
void SetDiskAllocationResource(Aws::String &&value)
Definition Disk.h:130
void SetDiskAllocationType(const char *value)
Definition Disk.h:115
void SetDiskPath(const char *value)
Definition Disk.h:64
Disk & WithDiskPath(Aws::String &&value)
Definition Disk.h:66
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDiskStatus() const
Definition Disk.h:89
const Aws::String & GetDiskPath() const
Definition Disk.h:60
bool DiskStatusHasBeenSet() const
Definition Disk.h:90
Disk & WithDiskAllocationResource(const char *value)
Definition Disk.h:134
void SetDiskNode(const Aws::String &value)
Definition Disk.h:77
Disk & AddDiskAttributeList(const Aws::String &value)
Definition Disk.h:145
Disk & WithDiskId(const Aws::String &value)
Definition Disk.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue