AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateHsmConfigurationRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace 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_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const Aws::String& GetHsmConfigurationIdentifier() const{ return m_hsmConfigurationIdentifier; }
50 inline bool HsmConfigurationIdentifierHasBeenSet() const { return m_hsmConfigurationIdentifierHasBeenSet; }
51 inline void SetHsmConfigurationIdentifier(const Aws::String& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
52 inline void SetHsmConfigurationIdentifier(Aws::String&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = std::move(value); }
53 inline void SetHsmConfigurationIdentifier(const char* value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier.assign(value); }
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline CreateHsmConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline CreateHsmConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline CreateHsmConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
78 inline const Aws::String& GetHsmIpAddress() const{ return m_hsmIpAddress; }
79 inline bool HsmIpAddressHasBeenSet() const { return m_hsmIpAddressHasBeenSet; }
80 inline void SetHsmIpAddress(const Aws::String& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = value; }
81 inline void SetHsmIpAddress(Aws::String&& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = std::move(value); }
82 inline void SetHsmIpAddress(const char* value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress.assign(value); }
83 inline CreateHsmConfigurationRequest& WithHsmIpAddress(const Aws::String& value) { SetHsmIpAddress(value); return *this;}
84 inline CreateHsmConfigurationRequest& WithHsmIpAddress(Aws::String&& value) { SetHsmIpAddress(std::move(value)); return *this;}
85 inline CreateHsmConfigurationRequest& WithHsmIpAddress(const char* value) { SetHsmIpAddress(value); return *this;}
87
89
93 inline const Aws::String& GetHsmPartitionName() const{ return m_hsmPartitionName; }
94 inline bool HsmPartitionNameHasBeenSet() const { return m_hsmPartitionNameHasBeenSet; }
95 inline void SetHsmPartitionName(const Aws::String& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = value; }
96 inline void SetHsmPartitionName(Aws::String&& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = std::move(value); }
97 inline void SetHsmPartitionName(const char* value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName.assign(value); }
99 inline CreateHsmConfigurationRequest& WithHsmPartitionName(Aws::String&& value) { SetHsmPartitionName(std::move(value)); return *this;}
100 inline CreateHsmConfigurationRequest& WithHsmPartitionName(const char* value) { SetHsmPartitionName(value); return *this;}
102
104
107 inline const Aws::String& GetHsmPartitionPassword() const{ return m_hsmPartitionPassword; }
108 inline bool HsmPartitionPasswordHasBeenSet() const { return m_hsmPartitionPasswordHasBeenSet; }
109 inline void SetHsmPartitionPassword(const Aws::String& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = value; }
110 inline void SetHsmPartitionPassword(Aws::String&& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = std::move(value); }
111 inline void SetHsmPartitionPassword(const char* value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword.assign(value); }
114 inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(const char* value) { SetHsmPartitionPassword(value); return *this;}
116
118
122 inline const Aws::String& GetHsmServerPublicCertificate() const{ return m_hsmServerPublicCertificate; }
123 inline bool HsmServerPublicCertificateHasBeenSet() const { return m_hsmServerPublicCertificateHasBeenSet; }
124 inline void SetHsmServerPublicCertificate(const Aws::String& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = value; }
125 inline void SetHsmServerPublicCertificate(Aws::String&& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = std::move(value); }
126 inline void SetHsmServerPublicCertificate(const char* value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate.assign(value); }
131
133
136 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
139 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
140 inline CreateHsmConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
141 inline CreateHsmConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
142 inline CreateHsmConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
143 inline CreateHsmConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
145 private:
146
147 Aws::String m_hsmConfigurationIdentifier;
148 bool m_hsmConfigurationIdentifierHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
153 Aws::String m_hsmIpAddress;
154 bool m_hsmIpAddressHasBeenSet = false;
155
156 Aws::String m_hsmPartitionName;
157 bool m_hsmPartitionNameHasBeenSet = false;
158
159 Aws::String m_hsmPartitionPassword;
160 bool m_hsmPartitionPasswordHasBeenSet = false;
161
162 Aws::String m_hsmServerPublicCertificate;
163 bool m_hsmServerPublicCertificateHasBeenSet = false;
164
165 Aws::Vector<Tag> m_tags;
166 bool m_tagsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace Redshift
171} // namespace Aws
CreateHsmConfigurationRequest & WithHsmIpAddress(const char *value)
CreateHsmConfigurationRequest & WithHsmIpAddress(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmPartitionPassword(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmPartitionPassword(const char *value)
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(Aws::String &&value)
CreateHsmConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateHsmConfigurationRequest & WithHsmPartitionPassword(Aws::String &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateHsmConfigurationRequest & WithDescription(const char *value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(Aws::String &&value)
CreateHsmConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(const char *value)
CreateHsmConfigurationRequest & WithDescription(Aws::String &&value)
CreateHsmConfigurationRequest & WithHsmPartitionName(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(const char *value)
CreateHsmConfigurationRequest & AddTags(const Tag &value)
CreateHsmConfigurationRequest & WithDescription(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmPartitionName(Aws::String &&value)
CreateHsmConfigurationRequest & WithHsmIpAddress(Aws::String &&value)
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmPartitionName(const char *value)
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector