AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
VolumeDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
28 public:
29 AWS_GUARDDUTY_API VolumeDetail() = default;
30 AWS_GUARDDUTY_API VolumeDetail(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GUARDDUTY_API VolumeDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetVolumeArn() const { return m_volumeArn; }
39 inline bool VolumeArnHasBeenSet() const { return m_volumeArnHasBeenSet; }
40 template <typename VolumeArnT = Aws::String>
41 void SetVolumeArn(VolumeArnT&& value) {
42 m_volumeArnHasBeenSet = true;
43 m_volumeArn = std::forward<VolumeArnT>(value);
44 }
45 template <typename VolumeArnT = Aws::String>
46 VolumeDetail& WithVolumeArn(VolumeArnT&& value) {
47 SetVolumeArn(std::forward<VolumeArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
57 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
58 template <typename VolumeTypeT = Aws::String>
59 void SetVolumeType(VolumeTypeT&& value) {
60 m_volumeTypeHasBeenSet = true;
61 m_volumeType = std::forward<VolumeTypeT>(value);
62 }
63 template <typename VolumeTypeT = Aws::String>
64 VolumeDetail& WithVolumeType(VolumeTypeT&& value) {
65 SetVolumeType(std::forward<VolumeTypeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
75 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
76 template <typename DeviceNameT = Aws::String>
77 void SetDeviceName(DeviceNameT&& value) {
78 m_deviceNameHasBeenSet = true;
79 m_deviceName = std::forward<DeviceNameT>(value);
80 }
81 template <typename DeviceNameT = Aws::String>
82 VolumeDetail& WithDeviceName(DeviceNameT&& value) {
83 SetDeviceName(std::forward<DeviceNameT>(value));
84 return *this;
85 }
87
89
92 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
93 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
94 inline void SetVolumeSizeInGB(int value) {
95 m_volumeSizeInGBHasBeenSet = true;
96 m_volumeSizeInGB = value;
97 }
98 inline VolumeDetail& WithVolumeSizeInGB(int value) {
99 SetVolumeSizeInGB(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetEncryptionType() const { return m_encryptionType; }
109 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
110 template <typename EncryptionTypeT = Aws::String>
111 void SetEncryptionType(EncryptionTypeT&& value) {
112 m_encryptionTypeHasBeenSet = true;
113 m_encryptionType = std::forward<EncryptionTypeT>(value);
114 }
115 template <typename EncryptionTypeT = Aws::String>
116 VolumeDetail& WithEncryptionType(EncryptionTypeT&& value) {
117 SetEncryptionType(std::forward<EncryptionTypeT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
127 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
128 template <typename SnapshotArnT = Aws::String>
129 void SetSnapshotArn(SnapshotArnT&& value) {
130 m_snapshotArnHasBeenSet = true;
131 m_snapshotArn = std::forward<SnapshotArnT>(value);
132 }
133 template <typename SnapshotArnT = Aws::String>
134 VolumeDetail& WithSnapshotArn(SnapshotArnT&& value) {
135 SetSnapshotArn(std::forward<SnapshotArnT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
145 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
146 template <typename KmsKeyArnT = Aws::String>
147 void SetKmsKeyArn(KmsKeyArnT&& value) {
148 m_kmsKeyArnHasBeenSet = true;
149 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
150 }
151 template <typename KmsKeyArnT = Aws::String>
152 VolumeDetail& WithKmsKeyArn(KmsKeyArnT&& value) {
153 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_volumeArn;
159
160 Aws::String m_volumeType;
161
162 Aws::String m_deviceName;
163
164 int m_volumeSizeInGB{0};
165
166 Aws::String m_encryptionType;
167
168 Aws::String m_snapshotArn;
169
170 Aws::String m_kmsKeyArn;
171 bool m_volumeArnHasBeenSet = false;
172 bool m_volumeTypeHasBeenSet = false;
173 bool m_deviceNameHasBeenSet = false;
174 bool m_volumeSizeInGBHasBeenSet = false;
175 bool m_encryptionTypeHasBeenSet = false;
176 bool m_snapshotArnHasBeenSet = false;
177 bool m_kmsKeyArnHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace GuardDuty
182} // namespace Aws
VolumeDetail & WithEncryptionType(EncryptionTypeT &&value)
const Aws::String & GetDeviceName() const
AWS_GUARDDUTY_API VolumeDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
VolumeDetail & WithVolumeArn(VolumeArnT &&value)
AWS_GUARDDUTY_API VolumeDetail()=default
VolumeDetail & WithDeviceName(DeviceNameT &&value)
VolumeDetail & WithSnapshotArn(SnapshotArnT &&value)
void SetVolumeType(VolumeTypeT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API VolumeDetail(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceName(DeviceNameT &&value)
const Aws::String & GetEncryptionType() const
void SetKmsKeyArn(KmsKeyArnT &&value)
void SetVolumeArn(VolumeArnT &&value)
VolumeDetail & WithVolumeType(VolumeTypeT &&value)
const Aws::String & GetKmsKeyArn() const
const Aws::String & GetSnapshotArn() const
const Aws::String & GetVolumeType() const
const Aws::String & GetVolumeArn() const
void SetEncryptionType(EncryptionTypeT &&value)
VolumeDetail & WithKmsKeyArn(KmsKeyArnT &&value)
void SetSnapshotArn(SnapshotArnT &&value)
VolumeDetail & WithVolumeSizeInGB(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue