AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename VolumeARNT = Aws::String>
51 void SetVolumeARN(VolumeARNT&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::forward<VolumeARNT>(value); }
52 template<typename VolumeARNT = Aws::String>
53 VolumeInfo& WithVolumeARN(VolumeARNT&& value) { SetVolumeARN(std::forward<VolumeARNT>(value)); return *this;}
55
57
63 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
64 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
65 template<typename VolumeIdT = Aws::String>
66 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
67 template<typename VolumeIdT = Aws::String>
68 VolumeInfo& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
70
72
73 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
74 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
75 template<typename GatewayARNT = Aws::String>
76 void SetGatewayARN(GatewayARNT&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
77 template<typename GatewayARNT = Aws::String>
78 VolumeInfo& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
80
82
88 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
89 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
90 template<typename GatewayIdT = Aws::String>
91 void SetGatewayId(GatewayIdT&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::forward<GatewayIdT>(value); }
92 template<typename GatewayIdT = Aws::String>
93 VolumeInfo& WithGatewayId(GatewayIdT&& value) { SetGatewayId(std::forward<GatewayIdT>(value)); return *this;}
95
97
101 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
102 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
103 template<typename VolumeTypeT = Aws::String>
104 void SetVolumeType(VolumeTypeT&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::forward<VolumeTypeT>(value); }
105 template<typename VolumeTypeT = Aws::String>
106 VolumeInfo& WithVolumeType(VolumeTypeT&& value) { SetVolumeType(std::forward<VolumeTypeT>(value)); return *this;}
108
110
114 inline long long GetVolumeSizeInBytes() const { return m_volumeSizeInBytes; }
115 inline bool VolumeSizeInBytesHasBeenSet() const { return m_volumeSizeInBytesHasBeenSet; }
116 inline void SetVolumeSizeInBytes(long long value) { m_volumeSizeInBytesHasBeenSet = true; m_volumeSizeInBytes = value; }
117 inline VolumeInfo& WithVolumeSizeInBytes(long long value) { SetVolumeSizeInBytes(value); return *this;}
119
121
125 inline const Aws::String& GetVolumeAttachmentStatus() const { return m_volumeAttachmentStatus; }
126 inline bool VolumeAttachmentStatusHasBeenSet() const { return m_volumeAttachmentStatusHasBeenSet; }
127 template<typename VolumeAttachmentStatusT = Aws::String>
128 void SetVolumeAttachmentStatus(VolumeAttachmentStatusT&& value) { m_volumeAttachmentStatusHasBeenSet = true; m_volumeAttachmentStatus = std::forward<VolumeAttachmentStatusT>(value); }
129 template<typename VolumeAttachmentStatusT = Aws::String>
130 VolumeInfo& WithVolumeAttachmentStatus(VolumeAttachmentStatusT&& value) { SetVolumeAttachmentStatus(std::forward<VolumeAttachmentStatusT>(value)); return *this;}
132 private:
133
134 Aws::String m_volumeARN;
135 bool m_volumeARNHasBeenSet = false;
136
137 Aws::String m_volumeId;
138 bool m_volumeIdHasBeenSet = false;
139
140 Aws::String m_gatewayARN;
141 bool m_gatewayARNHasBeenSet = false;
142
143 Aws::String m_gatewayId;
144 bool m_gatewayIdHasBeenSet = false;
145
146 Aws::String m_volumeType;
147 bool m_volumeTypeHasBeenSet = false;
148
149 long long m_volumeSizeInBytes{0};
150 bool m_volumeSizeInBytesHasBeenSet = false;
151
152 Aws::String m_volumeAttachmentStatus;
153 bool m_volumeAttachmentStatusHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace StorageGateway
158} // namespace Aws
void SetVolumeARN(VolumeARNT &&value)
Definition VolumeInfo.h:51
const Aws::String & GetVolumeType() const
Definition VolumeInfo.h:101
void SetVolumeAttachmentStatus(VolumeAttachmentStatusT &&value)
Definition VolumeInfo.h:128
VolumeInfo & WithVolumeAttachmentStatus(VolumeAttachmentStatusT &&value)
Definition VolumeInfo.h:130
const Aws::String & GetVolumeAttachmentStatus() const
Definition VolumeInfo.h:125
void SetVolumeType(VolumeTypeT &&value)
Definition VolumeInfo.h:104
VolumeInfo & WithGatewayARN(GatewayARNT &&value)
Definition VolumeInfo.h:78
const Aws::String & GetGatewayId() const
Definition VolumeInfo.h:88
const Aws::String & GetVolumeARN() const
Definition VolumeInfo.h:48
void SetVolumeId(VolumeIdT &&value)
Definition VolumeInfo.h:66
VolumeInfo & WithVolumeARN(VolumeARNT &&value)
Definition VolumeInfo.h:53
AWS_STORAGEGATEWAY_API VolumeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
VolumeInfo & WithVolumeType(VolumeTypeT &&value)
Definition VolumeInfo.h:106
VolumeInfo & WithVolumeSizeInBytes(long long value)
Definition VolumeInfo.h:117
const Aws::String & GetVolumeId() const
Definition VolumeInfo.h:63
const Aws::String & GetGatewayARN() const
Definition VolumeInfo.h:73
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_STORAGEGATEWAY_API VolumeInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_STORAGEGATEWAY_API VolumeInfo()=default
void SetGatewayId(GatewayIdT &&value)
Definition VolumeInfo.h:91
void SetGatewayARN(GatewayARNT &&value)
Definition VolumeInfo.h:76
VolumeInfo & WithVolumeId(VolumeIdT &&value)
Definition VolumeInfo.h:68
void SetVolumeSizeInBytes(long long value)
Definition VolumeInfo.h:116
VolumeInfo & WithGatewayId(GatewayIdT &&value)
Definition VolumeInfo.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue