AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VolumeInfo.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_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 StorageGateway
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_STORAGEGATEWAY_API VolumeInfo();
35 AWS_STORAGEGATEWAY_API VolumeInfo(Aws::Utils::Json::JsonView jsonValue);
36 AWS_STORAGEGATEWAY_API VolumeInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
48 inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
49 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
50 inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
51 inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); }
52 inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
53 inline VolumeInfo& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
54 inline VolumeInfo& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
55 inline VolumeInfo& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
57
59
65 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
66 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
67 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
68 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
69 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
70 inline VolumeInfo& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
71 inline VolumeInfo& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
72 inline VolumeInfo& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
74
76
77 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
78 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
79 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
80 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
81 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
82 inline VolumeInfo& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
83 inline VolumeInfo& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
84 inline VolumeInfo& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
86
88
94 inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
95 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
96 inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
97 inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::move(value); }
98 inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
99 inline VolumeInfo& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
100 inline VolumeInfo& WithGatewayId(Aws::String&& value) { SetGatewayId(std::move(value)); return *this;}
101 inline VolumeInfo& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
103
105
109 inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
110 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
111 inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
112 inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
113 inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
114 inline VolumeInfo& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
115 inline VolumeInfo& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
116 inline VolumeInfo& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
118
120
124 inline long long GetVolumeSizeInBytes() const{ return m_volumeSizeInBytes; }
125 inline bool VolumeSizeInBytesHasBeenSet() const { return m_volumeSizeInBytesHasBeenSet; }
126 inline void SetVolumeSizeInBytes(long long value) { m_volumeSizeInBytesHasBeenSet = true; m_volumeSizeInBytes = value; }
127 inline VolumeInfo& WithVolumeSizeInBytes(long long value) { SetVolumeSizeInBytes(value); return *this;}
129
131
135 inline const Aws::String& GetVolumeAttachmentStatus() const{ return m_volumeAttachmentStatus; }
136 inline bool VolumeAttachmentStatusHasBeenSet() const { return m_volumeAttachmentStatusHasBeenSet; }
137 inline void SetVolumeAttachmentStatus(const Aws::String& value) { m_volumeAttachmentStatusHasBeenSet = true; m_volumeAttachmentStatus = value; }
138 inline void SetVolumeAttachmentStatus(Aws::String&& value) { m_volumeAttachmentStatusHasBeenSet = true; m_volumeAttachmentStatus = std::move(value); }
139 inline void SetVolumeAttachmentStatus(const char* value) { m_volumeAttachmentStatusHasBeenSet = true; m_volumeAttachmentStatus.assign(value); }
140 inline VolumeInfo& WithVolumeAttachmentStatus(const Aws::String& value) { SetVolumeAttachmentStatus(value); return *this;}
141 inline VolumeInfo& WithVolumeAttachmentStatus(Aws::String&& value) { SetVolumeAttachmentStatus(std::move(value)); return *this;}
142 inline VolumeInfo& WithVolumeAttachmentStatus(const char* value) { SetVolumeAttachmentStatus(value); return *this;}
144 private:
145
146 Aws::String m_volumeARN;
147 bool m_volumeARNHasBeenSet = false;
148
149 Aws::String m_volumeId;
150 bool m_volumeIdHasBeenSet = false;
151
152 Aws::String m_gatewayARN;
153 bool m_gatewayARNHasBeenSet = false;
154
155 Aws::String m_gatewayId;
156 bool m_gatewayIdHasBeenSet = false;
157
158 Aws::String m_volumeType;
159 bool m_volumeTypeHasBeenSet = false;
160
161 long long m_volumeSizeInBytes;
162 bool m_volumeSizeInBytesHasBeenSet = false;
163
164 Aws::String m_volumeAttachmentStatus;
165 bool m_volumeAttachmentStatusHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace StorageGateway
170} // namespace Aws
void SetVolumeAttachmentStatus(const char *value)
Definition VolumeInfo.h:139
VolumeInfo & WithVolumeId(const Aws::String &value)
Definition VolumeInfo.h:70
void SetVolumeARN(Aws::String &&value)
Definition VolumeInfo.h:51
const Aws::String & GetVolumeType() const
Definition VolumeInfo.h:109
const Aws::String & GetVolumeAttachmentStatus() const
Definition VolumeInfo.h:135
void SetVolumeId(const Aws::String &value)
Definition VolumeInfo.h:67
VolumeInfo & WithGatewayARN(const Aws::String &value)
Definition VolumeInfo.h:82
const Aws::String & GetGatewayId() const
Definition VolumeInfo.h:94
AWS_STORAGEGATEWAY_API VolumeInfo()
void SetVolumeId(Aws::String &&value)
Definition VolumeInfo.h:68
const Aws::String & GetVolumeARN() const
Definition VolumeInfo.h:48
void SetVolumeARN(const char *value)
Definition VolumeInfo.h:52
void SetVolumeId(const char *value)
Definition VolumeInfo.h:69
void SetVolumeType(Aws::String &&value)
Definition VolumeInfo.h:112
AWS_STORAGEGATEWAY_API VolumeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
VolumeInfo & WithVolumeARN(const Aws::String &value)
Definition VolumeInfo.h:53
VolumeInfo & WithVolumeARN(Aws::String &&value)
Definition VolumeInfo.h:54
VolumeInfo & WithGatewayARN(Aws::String &&value)
Definition VolumeInfo.h:83
VolumeInfo & WithVolumeARN(const char *value)
Definition VolumeInfo.h:55
VolumeInfo & WithVolumeAttachmentStatus(const Aws::String &value)
Definition VolumeInfo.h:140
VolumeInfo & WithVolumeSizeInBytes(long long value)
Definition VolumeInfo.h:127
const Aws::String & GetVolumeId() const
Definition VolumeInfo.h:65
const Aws::String & GetGatewayARN() const
Definition VolumeInfo.h:77
void SetVolumeAttachmentStatus(Aws::String &&value)
Definition VolumeInfo.h:138
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVolumeARN(const Aws::String &value)
Definition VolumeInfo.h:50
AWS_STORAGEGATEWAY_API VolumeInfo(Aws::Utils::Json::JsonView jsonValue)
void SetGatewayId(Aws::String &&value)
Definition VolumeInfo.h:97
VolumeInfo & WithVolumeType(Aws::String &&value)
Definition VolumeInfo.h:115
void SetVolumeType(const Aws::String &value)
Definition VolumeInfo.h:111
void SetGatewayARN(const Aws::String &value)
Definition VolumeInfo.h:79
VolumeInfo & WithGatewayId(Aws::String &&value)
Definition VolumeInfo.h:100
VolumeInfo & WithVolumeId(const char *value)
Definition VolumeInfo.h:72
VolumeInfo & WithVolumeAttachmentStatus(Aws::String &&value)
Definition VolumeInfo.h:141
VolumeInfo & WithVolumeType(const char *value)
Definition VolumeInfo.h:116
VolumeInfo & WithGatewayId(const Aws::String &value)
Definition VolumeInfo.h:99
void SetGatewayId(const Aws::String &value)
Definition VolumeInfo.h:96
VolumeInfo & WithVolumeId(Aws::String &&value)
Definition VolumeInfo.h:71
VolumeInfo & WithVolumeType(const Aws::String &value)
Definition VolumeInfo.h:114
void SetGatewayARN(const char *value)
Definition VolumeInfo.h:81
void SetVolumeAttachmentStatus(const Aws::String &value)
Definition VolumeInfo.h:137
void SetVolumeType(const char *value)
Definition VolumeInfo.h:113
void SetGatewayARN(Aws::String &&value)
Definition VolumeInfo.h:80
void SetGatewayId(const char *value)
Definition VolumeInfo.h:98
VolumeInfo & WithGatewayId(const char *value)
Definition VolumeInfo.h:101
VolumeInfo & WithGatewayARN(const char *value)
Definition VolumeInfo.h:84
void SetVolumeSizeInBytes(long long value)
Definition VolumeInfo.h:126
VolumeInfo & WithVolumeAttachmentStatus(const char *value)
Definition VolumeInfo.h:142
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue