AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
Hsm.h
1
6#pragma once
7#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
8#include <aws/cloudhsmv2/model/HsmState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudHSMV2 {
21namespace Model {
22
29class Hsm {
30 public:
31 AWS_CLOUDHSMV2_API Hsm() = default;
32 AWS_CLOUDHSMV2_API Hsm(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDHSMV2_API Hsm& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDHSMV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
41 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
42 template <typename AvailabilityZoneT = Aws::String>
43 void SetAvailabilityZone(AvailabilityZoneT&& value) {
44 m_availabilityZoneHasBeenSet = true;
45 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
46 }
47 template <typename AvailabilityZoneT = Aws::String>
48 Hsm& WithAvailabilityZone(AvailabilityZoneT&& value) {
49 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetClusterId() const { return m_clusterId; }
59 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
60 template <typename ClusterIdT = Aws::String>
61 void SetClusterId(ClusterIdT&& value) {
62 m_clusterIdHasBeenSet = true;
63 m_clusterId = std::forward<ClusterIdT>(value);
64 }
65 template <typename ClusterIdT = Aws::String>
66 Hsm& WithClusterId(ClusterIdT&& value) {
67 SetClusterId(std::forward<ClusterIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
77 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
78 template <typename SubnetIdT = Aws::String>
79 void SetSubnetId(SubnetIdT&& value) {
80 m_subnetIdHasBeenSet = true;
81 m_subnetId = std::forward<SubnetIdT>(value);
82 }
83 template <typename SubnetIdT = Aws::String>
84 Hsm& WithSubnetId(SubnetIdT&& value) {
85 SetSubnetId(std::forward<SubnetIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetEniId() const { return m_eniId; }
95 inline bool EniIdHasBeenSet() const { return m_eniIdHasBeenSet; }
96 template <typename EniIdT = Aws::String>
97 void SetEniId(EniIdT&& value) {
98 m_eniIdHasBeenSet = true;
99 m_eniId = std::forward<EniIdT>(value);
100 }
101 template <typename EniIdT = Aws::String>
102 Hsm& WithEniId(EniIdT&& value) {
103 SetEniId(std::forward<EniIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetEniIp() const { return m_eniIp; }
113 inline bool EniIpHasBeenSet() const { return m_eniIpHasBeenSet; }
114 template <typename EniIpT = Aws::String>
115 void SetEniIp(EniIpT&& value) {
116 m_eniIpHasBeenSet = true;
117 m_eniIp = std::forward<EniIpT>(value);
118 }
119 template <typename EniIpT = Aws::String>
120 Hsm& WithEniIp(EniIpT&& value) {
121 SetEniIp(std::forward<EniIpT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetEniIpV6() const { return m_eniIpV6; }
131 inline bool EniIpV6HasBeenSet() const { return m_eniIpV6HasBeenSet; }
132 template <typename EniIpV6T = Aws::String>
133 void SetEniIpV6(EniIpV6T&& value) {
134 m_eniIpV6HasBeenSet = true;
135 m_eniIpV6 = std::forward<EniIpV6T>(value);
136 }
137 template <typename EniIpV6T = Aws::String>
138 Hsm& WithEniIpV6(EniIpV6T&& value) {
139 SetEniIpV6(std::forward<EniIpV6T>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetHsmId() const { return m_hsmId; }
149 inline bool HsmIdHasBeenSet() const { return m_hsmIdHasBeenSet; }
150 template <typename HsmIdT = Aws::String>
151 void SetHsmId(HsmIdT&& value) {
152 m_hsmIdHasBeenSet = true;
153 m_hsmId = std::forward<HsmIdT>(value);
154 }
155 template <typename HsmIdT = Aws::String>
156 Hsm& WithHsmId(HsmIdT&& value) {
157 SetHsmId(std::forward<HsmIdT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetHsmType() const { return m_hsmType; }
167 inline bool HsmTypeHasBeenSet() const { return m_hsmTypeHasBeenSet; }
168 template <typename HsmTypeT = Aws::String>
169 void SetHsmType(HsmTypeT&& value) {
170 m_hsmTypeHasBeenSet = true;
171 m_hsmType = std::forward<HsmTypeT>(value);
172 }
173 template <typename HsmTypeT = Aws::String>
174 Hsm& WithHsmType(HsmTypeT&& value) {
175 SetHsmType(std::forward<HsmTypeT>(value));
176 return *this;
177 }
179
181
184 inline HsmState GetState() const { return m_state; }
185 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
186 inline void SetState(HsmState value) {
187 m_stateHasBeenSet = true;
188 m_state = value;
189 }
190 inline Hsm& WithState(HsmState value) {
191 SetState(value);
192 return *this;
193 }
195
197
200 inline const Aws::String& GetStateMessage() const { return m_stateMessage; }
201 inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
202 template <typename StateMessageT = Aws::String>
203 void SetStateMessage(StateMessageT&& value) {
204 m_stateMessageHasBeenSet = true;
205 m_stateMessage = std::forward<StateMessageT>(value);
206 }
207 template <typename StateMessageT = Aws::String>
208 Hsm& WithStateMessage(StateMessageT&& value) {
209 SetStateMessage(std::forward<StateMessageT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_availabilityZone;
215
216 Aws::String m_clusterId;
217
218 Aws::String m_subnetId;
219
220 Aws::String m_eniId;
221
222 Aws::String m_eniIp;
223
224 Aws::String m_eniIpV6;
225
226 Aws::String m_hsmId;
227
228 Aws::String m_hsmType;
229
231
232 Aws::String m_stateMessage;
233 bool m_availabilityZoneHasBeenSet = false;
234 bool m_clusterIdHasBeenSet = false;
235 bool m_subnetIdHasBeenSet = false;
236 bool m_eniIdHasBeenSet = false;
237 bool m_eniIpHasBeenSet = false;
238 bool m_eniIpV6HasBeenSet = false;
239 bool m_hsmIdHasBeenSet = false;
240 bool m_hsmTypeHasBeenSet = false;
241 bool m_stateHasBeenSet = false;
242 bool m_stateMessageHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace CloudHSMV2
247} // namespace Aws
Hsm & WithStateMessage(StateMessageT &&value)
Definition Hsm.h:208
Hsm & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Hsm.h:48
AWS_CLOUDHSMV2_API Hsm & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool HsmTypeHasBeenSet() const
Definition Hsm.h:167
const Aws::String & GetSubnetId() const
Definition Hsm.h:76
bool EniIpV6HasBeenSet() const
Definition Hsm.h:131
Hsm & WithHsmType(HsmTypeT &&value)
Definition Hsm.h:174
Hsm & WithEniIp(EniIpT &&value)
Definition Hsm.h:120
AWS_CLOUDHSMV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetAvailabilityZone() const
Definition Hsm.h:40
void SetEniId(EniIdT &&value)
Definition Hsm.h:97
void SetHsmId(HsmIdT &&value)
Definition Hsm.h:151
const Aws::String & GetEniIp() const
Definition Hsm.h:112
void SetState(HsmState value)
Definition Hsm.h:186
void SetStateMessage(StateMessageT &&value)
Definition Hsm.h:203
bool HsmIdHasBeenSet() const
Definition Hsm.h:149
void SetSubnetId(SubnetIdT &&value)
Definition Hsm.h:79
const Aws::String & GetEniId() const
Definition Hsm.h:94
bool EniIpHasBeenSet() const
Definition Hsm.h:113
AWS_CLOUDHSMV2_API Hsm(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Hsm & WithEniIpV6(EniIpV6T &&value)
Definition Hsm.h:138
AWS_CLOUDHSMV2_API Hsm()=default
const Aws::String & GetStateMessage() const
Definition Hsm.h:200
const Aws::String & GetHsmType() const
Definition Hsm.h:166
const Aws::String & GetEniIpV6() const
Definition Hsm.h:130
Hsm & WithSubnetId(SubnetIdT &&value)
Definition Hsm.h:84
bool EniIdHasBeenSet() const
Definition Hsm.h:95
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Hsm.h:43
bool StateMessageHasBeenSet() const
Definition Hsm.h:201
bool AvailabilityZoneHasBeenSet() const
Definition Hsm.h:41
const Aws::String & GetHsmId() const
Definition Hsm.h:148
void SetEniIpV6(EniIpV6T &&value)
Definition Hsm.h:133
bool ClusterIdHasBeenSet() const
Definition Hsm.h:59
bool StateHasBeenSet() const
Definition Hsm.h:185
Hsm & WithEniId(EniIdT &&value)
Definition Hsm.h:102
void SetHsmType(HsmTypeT &&value)
Definition Hsm.h:169
Hsm & WithClusterId(ClusterIdT &&value)
Definition Hsm.h:66
void SetClusterId(ClusterIdT &&value)
Definition Hsm.h:61
void SetEniIp(EniIpT &&value)
Definition Hsm.h:115
Hsm & WithState(HsmState value)
Definition Hsm.h:190
const Aws::String & GetClusterId() const
Definition Hsm.h:58
Hsm & WithHsmId(HsmIdT &&value)
Definition Hsm.h:156
bool SubnetIdHasBeenSet() const
Definition Hsm.h:77
HsmState GetState() const
Definition Hsm.h:184
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String