AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
VolumeDetail.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_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 GuardDuty
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GUARDDUTY_API VolumeDetail() = default;
35 AWS_GUARDDUTY_API VolumeDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API VolumeDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetVolumeArn() const { return m_volumeArn; }
45 inline bool VolumeArnHasBeenSet() const { return m_volumeArnHasBeenSet; }
46 template<typename VolumeArnT = Aws::String>
47 void SetVolumeArn(VolumeArnT&& value) { m_volumeArnHasBeenSet = true; m_volumeArn = std::forward<VolumeArnT>(value); }
48 template<typename VolumeArnT = Aws::String>
49 VolumeDetail& WithVolumeArn(VolumeArnT&& value) { SetVolumeArn(std::forward<VolumeArnT>(value)); return *this;}
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) { m_volumeTypeHasBeenSet = true; m_volumeType = std::forward<VolumeTypeT>(value); }
60 template<typename VolumeTypeT = Aws::String>
61 VolumeDetail& WithVolumeType(VolumeTypeT&& value) { SetVolumeType(std::forward<VolumeTypeT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
69 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
70 template<typename DeviceNameT = Aws::String>
71 void SetDeviceName(DeviceNameT&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
72 template<typename DeviceNameT = Aws::String>
73 VolumeDetail& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
75
77
80 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
81 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
82 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
83 inline VolumeDetail& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
85
87
90 inline const Aws::String& GetEncryptionType() const { return m_encryptionType; }
91 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
92 template<typename EncryptionTypeT = Aws::String>
93 void SetEncryptionType(EncryptionTypeT&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::forward<EncryptionTypeT>(value); }
94 template<typename EncryptionTypeT = Aws::String>
95 VolumeDetail& WithEncryptionType(EncryptionTypeT&& value) { SetEncryptionType(std::forward<EncryptionTypeT>(value)); return *this;}
97
99
102 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
103 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
104 template<typename SnapshotArnT = Aws::String>
105 void SetSnapshotArn(SnapshotArnT&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::forward<SnapshotArnT>(value); }
106 template<typename SnapshotArnT = Aws::String>
107 VolumeDetail& WithSnapshotArn(SnapshotArnT&& value) { SetSnapshotArn(std::forward<SnapshotArnT>(value)); return *this;}
109
111
114 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
115 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
116 template<typename KmsKeyArnT = Aws::String>
117 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
118 template<typename KmsKeyArnT = Aws::String>
119 VolumeDetail& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
121 private:
122
123 Aws::String m_volumeArn;
124 bool m_volumeArnHasBeenSet = false;
125
126 Aws::String m_volumeType;
127 bool m_volumeTypeHasBeenSet = false;
128
129 Aws::String m_deviceName;
130 bool m_deviceNameHasBeenSet = false;
131
132 int m_volumeSizeInGB{0};
133 bool m_volumeSizeInGBHasBeenSet = false;
134
135 Aws::String m_encryptionType;
136 bool m_encryptionTypeHasBeenSet = false;
137
138 Aws::String m_snapshotArn;
139 bool m_snapshotArnHasBeenSet = false;
140
141 Aws::String m_kmsKeyArn;
142 bool m_kmsKeyArnHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace GuardDuty
147} // 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