AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyHsmRequest.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
19 
20 namespace Aws
21 {
22 namespace CloudHSM
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetHsmArn() const{ return m_hsmArn; }
42 
46  inline void SetHsmArn(const Aws::String& value) { m_hsmArnHasBeenSet = true; m_hsmArn = value; }
47 
51  inline void SetHsmArn(Aws::String&& value) { m_hsmArnHasBeenSet = true; m_hsmArn = value; }
52 
56  inline void SetHsmArn(const char* value) { m_hsmArnHasBeenSet = true; m_hsmArn.assign(value); }
57 
61  inline ModifyHsmRequest& WithHsmArn(const Aws::String& value) { SetHsmArn(value); return *this;}
62 
66  inline ModifyHsmRequest& WithHsmArn(Aws::String&& value) { SetHsmArn(value); return *this;}
67 
71  inline ModifyHsmRequest& WithHsmArn(const char* value) { SetHsmArn(value); return *this;}
72 
77  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
78 
83  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
84 
89  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
90 
95  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
96 
101  inline ModifyHsmRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
102 
107  inline ModifyHsmRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
108 
113  inline ModifyHsmRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
114 
121  inline const Aws::String& GetEniIp() const{ return m_eniIp; }
122 
129  inline void SetEniIp(const Aws::String& value) { m_eniIpHasBeenSet = true; m_eniIp = value; }
130 
137  inline void SetEniIp(Aws::String&& value) { m_eniIpHasBeenSet = true; m_eniIp = value; }
138 
145  inline void SetEniIp(const char* value) { m_eniIpHasBeenSet = true; m_eniIp.assign(value); }
146 
153  inline ModifyHsmRequest& WithEniIp(const Aws::String& value) { SetEniIp(value); return *this;}
154 
161  inline ModifyHsmRequest& WithEniIp(Aws::String&& value) { SetEniIp(value); return *this;}
162 
169  inline ModifyHsmRequest& WithEniIp(const char* value) { SetEniIp(value); return *this;}
170 
174  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
175 
179  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
180 
184  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
185 
189  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
190 
194  inline ModifyHsmRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
195 
199  inline ModifyHsmRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(value); return *this;}
200 
204  inline ModifyHsmRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
205 
209  inline const Aws::String& GetExternalId() const{ return m_externalId; }
210 
214  inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
215 
219  inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
220 
224  inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
225 
229  inline ModifyHsmRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
230 
234  inline ModifyHsmRequest& WithExternalId(Aws::String&& value) { SetExternalId(value); return *this;}
235 
239  inline ModifyHsmRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
240 
245  inline const Aws::String& GetSyslogIp() const{ return m_syslogIp; }
246 
251  inline void SetSyslogIp(const Aws::String& value) { m_syslogIpHasBeenSet = true; m_syslogIp = value; }
252 
257  inline void SetSyslogIp(Aws::String&& value) { m_syslogIpHasBeenSet = true; m_syslogIp = value; }
258 
263  inline void SetSyslogIp(const char* value) { m_syslogIpHasBeenSet = true; m_syslogIp.assign(value); }
264 
269  inline ModifyHsmRequest& WithSyslogIp(const Aws::String& value) { SetSyslogIp(value); return *this;}
270 
275  inline ModifyHsmRequest& WithSyslogIp(Aws::String&& value) { SetSyslogIp(value); return *this;}
276 
281  inline ModifyHsmRequest& WithSyslogIp(const char* value) { SetSyslogIp(value); return *this;}
282 
283  private:
284  Aws::String m_hsmArn;
285  bool m_hsmArnHasBeenSet;
286  Aws::String m_subnetId;
287  bool m_subnetIdHasBeenSet;
288  Aws::String m_eniIp;
289  bool m_eniIpHasBeenSet;
290  Aws::String m_iamRoleArn;
291  bool m_iamRoleArnHasBeenSet;
292  Aws::String m_externalId;
293  bool m_externalIdHasBeenSet;
294  Aws::String m_syslogIp;
295  bool m_syslogIpHasBeenSet;
296  };
297 
298 } // namespace Model
299 } // namespace CloudHSM
300 } // namespace Aws
ModifyHsmRequest & WithHsmArn(Aws::String &&value)
ModifyHsmRequest & WithSubnetId(const Aws::String &value)
const Aws::String & GetExternalId() const
const Aws::String & GetSyslogIp() const
void SetExternalId(const Aws::String &value)
void SetExternalId(Aws::String &&value)
ModifyHsmRequest & WithEniIp(const Aws::String &value)
ModifyHsmRequest & WithHsmArn(const Aws::String &value)
const Aws::String & GetHsmArn() const
ModifyHsmRequest & WithIamRoleArn(Aws::String &&value)
ModifyHsmRequest & WithHsmArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ModifyHsmRequest & WithEniIp(Aws::String &&value)
void SetSubnetId(const Aws::String &value)
const Aws::String & GetIamRoleArn() const
ModifyHsmRequest & WithExternalId(const Aws::String &value)
#define AWS_CLOUDHSM_API
ModifyHsmRequest & WithSubnetId(const char *value)
ModifyHsmRequest & WithExternalId(const char *value)
void SetIamRoleArn(Aws::String &&value)
ModifyHsmRequest & WithEniIp(const char *value)
void SetEniIp(const Aws::String &value)
ModifyHsmRequest & WithSyslogIp(const char *value)
const Aws::String & GetEniIp() const
void SetSyslogIp(const Aws::String &value)
ModifyHsmRequest & WithIamRoleArn(const Aws::String &value)
const Aws::String & GetSubnetId() const
ModifyHsmRequest & WithSyslogIp(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyHsmRequest & WithSyslogIp(const Aws::String &value)
void SetSubnetId(Aws::String &&value)
ModifyHsmRequest & WithSubnetId(Aws::String &&value)
ModifyHsmRequest & WithIamRoleArn(const char *value)
void SetHsmArn(Aws::String &&value)
ModifyHsmRequest & WithExternalId(Aws::String &&value)
void SetIamRoleArn(const Aws::String &value)
void SetHsmArn(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetSyslogIp(Aws::String &&value)