AWS SDK for C++  1.9.160
AWS SDK for C++
CreateHsmRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudHSM
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateHsm"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
46 
50  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
51 
55  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
56 
60  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
61 
65  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
66 
70  inline CreateHsmRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
71 
75  inline CreateHsmRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
76 
80  inline CreateHsmRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
81 
82 
86  inline const Aws::String& GetSshKey() const{ return m_sshKey; }
87 
91  inline bool SshKeyHasBeenSet() const { return m_sshKeyHasBeenSet; }
92 
96  inline void SetSshKey(const Aws::String& value) { m_sshKeyHasBeenSet = true; m_sshKey = value; }
97 
101  inline void SetSshKey(Aws::String&& value) { m_sshKeyHasBeenSet = true; m_sshKey = std::move(value); }
102 
106  inline void SetSshKey(const char* value) { m_sshKeyHasBeenSet = true; m_sshKey.assign(value); }
107 
111  inline CreateHsmRequest& WithSshKey(const Aws::String& value) { SetSshKey(value); return *this;}
112 
116  inline CreateHsmRequest& WithSshKey(Aws::String&& value) { SetSshKey(std::move(value)); return *this;}
117 
121  inline CreateHsmRequest& WithSshKey(const char* value) { SetSshKey(value); return *this;}
122 
123 
129  inline const Aws::String& GetEniIp() const{ return m_eniIp; }
130 
136  inline bool EniIpHasBeenSet() const { return m_eniIpHasBeenSet; }
137 
143  inline void SetEniIp(const Aws::String& value) { m_eniIpHasBeenSet = true; m_eniIp = value; }
144 
150  inline void SetEniIp(Aws::String&& value) { m_eniIpHasBeenSet = true; m_eniIp = std::move(value); }
151 
157  inline void SetEniIp(const char* value) { m_eniIpHasBeenSet = true; m_eniIp.assign(value); }
158 
164  inline CreateHsmRequest& WithEniIp(const Aws::String& value) { SetEniIp(value); return *this;}
165 
171  inline CreateHsmRequest& WithEniIp(Aws::String&& value) { SetEniIp(std::move(value)); return *this;}
172 
178  inline CreateHsmRequest& WithEniIp(const char* value) { SetEniIp(value); return *this;}
179 
180 
185  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
186 
191  inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
192 
197  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
198 
203  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
204 
209  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
210 
215  inline CreateHsmRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
216 
221  inline CreateHsmRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
222 
227  inline CreateHsmRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
228 
229 
233  inline const Aws::String& GetExternalId() const{ return m_externalId; }
234 
238  inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
239 
243  inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
244 
248  inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
249 
253  inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
254 
258  inline CreateHsmRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
259 
263  inline CreateHsmRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
264 
268  inline CreateHsmRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
269 
270 
271 
272  inline const SubscriptionType& GetSubscriptionType() const{ return m_subscriptionType; }
273 
274 
275  inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
276 
277 
278  inline void SetSubscriptionType(const SubscriptionType& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
279 
280 
281  inline void SetSubscriptionType(SubscriptionType&& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = std::move(value); }
282 
283 
284  inline CreateHsmRequest& WithSubscriptionType(const SubscriptionType& value) { SetSubscriptionType(value); return *this;}
285 
286 
287  inline CreateHsmRequest& WithSubscriptionType(SubscriptionType&& value) { SetSubscriptionType(std::move(value)); return *this;}
288 
289 
294  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
295 
300  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
301 
306  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
307 
312  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
313 
318  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
319 
324  inline CreateHsmRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
325 
330  inline CreateHsmRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
331 
336  inline CreateHsmRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
337 
338 
343  inline const Aws::String& GetSyslogIp() const{ return m_syslogIp; }
344 
349  inline bool SyslogIpHasBeenSet() const { return m_syslogIpHasBeenSet; }
350 
355  inline void SetSyslogIp(const Aws::String& value) { m_syslogIpHasBeenSet = true; m_syslogIp = value; }
356 
361  inline void SetSyslogIp(Aws::String&& value) { m_syslogIpHasBeenSet = true; m_syslogIp = std::move(value); }
362 
367  inline void SetSyslogIp(const char* value) { m_syslogIpHasBeenSet = true; m_syslogIp.assign(value); }
368 
373  inline CreateHsmRequest& WithSyslogIp(const Aws::String& value) { SetSyslogIp(value); return *this;}
374 
379  inline CreateHsmRequest& WithSyslogIp(Aws::String&& value) { SetSyslogIp(std::move(value)); return *this;}
380 
385  inline CreateHsmRequest& WithSyslogIp(const char* value) { SetSyslogIp(value); return *this;}
386 
387  private:
388 
389  Aws::String m_subnetId;
390  bool m_subnetIdHasBeenSet;
391 
392  Aws::String m_sshKey;
393  bool m_sshKeyHasBeenSet;
394 
395  Aws::String m_eniIp;
396  bool m_eniIpHasBeenSet;
397 
398  Aws::String m_iamRoleArn;
399  bool m_iamRoleArnHasBeenSet;
400 
401  Aws::String m_externalId;
402  bool m_externalIdHasBeenSet;
403 
404  SubscriptionType m_subscriptionType;
405  bool m_subscriptionTypeHasBeenSet;
406 
407  Aws::String m_clientToken;
408  bool m_clientTokenHasBeenSet;
409 
410  Aws::String m_syslogIp;
411  bool m_syslogIpHasBeenSet;
412  };
413 
414 } // namespace Model
415 } // namespace CloudHSM
416 } // namespace Aws
Aws::CloudHSM::Model::CreateHsmRequest::IamRoleArnHasBeenSet
bool IamRoleArnHasBeenSet() const
Definition: CreateHsmRequest.h:191
Aws::CloudHSM::Model::CreateHsmRequest::SetEniIp
void SetEniIp(Aws::String &&value)
Definition: CreateHsmRequest.h:150
Aws::CloudHSM::Model::CreateHsmRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: CreateHsmRequest.h:60
Aws::CloudHSM::Model::CreateHsmRequest::WithSubnetId
CreateHsmRequest & WithSubnetId(Aws::String &&value)
Definition: CreateHsmRequest.h:75
Aws::CloudHSM::Model::CreateHsmRequest::GetSshKey
const Aws::String & GetSshKey() const
Definition: CreateHsmRequest.h:86
CloudHSM_EXPORTS.h
Aws::CloudHSM::Model::CreateHsmRequest::SetExternalId
void SetExternalId(const char *value)
Definition: CreateHsmRequest.h:253
Aws::CloudHSM::Model::CreateHsmRequest::WithSyslogIp
CreateHsmRequest & WithSyslogIp(const char *value)
Definition: CreateHsmRequest.h:385
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudHSM::Model::CreateHsmRequest::WithEniIp
CreateHsmRequest & WithEniIp(Aws::String &&value)
Definition: CreateHsmRequest.h:171
Aws::CloudHSM::Model::CreateHsmRequest::WithEniIp
CreateHsmRequest & WithEniIp(const char *value)
Definition: CreateHsmRequest.h:178
Aws::CloudHSM::Model::CreateHsmRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudHSM::Model::CreateHsmRequest::CreateHsmRequest
CreateHsmRequest()
Aws::CloudHSM::Model::CreateHsmRequest::SetSshKey
void SetSshKey(const Aws::String &value)
Definition: CreateHsmRequest.h:96
Aws::CloudHSM::Model::CreateHsmRequest::SyslogIpHasBeenSet
bool SyslogIpHasBeenSet() const
Definition: CreateHsmRequest.h:349
Aws::CloudHSM::Model::CreateHsmRequest::WithExternalId
CreateHsmRequest & WithExternalId(const Aws::String &value)
Definition: CreateHsmRequest.h:258
Aws::CloudHSM::Model::CreateHsmRequest::SubscriptionTypeHasBeenSet
bool SubscriptionTypeHasBeenSet() const
Definition: CreateHsmRequest.h:275
Aws::CloudHSM::Model::CreateHsmRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateHsmRequest.h:318
Aws::CloudHSM::Model::CreateHsmRequest::WithEniIp
CreateHsmRequest & WithEniIp(const Aws::String &value)
Definition: CreateHsmRequest.h:164
AWS_CLOUDHSM_API
#define AWS_CLOUDHSM_API
Definition: CloudHSM_EXPORTS.h:28
Aws::CloudHSM::Model::CreateHsmRequest::SetIamRoleArn
void SetIamRoleArn(const Aws::String &value)
Definition: CreateHsmRequest.h:197
Aws::CloudHSM::Model::SubscriptionType
SubscriptionType
Definition: SubscriptionType.h:17
Aws::CloudHSM::Model::CreateHsmRequest::SetEniIp
void SetEniIp(const Aws::String &value)
Definition: CreateHsmRequest.h:143
Aws::CloudHSM::Model::CreateHsmRequest::WithSyslogIp
CreateHsmRequest & WithSyslogIp(const Aws::String &value)
Definition: CreateHsmRequest.h:373
Aws::CloudHSM::Model::CreateHsmRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateHsmRequest.h:294
Aws::CloudHSM::Model::CreateHsmRequest::WithExternalId
CreateHsmRequest & WithExternalId(const char *value)
Definition: CreateHsmRequest.h:268
Aws::CloudHSM::Model::CreateHsmRequest::WithClientToken
CreateHsmRequest & WithClientToken(const Aws::String &value)
Definition: CreateHsmRequest.h:324
Aws::CloudHSM::Model::CreateHsmRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudHSM::Model::CreateHsmRequest::WithClientToken
CreateHsmRequest & WithClientToken(Aws::String &&value)
Definition: CreateHsmRequest.h:330
Aws::CloudHSM::Model::CreateHsmRequest::SetIamRoleArn
void SetIamRoleArn(const char *value)
Definition: CreateHsmRequest.h:209
Aws::CloudHSM::Model::CreateHsmRequest::SetSyslogIp
void SetSyslogIp(const Aws::String &value)
Definition: CreateHsmRequest.h:355
Aws::CloudHSM::Model::CreateHsmRequest::WithSubscriptionType
CreateHsmRequest & WithSubscriptionType(const SubscriptionType &value)
Definition: CreateHsmRequest.h:284
Aws::CloudHSM::Model::CreateHsmRequest::GetEniIp
const Aws::String & GetEniIp() const
Definition: CreateHsmRequest.h:129
Aws::CloudHSM::Model::CreateHsmRequest::SetExternalId
void SetExternalId(Aws::String &&value)
Definition: CreateHsmRequest.h:248
Aws::CloudHSM::Model::CreateHsmRequest
Definition: CreateHsmRequest.h:27
Aws::CloudHSM::Model::CreateHsmRequest::WithIamRoleArn
CreateHsmRequest & WithIamRoleArn(Aws::String &&value)
Definition: CreateHsmRequest.h:221
Aws::CloudHSM::Model::CreateHsmRequest::SetExternalId
void SetExternalId(const Aws::String &value)
Definition: CreateHsmRequest.h:243
Aws::CloudHSM::Model::CreateHsmRequest::WithSyslogIp
CreateHsmRequest & WithSyslogIp(Aws::String &&value)
Definition: CreateHsmRequest.h:379
Aws::CloudHSM::Model::CreateHsmRequest::GetIamRoleArn
const Aws::String & GetIamRoleArn() const
Definition: CreateHsmRequest.h:185
Aws::CloudHSM::Model::CreateHsmRequest::WithIamRoleArn
CreateHsmRequest & WithIamRoleArn(const char *value)
Definition: CreateHsmRequest.h:227
Aws::CloudHSM::Model::CreateHsmRequest::GetSyslogIp
const Aws::String & GetSyslogIp() const
Definition: CreateHsmRequest.h:343
Aws::CloudHSM::Model::CreateHsmRequest::WithIamRoleArn
CreateHsmRequest & WithIamRoleArn(const Aws::String &value)
Definition: CreateHsmRequest.h:215
Aws::CloudHSM::CloudHSMRequest
Definition: CloudHSMRequest.h:17
Aws::CloudHSM::Model::CreateHsmRequest::WithSubscriptionType
CreateHsmRequest & WithSubscriptionType(SubscriptionType &&value)
Definition: CreateHsmRequest.h:287
AWSString.h
CloudHSMRequest.h
SubscriptionType.h
Aws::CloudHSM::Model::CreateHsmRequest::WithSshKey
CreateHsmRequest & WithSshKey(const char *value)
Definition: CreateHsmRequest.h:121
Aws::CloudHSM::Model::CreateHsmRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateHsmRequest.h:312
Aws::CloudHSM::Model::CreateHsmRequest::WithSubnetId
CreateHsmRequest & WithSubnetId(const Aws::String &value)
Definition: CreateHsmRequest.h:70
Aws::CloudHSM::Model::CreateHsmRequest::GetExternalId
const Aws::String & GetExternalId() const
Definition: CreateHsmRequest.h:233
Aws::CloudHSM::Model::CreateHsmRequest::SetEniIp
void SetEniIp(const char *value)
Definition: CreateHsmRequest.h:157
Aws::CloudHSM::Model::CreateHsmRequest::WithSshKey
CreateHsmRequest & WithSshKey(Aws::String &&value)
Definition: CreateHsmRequest.h:116
Aws::CloudHSM::Model::CreateHsmRequest::WithSshKey
CreateHsmRequest & WithSshKey(const Aws::String &value)
Definition: CreateHsmRequest.h:111
Aws::CloudHSM::Model::CreateHsmRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: CreateHsmRequest.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::CloudHSM::Model::CreateHsmRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateHsmRequest.h:35
Aws::CloudHSM::Model::CreateHsmRequest::WithExternalId
CreateHsmRequest & WithExternalId(Aws::String &&value)
Definition: CreateHsmRequest.h:263
Aws::CloudHSM::Model::CreateHsmRequest::WithSubnetId
CreateHsmRequest & WithSubnetId(const char *value)
Definition: CreateHsmRequest.h:80
Aws::CloudHSM::Model::CreateHsmRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateHsmRequest.h:300
Aws::CloudHSM::Model::CreateHsmRequest::WithClientToken
CreateHsmRequest & WithClientToken(const char *value)
Definition: CreateHsmRequest.h:336
Aws::CloudHSM::Model::CreateHsmRequest::SetIamRoleArn
void SetIamRoleArn(Aws::String &&value)
Definition: CreateHsmRequest.h:203
Aws::CloudHSM::Model::CreateHsmRequest::SetSubscriptionType
void SetSubscriptionType(SubscriptionType &&value)
Definition: CreateHsmRequest.h:281
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudHSM::Model::CreateHsmRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateHsmRequest.h:306
Aws::CloudHSM::Model::CreateHsmRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: CreateHsmRequest.h:55
Aws::CloudHSM::Model::CreateHsmRequest::SetSshKey
void SetSshKey(Aws::String &&value)
Definition: CreateHsmRequest.h:101
Aws::CloudHSM::Model::CreateHsmRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: CreateHsmRequest.h:50
Aws::CloudHSM::Model::CreateHsmRequest::ExternalIdHasBeenSet
bool ExternalIdHasBeenSet() const
Definition: CreateHsmRequest.h:238
Aws::CloudHSM::Model::CreateHsmRequest::SetSshKey
void SetSshKey(const char *value)
Definition: CreateHsmRequest.h:106
Aws::CloudHSM::Model::CreateHsmRequest::SetSubscriptionType
void SetSubscriptionType(const SubscriptionType &value)
Definition: CreateHsmRequest.h:278
Aws::CloudHSM::Model::CreateHsmRequest::EniIpHasBeenSet
bool EniIpHasBeenSet() const
Definition: CreateHsmRequest.h:136
Aws::CloudHSM::Model::CreateHsmRequest::GetSubscriptionType
const SubscriptionType & GetSubscriptionType() const
Definition: CreateHsmRequest.h:272
Aws::CloudHSM::Model::CreateHsmRequest::SetSyslogIp
void SetSyslogIp(const char *value)
Definition: CreateHsmRequest.h:367
Aws::CloudHSM::Model::CreateHsmRequest::SetSyslogIp
void SetSyslogIp(Aws::String &&value)
Definition: CreateHsmRequest.h:361
Aws::CloudHSM::Model::CreateHsmRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: CreateHsmRequest.h:65
Aws::CloudHSM::Model::CreateHsmRequest::SshKeyHasBeenSet
bool SshKeyHasBeenSet() const
Definition: CreateHsmRequest.h:91