AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EbsBlockDevice.h
1
6#pragma once
7#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
8#include <aws/workspaces-instances/model/VolumeTypeEnum.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkspacesInstances
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_WORKSPACESINSTANCES_API EbsBlockDevice() = default;
37 AWS_WORKSPACESINSTANCES_API EbsBlockDevice(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACESINSTANCES_API EbsBlockDevice& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKSPACESINSTANCES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline VolumeTypeEnum GetVolumeType() const { return m_volumeType; }
47 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
48 inline void SetVolumeType(VolumeTypeEnum value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
49 inline EbsBlockDevice& WithVolumeType(VolumeTypeEnum value) { SetVolumeType(value); return *this;}
51
53
56 inline bool GetEncrypted() const { return m_encrypted; }
57 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
58 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
59 inline EbsBlockDevice& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
61
63
66 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
67 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
68 template<typename KmsKeyIdT = Aws::String>
69 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
70 template<typename KmsKeyIdT = Aws::String>
71 EbsBlockDevice& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
73
75
78 inline int GetIops() const { return m_iops; }
79 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
80 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
81 inline EbsBlockDevice& WithIops(int value) { SetIops(value); return *this;}
83
85
88 inline int GetThroughput() const { return m_throughput; }
89 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
90 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
91 inline EbsBlockDevice& WithThroughput(int value) { SetThroughput(value); return *this;}
93
95
98 inline int GetVolumeSize() const { return m_volumeSize; }
99 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
100 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
101 inline EbsBlockDevice& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
103 private:
104
106 bool m_volumeTypeHasBeenSet = false;
107
108 bool m_encrypted{false};
109 bool m_encryptedHasBeenSet = false;
110
111 Aws::String m_kmsKeyId;
112 bool m_kmsKeyIdHasBeenSet = false;
113
114 int m_iops{0};
115 bool m_iopsHasBeenSet = false;
116
117 int m_throughput{0};
118 bool m_throughputHasBeenSet = false;
119
120 int m_volumeSize{0};
121 bool m_volumeSizeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace WorkspacesInstances
126} // namespace Aws
AWS_WORKSPACESINSTANCES_API EbsBlockDevice(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACESINSTANCES_API EbsBlockDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACESINSTANCES_API EbsBlockDevice()=default
EbsBlockDevice & WithVolumeType(VolumeTypeEnum value)
AWS_WORKSPACESINSTANCES_API Aws::Utils::Json::JsonValue Jsonize() const
EbsBlockDevice & WithKmsKeyId(KmsKeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue