AWS SDK for C++  1.9.107
AWS SDK for C++
CreateHsmConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace Model
19 {
20 
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 "CreateHsmConfiguration"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetHsmConfigurationIdentifier() const{ return m_hsmConfigurationIdentifier; }
49 
54  inline bool HsmConfigurationIdentifierHasBeenSet() const { return m_hsmConfigurationIdentifierHasBeenSet; }
55 
60  inline void SetHsmConfigurationIdentifier(const Aws::String& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
61 
66  inline void SetHsmConfigurationIdentifier(Aws::String&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = std::move(value); }
67 
72  inline void SetHsmConfigurationIdentifier(const char* value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier.assign(value); }
73 
78  inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(const Aws::String& value) { SetHsmConfigurationIdentifier(value); return *this;}
79 
84  inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(Aws::String&& value) { SetHsmConfigurationIdentifier(std::move(value)); return *this;}
85 
90  inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(const char* value) { SetHsmConfigurationIdentifier(value); return *this;}
91 
92 
96  inline const Aws::String& GetDescription() const{ return m_description; }
97 
101  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 
106  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
107 
111  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
112 
116  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
117 
121  inline CreateHsmConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
122 
126  inline CreateHsmConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
127 
131  inline CreateHsmConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
132 
133 
138  inline const Aws::String& GetHsmIpAddress() const{ return m_hsmIpAddress; }
139 
144  inline bool HsmIpAddressHasBeenSet() const { return m_hsmIpAddressHasBeenSet; }
145 
150  inline void SetHsmIpAddress(const Aws::String& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = value; }
151 
156  inline void SetHsmIpAddress(Aws::String&& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = std::move(value); }
157 
162  inline void SetHsmIpAddress(const char* value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress.assign(value); }
163 
168  inline CreateHsmConfigurationRequest& WithHsmIpAddress(const Aws::String& value) { SetHsmIpAddress(value); return *this;}
169 
174  inline CreateHsmConfigurationRequest& WithHsmIpAddress(Aws::String&& value) { SetHsmIpAddress(std::move(value)); return *this;}
175 
180  inline CreateHsmConfigurationRequest& WithHsmIpAddress(const char* value) { SetHsmIpAddress(value); return *this;}
181 
182 
187  inline const Aws::String& GetHsmPartitionName() const{ return m_hsmPartitionName; }
188 
193  inline bool HsmPartitionNameHasBeenSet() const { return m_hsmPartitionNameHasBeenSet; }
194 
199  inline void SetHsmPartitionName(const Aws::String& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = value; }
200 
205  inline void SetHsmPartitionName(Aws::String&& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = std::move(value); }
206 
211  inline void SetHsmPartitionName(const char* value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName.assign(value); }
212 
217  inline CreateHsmConfigurationRequest& WithHsmPartitionName(const Aws::String& value) { SetHsmPartitionName(value); return *this;}
218 
223  inline CreateHsmConfigurationRequest& WithHsmPartitionName(Aws::String&& value) { SetHsmPartitionName(std::move(value)); return *this;}
224 
229  inline CreateHsmConfigurationRequest& WithHsmPartitionName(const char* value) { SetHsmPartitionName(value); return *this;}
230 
231 
235  inline const Aws::String& GetHsmPartitionPassword() const{ return m_hsmPartitionPassword; }
236 
240  inline bool HsmPartitionPasswordHasBeenSet() const { return m_hsmPartitionPasswordHasBeenSet; }
241 
245  inline void SetHsmPartitionPassword(const Aws::String& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = value; }
246 
250  inline void SetHsmPartitionPassword(Aws::String&& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = std::move(value); }
251 
255  inline void SetHsmPartitionPassword(const char* value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword.assign(value); }
256 
260  inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(const Aws::String& value) { SetHsmPartitionPassword(value); return *this;}
261 
265  inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(Aws::String&& value) { SetHsmPartitionPassword(std::move(value)); return *this;}
266 
270  inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(const char* value) { SetHsmPartitionPassword(value); return *this;}
271 
272 
277  inline const Aws::String& GetHsmServerPublicCertificate() const{ return m_hsmServerPublicCertificate; }
278 
283  inline bool HsmServerPublicCertificateHasBeenSet() const { return m_hsmServerPublicCertificateHasBeenSet; }
284 
289  inline void SetHsmServerPublicCertificate(const Aws::String& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = value; }
290 
295  inline void SetHsmServerPublicCertificate(Aws::String&& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = std::move(value); }
296 
301  inline void SetHsmServerPublicCertificate(const char* value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate.assign(value); }
302 
307  inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(const Aws::String& value) { SetHsmServerPublicCertificate(value); return *this;}
308 
313  inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(Aws::String&& value) { SetHsmServerPublicCertificate(std::move(value)); return *this;}
314 
319  inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(const char* value) { SetHsmServerPublicCertificate(value); return *this;}
320 
321 
325  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
326 
330  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
331 
335  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
336 
340  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
341 
345  inline CreateHsmConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
346 
350  inline CreateHsmConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
351 
355  inline CreateHsmConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
356 
360  inline CreateHsmConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
361 
362  private:
363 
364  Aws::String m_hsmConfigurationIdentifier;
365  bool m_hsmConfigurationIdentifierHasBeenSet;
366 
367  Aws::String m_description;
368  bool m_descriptionHasBeenSet;
369 
370  Aws::String m_hsmIpAddress;
371  bool m_hsmIpAddressHasBeenSet;
372 
373  Aws::String m_hsmPartitionName;
374  bool m_hsmPartitionNameHasBeenSet;
375 
376  Aws::String m_hsmPartitionPassword;
377  bool m_hsmPartitionPasswordHasBeenSet;
378 
379  Aws::String m_hsmServerPublicCertificate;
380  bool m_hsmServerPublicCertificateHasBeenSet;
381 
382  Aws::Vector<Tag> m_tags;
383  bool m_tagsHasBeenSet;
384  };
385 
386 } // namespace Model
387 } // namespace Redshift
388 } // namespace Aws
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithTags
CreateHsmConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateHsmConfigurationRequest.h:350
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmIpAddress
void SetHsmIpAddress(const char *value)
Definition: CreateHsmConfigurationRequest.h:162
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmConfigurationIdentifier
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:78
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateHsmConfigurationRequest.h:335
Aws::Redshift::Model::CreateHsmConfigurationRequest::HsmIpAddressHasBeenSet
bool HsmIpAddressHasBeenSet() const
Definition: CreateHsmConfigurationRequest.h:144
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmPartitionPassword
void SetHsmPartitionPassword(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:245
Aws::Redshift::Model::CreateHsmConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmPartitionPassword
void SetHsmPartitionPassword(const char *value)
Definition: CreateHsmConfigurationRequest.h:255
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmIpAddress
CreateHsmConfigurationRequest & WithHsmIpAddress(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:174
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmPartitionName
CreateHsmConfigurationRequest & WithHsmPartitionName(const char *value)
Definition: CreateHsmConfigurationRequest.h:229
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmConfigurationIdentifier
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:84
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateHsmConfigurationRequest.h:116
Aws::Redshift::Model::CreateHsmConfigurationRequest
Definition: CreateHsmConfigurationRequest.h:27
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmServerPublicCertificate
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:307
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithDescription
CreateHsmConfigurationRequest & WithDescription(const char *value)
Definition: CreateHsmConfigurationRequest.h:131
Tag.h
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmServerPublicCertificate
void SetHsmServerPublicCertificate(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:289
Aws::Redshift::Model::CreateHsmConfigurationRequest::GetHsmIpAddress
const Aws::String & GetHsmIpAddress() const
Definition: CreateHsmConfigurationRequest.h:138
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmPartitionName
CreateHsmConfigurationRequest & WithHsmPartitionName(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:217
Aws::Redshift::Model::CreateHsmConfigurationRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateHsmConfigurationRequest.h:101
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmIpAddress
CreateHsmConfigurationRequest & WithHsmIpAddress(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:168
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmPartitionPassword
CreateHsmConfigurationRequest & WithHsmPartitionPassword(const char *value)
Definition: CreateHsmConfigurationRequest.h:270
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
Aws::Redshift::Model::CreateHsmConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateHsmConfigurationRequest.h:35
AWSVector.h
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmConfigurationIdentifier
void SetHsmConfigurationIdentifier(const char *value)
Definition: CreateHsmConfigurationRequest.h:72
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmServerPublicCertificate
void SetHsmServerPublicCertificate(const char *value)
Definition: CreateHsmConfigurationRequest.h:301
Aws::Redshift::Model::CreateHsmConfigurationRequest::HsmPartitionPasswordHasBeenSet
bool HsmPartitionPasswordHasBeenSet() const
Definition: CreateHsmConfigurationRequest.h:240
Aws::Redshift::Model::CreateHsmConfigurationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateHsmConfigurationRequest.h:330
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmPartitionName
CreateHsmConfigurationRequest & WithHsmPartitionName(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:223
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:106
Aws::Redshift::Model::CreateHsmConfigurationRequest::AddTags
CreateHsmConfigurationRequest & AddTags(const Tag &value)
Definition: CreateHsmConfigurationRequest.h:355
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:111
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmPartitionName
void SetHsmPartitionName(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:205
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmPartitionPassword
void SetHsmPartitionPassword(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:250
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmConfigurationIdentifier
void SetHsmConfigurationIdentifier(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:60
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithDescription
CreateHsmConfigurationRequest & WithDescription(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:126
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmPartitionPassword
CreateHsmConfigurationRequest & WithHsmPartitionPassword(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:265
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateHsmConfigurationRequest::HsmConfigurationIdentifierHasBeenSet
bool HsmConfigurationIdentifierHasBeenSet() const
Definition: CreateHsmConfigurationRequest.h:54
Aws::Redshift::Model::CreateHsmConfigurationRequest::CreateHsmConfigurationRequest
CreateHsmConfigurationRequest()
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmConfigurationIdentifier
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(const char *value)
Definition: CreateHsmConfigurationRequest.h:90
Aws::Redshift::Model::CreateHsmConfigurationRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateHsmConfigurationRequest.h:96
AWSString.h
Aws::Redshift::Model::CreateHsmConfigurationRequest::HsmPartitionNameHasBeenSet
bool HsmPartitionNameHasBeenSet() const
Definition: CreateHsmConfigurationRequest.h:193
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmPartitionName
void SetHsmPartitionName(const char *value)
Definition: CreateHsmConfigurationRequest.h:211
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithTags
CreateHsmConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateHsmConfigurationRequest.h:345
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmServerPublicCertificate
void SetHsmServerPublicCertificate(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:295
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmPartitionPassword
CreateHsmConfigurationRequest & WithHsmPartitionPassword(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:260
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmServerPublicCertificate
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:313
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithDescription
CreateHsmConfigurationRequest & WithDescription(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:121
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmIpAddress
void SetHsmIpAddress(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:150
Aws::Redshift::Model::CreateHsmConfigurationRequest::AddTags
CreateHsmConfigurationRequest & AddTags(Tag &&value)
Definition: CreateHsmConfigurationRequest.h:360
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateHsmConfigurationRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateHsmConfigurationRequest.h:325
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmPartitionName
void SetHsmPartitionName(const Aws::String &value)
Definition: CreateHsmConfigurationRequest.h:199
Aws::Redshift::Model::CreateHsmConfigurationRequest::HsmServerPublicCertificateHasBeenSet
bool HsmServerPublicCertificateHasBeenSet() const
Definition: CreateHsmConfigurationRequest.h:283
Redshift_EXPORTS.h
Aws::Redshift::Model::CreateHsmConfigurationRequest::GetHsmPartitionName
const Aws::String & GetHsmPartitionName() const
Definition: CreateHsmConfigurationRequest.h:187
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmIpAddress
CreateHsmConfigurationRequest & WithHsmIpAddress(const char *value)
Definition: CreateHsmConfigurationRequest.h:180
Aws::Redshift::Model::CreateHsmConfigurationRequest::WithHsmServerPublicCertificate
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(const char *value)
Definition: CreateHsmConfigurationRequest.h:319
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmIpAddress
void SetHsmIpAddress(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:156
Aws::Redshift::Model::CreateHsmConfigurationRequest::GetHsmConfigurationIdentifier
const Aws::String & GetHsmConfigurationIdentifier() const
Definition: CreateHsmConfigurationRequest.h:48
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateHsmConfigurationRequest.h:340
Aws::Redshift::Model::CreateHsmConfigurationRequest::GetHsmServerPublicCertificate
const Aws::String & GetHsmServerPublicCertificate() const
Definition: CreateHsmConfigurationRequest.h:277
Aws::Redshift::Model::CreateHsmConfigurationRequest::SetHsmConfigurationIdentifier
void SetHsmConfigurationIdentifier(Aws::String &&value)
Definition: CreateHsmConfigurationRequest.h:66
Aws::Redshift::Model::CreateHsmConfigurationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateHsmConfigurationRequest::GetHsmPartitionPassword
const Aws::String & GetHsmPartitionPassword() const
Definition: CreateHsmConfigurationRequest.h:235