AWS SDK for C++  1.9.102
AWS SDK for C++
Disk.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace StorageGateway
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Disk();
39 
40 
45  inline const Aws::String& GetDiskId() const{ return m_diskId; }
46 
51  inline bool DiskIdHasBeenSet() const { return m_diskIdHasBeenSet; }
52 
57  inline void SetDiskId(const Aws::String& value) { m_diskIdHasBeenSet = true; m_diskId = value; }
58 
63  inline void SetDiskId(Aws::String&& value) { m_diskIdHasBeenSet = true; m_diskId = std::move(value); }
64 
69  inline void SetDiskId(const char* value) { m_diskIdHasBeenSet = true; m_diskId.assign(value); }
70 
75  inline Disk& WithDiskId(const Aws::String& value) { SetDiskId(value); return *this;}
76 
81  inline Disk& WithDiskId(Aws::String&& value) { SetDiskId(std::move(value)); return *this;}
82 
87  inline Disk& WithDiskId(const char* value) { SetDiskId(value); return *this;}
88 
89 
93  inline const Aws::String& GetDiskPath() const{ return m_diskPath; }
94 
98  inline bool DiskPathHasBeenSet() const { return m_diskPathHasBeenSet; }
99 
103  inline void SetDiskPath(const Aws::String& value) { m_diskPathHasBeenSet = true; m_diskPath = value; }
104 
108  inline void SetDiskPath(Aws::String&& value) { m_diskPathHasBeenSet = true; m_diskPath = std::move(value); }
109 
113  inline void SetDiskPath(const char* value) { m_diskPathHasBeenSet = true; m_diskPath.assign(value); }
114 
118  inline Disk& WithDiskPath(const Aws::String& value) { SetDiskPath(value); return *this;}
119 
123  inline Disk& WithDiskPath(Aws::String&& value) { SetDiskPath(std::move(value)); return *this;}
124 
128  inline Disk& WithDiskPath(const char* value) { SetDiskPath(value); return *this;}
129 
130 
135  inline const Aws::String& GetDiskNode() const{ return m_diskNode; }
136 
141  inline bool DiskNodeHasBeenSet() const { return m_diskNodeHasBeenSet; }
142 
147  inline void SetDiskNode(const Aws::String& value) { m_diskNodeHasBeenSet = true; m_diskNode = value; }
148 
153  inline void SetDiskNode(Aws::String&& value) { m_diskNodeHasBeenSet = true; m_diskNode = std::move(value); }
154 
159  inline void SetDiskNode(const char* value) { m_diskNodeHasBeenSet = true; m_diskNode.assign(value); }
160 
165  inline Disk& WithDiskNode(const Aws::String& value) { SetDiskNode(value); return *this;}
166 
171  inline Disk& WithDiskNode(Aws::String&& value) { SetDiskNode(std::move(value)); return *this;}
172 
177  inline Disk& WithDiskNode(const char* value) { SetDiskNode(value); return *this;}
178 
179 
183  inline const Aws::String& GetDiskStatus() const{ return m_diskStatus; }
184 
188  inline bool DiskStatusHasBeenSet() const { return m_diskStatusHasBeenSet; }
189 
193  inline void SetDiskStatus(const Aws::String& value) { m_diskStatusHasBeenSet = true; m_diskStatus = value; }
194 
198  inline void SetDiskStatus(Aws::String&& value) { m_diskStatusHasBeenSet = true; m_diskStatus = std::move(value); }
199 
203  inline void SetDiskStatus(const char* value) { m_diskStatusHasBeenSet = true; m_diskStatus.assign(value); }
204 
208  inline Disk& WithDiskStatus(const Aws::String& value) { SetDiskStatus(value); return *this;}
209 
213  inline Disk& WithDiskStatus(Aws::String&& value) { SetDiskStatus(std::move(value)); return *this;}
214 
218  inline Disk& WithDiskStatus(const char* value) { SetDiskStatus(value); return *this;}
219 
220 
224  inline long long GetDiskSizeInBytes() const{ return m_diskSizeInBytes; }
225 
229  inline bool DiskSizeInBytesHasBeenSet() const { return m_diskSizeInBytesHasBeenSet; }
230 
234  inline void SetDiskSizeInBytes(long long value) { m_diskSizeInBytesHasBeenSet = true; m_diskSizeInBytes = value; }
235 
239  inline Disk& WithDiskSizeInBytes(long long value) { SetDiskSizeInBytes(value); return *this;}
240 
241 
242 
243  inline const Aws::String& GetDiskAllocationType() const{ return m_diskAllocationType; }
244 
245 
246  inline bool DiskAllocationTypeHasBeenSet() const { return m_diskAllocationTypeHasBeenSet; }
247 
248 
249  inline void SetDiskAllocationType(const Aws::String& value) { m_diskAllocationTypeHasBeenSet = true; m_diskAllocationType = value; }
250 
251 
252  inline void SetDiskAllocationType(Aws::String&& value) { m_diskAllocationTypeHasBeenSet = true; m_diskAllocationType = std::move(value); }
253 
254 
255  inline void SetDiskAllocationType(const char* value) { m_diskAllocationTypeHasBeenSet = true; m_diskAllocationType.assign(value); }
256 
257 
258  inline Disk& WithDiskAllocationType(const Aws::String& value) { SetDiskAllocationType(value); return *this;}
259 
260 
261  inline Disk& WithDiskAllocationType(Aws::String&& value) { SetDiskAllocationType(std::move(value)); return *this;}
262 
263 
264  inline Disk& WithDiskAllocationType(const char* value) { SetDiskAllocationType(value); return *this;}
265 
266 
272  inline const Aws::String& GetDiskAllocationResource() const{ return m_diskAllocationResource; }
273 
279  inline bool DiskAllocationResourceHasBeenSet() const { return m_diskAllocationResourceHasBeenSet; }
280 
286  inline void SetDiskAllocationResource(const Aws::String& value) { m_diskAllocationResourceHasBeenSet = true; m_diskAllocationResource = value; }
287 
293  inline void SetDiskAllocationResource(Aws::String&& value) { m_diskAllocationResourceHasBeenSet = true; m_diskAllocationResource = std::move(value); }
294 
300  inline void SetDiskAllocationResource(const char* value) { m_diskAllocationResourceHasBeenSet = true; m_diskAllocationResource.assign(value); }
301 
307  inline Disk& WithDiskAllocationResource(const Aws::String& value) { SetDiskAllocationResource(value); return *this;}
308 
314  inline Disk& WithDiskAllocationResource(Aws::String&& value) { SetDiskAllocationResource(std::move(value)); return *this;}
315 
321  inline Disk& WithDiskAllocationResource(const char* value) { SetDiskAllocationResource(value); return *this;}
322 
323 
324 
325  inline const Aws::Vector<Aws::String>& GetDiskAttributeList() const{ return m_diskAttributeList; }
326 
327 
328  inline bool DiskAttributeListHasBeenSet() const { return m_diskAttributeListHasBeenSet; }
329 
330 
331  inline void SetDiskAttributeList(const Aws::Vector<Aws::String>& value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList = value; }
332 
333 
334  inline void SetDiskAttributeList(Aws::Vector<Aws::String>&& value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList = std::move(value); }
335 
336 
337  inline Disk& WithDiskAttributeList(const Aws::Vector<Aws::String>& value) { SetDiskAttributeList(value); return *this;}
338 
339 
340  inline Disk& WithDiskAttributeList(Aws::Vector<Aws::String>&& value) { SetDiskAttributeList(std::move(value)); return *this;}
341 
342 
343  inline Disk& AddDiskAttributeList(const Aws::String& value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList.push_back(value); return *this; }
344 
345 
346  inline Disk& AddDiskAttributeList(Aws::String&& value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList.push_back(std::move(value)); return *this; }
347 
348 
349  inline Disk& AddDiskAttributeList(const char* value) { m_diskAttributeListHasBeenSet = true; m_diskAttributeList.push_back(value); return *this; }
350 
351  private:
352 
353  Aws::String m_diskId;
354  bool m_diskIdHasBeenSet;
355 
356  Aws::String m_diskPath;
357  bool m_diskPathHasBeenSet;
358 
359  Aws::String m_diskNode;
360  bool m_diskNodeHasBeenSet;
361 
362  Aws::String m_diskStatus;
363  bool m_diskStatusHasBeenSet;
364 
365  long long m_diskSizeInBytes;
366  bool m_diskSizeInBytesHasBeenSet;
367 
368  Aws::String m_diskAllocationType;
369  bool m_diskAllocationTypeHasBeenSet;
370 
371  Aws::String m_diskAllocationResource;
372  bool m_diskAllocationResourceHasBeenSet;
373 
374  Aws::Vector<Aws::String> m_diskAttributeList;
375  bool m_diskAttributeListHasBeenSet;
376  };
377 
378 } // namespace Model
379 } // namespace StorageGateway
380 } // namespace Aws
Aws::StorageGateway::Model::Disk::SetDiskId
void SetDiskId(const char *value)
Definition: Disk.h:69
Aws::StorageGateway::Model::Disk::Disk
Disk()
Aws::StorageGateway::Model::Disk::SetDiskPath
void SetDiskPath(const char *value)
Definition: Disk.h:113
Aws::StorageGateway::Model::Disk::DiskAttributeListHasBeenSet
bool DiskAttributeListHasBeenSet() const
Definition: Disk.h:328
Aws::StorageGateway::Model::Disk::SetDiskAllocationResource
void SetDiskAllocationResource(const char *value)
Definition: Disk.h:300
Aws::StorageGateway::Model::Disk::WithDiskAllocationType
Disk & WithDiskAllocationType(const char *value)
Definition: Disk.h:264
Aws::StorageGateway::Model::Disk::GetDiskAllocationType
const Aws::String & GetDiskAllocationType() const
Definition: Disk.h:243
Aws::StorageGateway::Model::Disk::GetDiskPath
const Aws::String & GetDiskPath() const
Definition: Disk.h:93
Aws::StorageGateway::Model::Disk::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::StorageGateway::Model::Disk::DiskIdHasBeenSet
bool DiskIdHasBeenSet() const
Definition: Disk.h:51
Aws::StorageGateway::Model::Disk::GetDiskSizeInBytes
long long GetDiskSizeInBytes() const
Definition: Disk.h:224
Aws::StorageGateway::Model::Disk::WithDiskPath
Disk & WithDiskPath(const char *value)
Definition: Disk.h:128
Aws::StorageGateway::Model::Disk::WithDiskAttributeList
Disk & WithDiskAttributeList(const Aws::Vector< Aws::String > &value)
Definition: Disk.h:337
Aws::StorageGateway::Model::Disk::DiskAllocationTypeHasBeenSet
bool DiskAllocationTypeHasBeenSet() const
Definition: Disk.h:246
Aws::StorageGateway::Model::Disk::SetDiskAllocationResource
void SetDiskAllocationResource(const Aws::String &value)
Definition: Disk.h:286
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::Disk::WithDiskId
Disk & WithDiskId(const Aws::String &value)
Definition: Disk.h:75
Aws::StorageGateway::Model::Disk::SetDiskPath
void SetDiskPath(Aws::String &&value)
Definition: Disk.h:108
Aws::StorageGateway::Model::Disk::SetDiskStatus
void SetDiskStatus(const char *value)
Definition: Disk.h:203
Aws::StorageGateway::Model::Disk::WithDiskStatus
Disk & WithDiskStatus(Aws::String &&value)
Definition: Disk.h:213
AWSVector.h
Aws::StorageGateway::Model::Disk
Definition: Disk.h:33
Aws::StorageGateway::Model::Disk::SetDiskNode
void SetDiskNode(Aws::String &&value)
Definition: Disk.h:153
Aws::StorageGateway::Model::Disk::WithDiskNode
Disk & WithDiskNode(const Aws::String &value)
Definition: Disk.h:165
Aws::StorageGateway::Model::Disk::WithDiskAllocationType
Disk & WithDiskAllocationType(const Aws::String &value)
Definition: Disk.h:258
Aws::StorageGateway::Model::Disk::DiskSizeInBytesHasBeenSet
bool DiskSizeInBytesHasBeenSet() const
Definition: Disk.h:229
Aws::StorageGateway::Model::Disk::AddDiskAttributeList
Disk & AddDiskAttributeList(const Aws::String &value)
Definition: Disk.h:343
Aws::StorageGateway::Model::Disk::SetDiskAttributeList
void SetDiskAttributeList(Aws::Vector< Aws::String > &&value)
Definition: Disk.h:334
Aws::StorageGateway::Model::Disk::operator=
Disk & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::Disk::SetDiskNode
void SetDiskNode(const Aws::String &value)
Definition: Disk.h:147
Aws::StorageGateway::Model::Disk::SetDiskPath
void SetDiskPath(const Aws::String &value)
Definition: Disk.h:103
Aws::StorageGateway::Model::Disk::WithDiskAllocationResource
Disk & WithDiskAllocationResource(Aws::String &&value)
Definition: Disk.h:314
Aws::StorageGateway::Model::Disk::WithDiskNode
Disk & WithDiskNode(const char *value)
Definition: Disk.h:177
Aws::StorageGateway::Model::Disk::WithDiskId
Disk & WithDiskId(Aws::String &&value)
Definition: Disk.h:81
Aws::StorageGateway::Model::Disk::WithDiskSizeInBytes
Disk & WithDiskSizeInBytes(long long value)
Definition: Disk.h:239
Aws::StorageGateway::Model::Disk::DiskAllocationResourceHasBeenSet
bool DiskAllocationResourceHasBeenSet() const
Definition: Disk.h:279
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::StorageGateway::Model::Disk::GetDiskStatus
const Aws::String & GetDiskStatus() const
Definition: Disk.h:183
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::StorageGateway::Model::Disk::DiskNodeHasBeenSet
bool DiskNodeHasBeenSet() const
Definition: Disk.h:141
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::Disk::WithDiskAttributeList
Disk & WithDiskAttributeList(Aws::Vector< Aws::String > &&value)
Definition: Disk.h:340
Aws::StorageGateway::Model::Disk::WithDiskAllocationType
Disk & WithDiskAllocationType(Aws::String &&value)
Definition: Disk.h:261
Aws::StorageGateway::Model::Disk::SetDiskAllocationResource
void SetDiskAllocationResource(Aws::String &&value)
Definition: Disk.h:293
Aws::StorageGateway::Model::Disk::SetDiskStatus
void SetDiskStatus(const Aws::String &value)
Definition: Disk.h:193
Aws::StorageGateway::Model::Disk::WithDiskNode
Disk & WithDiskNode(Aws::String &&value)
Definition: Disk.h:171
Aws::StorageGateway::Model::Disk::SetDiskNode
void SetDiskNode(const char *value)
Definition: Disk.h:159
Aws::StorageGateway::Model::Disk::AddDiskAttributeList
Disk & AddDiskAttributeList(Aws::String &&value)
Definition: Disk.h:346
Aws::StorageGateway::Model::Disk::WithDiskStatus
Disk & WithDiskStatus(const char *value)
Definition: Disk.h:218
Aws::StorageGateway::Model::Disk::DiskPathHasBeenSet
bool DiskPathHasBeenSet() const
Definition: Disk.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::Disk::WithDiskAllocationResource
Disk & WithDiskAllocationResource(const char *value)
Definition: Disk.h:321
Aws::StorageGateway::Model::Disk::Disk
Disk(Aws::Utils::Json::JsonView jsonValue)
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::Disk::GetDiskAttributeList
const Aws::Vector< Aws::String > & GetDiskAttributeList() const
Definition: Disk.h:325
Aws::StorageGateway::Model::Disk::WithDiskAllocationResource
Disk & WithDiskAllocationResource(const Aws::String &value)
Definition: Disk.h:307
Aws::StorageGateway::Model::Disk::SetDiskStatus
void SetDiskStatus(Aws::String &&value)
Definition: Disk.h:198
Aws::StorageGateway::Model::Disk::WithDiskStatus
Disk & WithDiskStatus(const Aws::String &value)
Definition: Disk.h:208
Aws::StorageGateway::Model::Disk::WithDiskPath
Disk & WithDiskPath(Aws::String &&value)
Definition: Disk.h:123
Aws::StorageGateway::Model::Disk::WithDiskId
Disk & WithDiskId(const char *value)
Definition: Disk.h:87
Aws::StorageGateway::Model::Disk::SetDiskSizeInBytes
void SetDiskSizeInBytes(long long value)
Definition: Disk.h:234
Aws::StorageGateway::Model::Disk::SetDiskAllocationType
void SetDiskAllocationType(const Aws::String &value)
Definition: Disk.h:249
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::Disk::SetDiskId
void SetDiskId(const Aws::String &value)
Definition: Disk.h:57
Aws::StorageGateway::Model::Disk::SetDiskId
void SetDiskId(Aws::String &&value)
Definition: Disk.h:63
Aws::StorageGateway::Model::Disk::SetDiskAllocationType
void SetDiskAllocationType(Aws::String &&value)
Definition: Disk.h:252
Aws::StorageGateway::Model::Disk::DiskStatusHasBeenSet
bool DiskStatusHasBeenSet() const
Definition: Disk.h:188
Aws::StorageGateway::Model::Disk::WithDiskPath
Disk & WithDiskPath(const Aws::String &value)
Definition: Disk.h:118
Aws::StorageGateway::Model::Disk::GetDiskNode
const Aws::String & GetDiskNode() const
Definition: Disk.h:135
Aws::StorageGateway::Model::Disk::AddDiskAttributeList
Disk & AddDiskAttributeList(const char *value)
Definition: Disk.h:349
Aws::StorageGateway::Model::Disk::SetDiskAttributeList
void SetDiskAttributeList(const Aws::Vector< Aws::String > &value)
Definition: Disk.h:331
Aws::StorageGateway::Model::Disk::GetDiskId
const Aws::String & GetDiskId() const
Definition: Disk.h:45
Aws::StorageGateway::Model::Disk::GetDiskAllocationResource
const Aws::String & GetDiskAllocationResource() const
Definition: Disk.h:272
Aws::StorageGateway::Model::Disk::SetDiskAllocationType
void SetDiskAllocationType(const char *value)
Definition: Disk.h:255