AWS SDK for C++  0.12.9
AWS SDK for C++
CreateHsmRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace CloudHSM
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
43 
47  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
48 
52  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
53 
57  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
58 
62  inline CreateHsmRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
63 
67  inline CreateHsmRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
68 
72  inline CreateHsmRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
73 
77  inline const Aws::String& GetSshKey() const{ return m_sshKey; }
78 
82  inline void SetSshKey(const Aws::String& value) { m_sshKeyHasBeenSet = true; m_sshKey = value; }
83 
87  inline void SetSshKey(Aws::String&& value) { m_sshKeyHasBeenSet = true; m_sshKey = value; }
88 
92  inline void SetSshKey(const char* value) { m_sshKeyHasBeenSet = true; m_sshKey.assign(value); }
93 
97  inline CreateHsmRequest& WithSshKey(const Aws::String& value) { SetSshKey(value); return *this;}
98 
102  inline CreateHsmRequest& WithSshKey(Aws::String&& value) { SetSshKey(value); return *this;}
103 
107  inline CreateHsmRequest& WithSshKey(const char* value) { SetSshKey(value); return *this;}
108 
114  inline const Aws::String& GetEniIp() const{ return m_eniIp; }
115 
121  inline void SetEniIp(const Aws::String& value) { m_eniIpHasBeenSet = true; m_eniIp = value; }
122 
128  inline void SetEniIp(Aws::String&& value) { m_eniIpHasBeenSet = true; m_eniIp = value; }
129 
135  inline void SetEniIp(const char* value) { m_eniIpHasBeenSet = true; m_eniIp.assign(value); }
136 
142  inline CreateHsmRequest& WithEniIp(const Aws::String& value) { SetEniIp(value); return *this;}
143 
149  inline CreateHsmRequest& WithEniIp(Aws::String&& value) { SetEniIp(value); return *this;}
150 
156  inline CreateHsmRequest& WithEniIp(const char* value) { SetEniIp(value); return *this;}
157 
162  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
163 
168  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
169 
174  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
175 
180  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
181 
186  inline CreateHsmRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
187 
192  inline CreateHsmRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(value); return *this;}
193 
198  inline CreateHsmRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
199 
203  inline const Aws::String& GetExternalId() const{ return m_externalId; }
204 
208  inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
209 
213  inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
214 
218  inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
219 
223  inline CreateHsmRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
224 
228  inline CreateHsmRequest& WithExternalId(Aws::String&& value) { SetExternalId(value); return *this;}
229 
233  inline CreateHsmRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
234 
235 
236  inline const SubscriptionType& GetSubscriptionType() const{ return m_subscriptionType; }
237 
238 
239  inline void SetSubscriptionType(const SubscriptionType& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
240 
241 
242  inline void SetSubscriptionType(SubscriptionType&& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
243 
244 
245  inline CreateHsmRequest& WithSubscriptionType(const SubscriptionType& value) { SetSubscriptionType(value); return *this;}
246 
247 
248  inline CreateHsmRequest& WithSubscriptionType(SubscriptionType&& value) { SetSubscriptionType(value); return *this;}
249 
254  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
255 
260  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
261 
266  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
267 
272  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
273 
278  inline CreateHsmRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
279 
284  inline CreateHsmRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
285 
290  inline CreateHsmRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
291 
296  inline const Aws::String& GetSyslogIp() const{ return m_syslogIp; }
297 
302  inline void SetSyslogIp(const Aws::String& value) { m_syslogIpHasBeenSet = true; m_syslogIp = value; }
303 
308  inline void SetSyslogIp(Aws::String&& value) { m_syslogIpHasBeenSet = true; m_syslogIp = value; }
309 
314  inline void SetSyslogIp(const char* value) { m_syslogIpHasBeenSet = true; m_syslogIp.assign(value); }
315 
320  inline CreateHsmRequest& WithSyslogIp(const Aws::String& value) { SetSyslogIp(value); return *this;}
321 
326  inline CreateHsmRequest& WithSyslogIp(Aws::String&& value) { SetSyslogIp(value); return *this;}
327 
332  inline CreateHsmRequest& WithSyslogIp(const char* value) { SetSyslogIp(value); return *this;}
333 
334  private:
335  Aws::String m_subnetId;
336  bool m_subnetIdHasBeenSet;
337  Aws::String m_sshKey;
338  bool m_sshKeyHasBeenSet;
339  Aws::String m_eniIp;
340  bool m_eniIpHasBeenSet;
341  Aws::String m_iamRoleArn;
342  bool m_iamRoleArnHasBeenSet;
343  Aws::String m_externalId;
344  bool m_externalIdHasBeenSet;
345  SubscriptionType m_subscriptionType;
346  bool m_subscriptionTypeHasBeenSet;
347  Aws::String m_clientToken;
348  bool m_clientTokenHasBeenSet;
349  Aws::String m_syslogIp;
350  bool m_syslogIpHasBeenSet;
351  };
352 
353 } // namespace Model
354 } // namespace CloudHSM
355 } // namespace Aws
CreateHsmRequest & WithExternalId(const char *value)
CreateHsmRequest & WithIamRoleArn(const Aws::String &value)
const Aws::String & GetClientToken() const
void SetSshKey(Aws::String &&value)
void SetSubnetId(const Aws::String &value)
CreateHsmRequest & WithClientToken(const char *value)
void SetSubscriptionType(SubscriptionType &&value)
CreateHsmRequest & WithSshKey(const char *value)
const Aws::String & GetSshKey() const
void SetSyslogIp(Aws::String &&value)
const Aws::String & GetSubnetId() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateHsmRequest & WithExternalId(Aws::String &&value)
CreateHsmRequest & WithSubnetId(const Aws::String &value)
CreateHsmRequest & WithExternalId(const Aws::String &value)
const Aws::String & GetSyslogIp() const
void SetEniIp(const Aws::String &value)
void SetClientToken(Aws::String &&value)
void SetIamRoleArn(Aws::String &&value)
const Aws::String & GetEniIp() const
CreateHsmRequest & WithSyslogIp(Aws::String &&value)
void SetClientToken(const Aws::String &value)
CreateHsmRequest & WithSubnetId(Aws::String &&value)
#define AWS_CLOUDHSM_API
CreateHsmRequest & WithClientToken(Aws::String &&value)
CreateHsmRequest & WithEniIp(const char *value)
const Aws::String & GetIamRoleArn() const
void SetSshKey(const Aws::String &value)
void SetSubscriptionType(const SubscriptionType &value)
const Aws::String & GetExternalId() const
CreateHsmRequest & WithSyslogIp(const Aws::String &value)
void SetIamRoleArn(const Aws::String &value)
CreateHsmRequest & WithSubscriptionType(const SubscriptionType &value)
CreateHsmRequest & WithIamRoleArn(const char *value)
CreateHsmRequest & WithSubnetId(const char *value)
CreateHsmRequest & WithIamRoleArn(Aws::String &&value)
CreateHsmRequest & WithEniIp(Aws::String &&value)
void SetSyslogIp(const Aws::String &value)
void SetSubnetId(Aws::String &&value)
CreateHsmRequest & WithEniIp(const Aws::String &value)
CreateHsmRequest & WithSshKey(const Aws::String &value)
void SetExternalId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const SubscriptionType & GetSubscriptionType() const
CreateHsmRequest & WithClientToken(const Aws::String &value)
void SetExternalId(const Aws::String &value)
CreateHsmRequest & WithSyslogIp(const char *value)
JSON (JavaScript Object Notation).
CreateHsmRequest & WithSubscriptionType(SubscriptionType &&value)
CreateHsmRequest & WithSshKey(Aws::String &&value)