AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateHsmConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
25 public:
26 AWS_REDSHIFT_API CreateHsmConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateHsmConfiguration"; }
33
34 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
45 inline const Aws::String& GetHsmConfigurationIdentifier() const { return m_hsmConfigurationIdentifier; }
46 inline bool HsmConfigurationIdentifierHasBeenSet() const { return m_hsmConfigurationIdentifierHasBeenSet; }
47 template <typename HsmConfigurationIdentifierT = Aws::String>
48 void SetHsmConfigurationIdentifier(HsmConfigurationIdentifierT&& value) {
49 m_hsmConfigurationIdentifierHasBeenSet = true;
50 m_hsmConfigurationIdentifier = std::forward<HsmConfigurationIdentifierT>(value);
51 }
52 template <typename HsmConfigurationIdentifierT = Aws::String>
53 CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(HsmConfigurationIdentifierT&& value) {
54 SetHsmConfigurationIdentifier(std::forward<HsmConfigurationIdentifierT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetHsmIpAddress() const { return m_hsmIpAddress; }
83 inline bool HsmIpAddressHasBeenSet() const { return m_hsmIpAddressHasBeenSet; }
84 template <typename HsmIpAddressT = Aws::String>
85 void SetHsmIpAddress(HsmIpAddressT&& value) {
86 m_hsmIpAddressHasBeenSet = true;
87 m_hsmIpAddress = std::forward<HsmIpAddressT>(value);
88 }
89 template <typename HsmIpAddressT = Aws::String>
91 SetHsmIpAddress(std::forward<HsmIpAddressT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetHsmPartitionName() const { return m_hsmPartitionName; }
102 inline bool HsmPartitionNameHasBeenSet() const { return m_hsmPartitionNameHasBeenSet; }
103 template <typename HsmPartitionNameT = Aws::String>
104 void SetHsmPartitionName(HsmPartitionNameT&& value) {
105 m_hsmPartitionNameHasBeenSet = true;
106 m_hsmPartitionName = std::forward<HsmPartitionNameT>(value);
107 }
108 template <typename HsmPartitionNameT = Aws::String>
110 SetHsmPartitionName(std::forward<HsmPartitionNameT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetHsmPartitionPassword() const { return m_hsmPartitionPassword; }
120 inline bool HsmPartitionPasswordHasBeenSet() const { return m_hsmPartitionPasswordHasBeenSet; }
121 template <typename HsmPartitionPasswordT = Aws::String>
122 void SetHsmPartitionPassword(HsmPartitionPasswordT&& value) {
123 m_hsmPartitionPasswordHasBeenSet = true;
124 m_hsmPartitionPassword = std::forward<HsmPartitionPasswordT>(value);
125 }
126 template <typename HsmPartitionPasswordT = Aws::String>
128 SetHsmPartitionPassword(std::forward<HsmPartitionPasswordT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetHsmServerPublicCertificate() const { return m_hsmServerPublicCertificate; }
139 inline bool HsmServerPublicCertificateHasBeenSet() const { return m_hsmServerPublicCertificateHasBeenSet; }
140 template <typename HsmServerPublicCertificateT = Aws::String>
141 void SetHsmServerPublicCertificate(HsmServerPublicCertificateT&& value) {
142 m_hsmServerPublicCertificateHasBeenSet = true;
143 m_hsmServerPublicCertificate = std::forward<HsmServerPublicCertificateT>(value);
144 }
145 template <typename HsmServerPublicCertificateT = Aws::String>
146 CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(HsmServerPublicCertificateT&& value) {
147 SetHsmServerPublicCertificate(std::forward<HsmServerPublicCertificateT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template <typename TagsT = Aws::Vector<Tag>>
159 void SetTags(TagsT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags = std::forward<TagsT>(value);
162 }
163 template <typename TagsT = Aws::Vector<Tag>>
165 SetTags(std::forward<TagsT>(value));
166 return *this;
167 }
168 template <typename TagsT = Tag>
170 m_tagsHasBeenSet = true;
171 m_tags.emplace_back(std::forward<TagsT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_hsmConfigurationIdentifier;
177
178 Aws::String m_description;
179
180 Aws::String m_hsmIpAddress;
181
182 Aws::String m_hsmPartitionName;
183
184 Aws::String m_hsmPartitionPassword;
185
186 Aws::String m_hsmServerPublicCertificate;
187
188 Aws::Vector<Tag> m_tags;
189 bool m_hsmConfigurationIdentifierHasBeenSet = false;
190 bool m_descriptionHasBeenSet = false;
191 bool m_hsmIpAddressHasBeenSet = false;
192 bool m_hsmPartitionNameHasBeenSet = false;
193 bool m_hsmPartitionPasswordHasBeenSet = false;
194 bool m_hsmServerPublicCertificateHasBeenSet = false;
195 bool m_tagsHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace Redshift
200} // namespace Aws
AWS_REDSHIFT_API CreateHsmConfigurationRequest()=default
CreateHsmConfigurationRequest & WithHsmIpAddress(HsmIpAddressT &&value)
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(HsmServerPublicCertificateT &&value)
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(HsmConfigurationIdentifierT &&value)
void SetHsmServerPublicCertificate(HsmServerPublicCertificateT &&value)
CreateHsmConfigurationRequest & WithHsmPartitionName(HsmPartitionNameT &&value)
CreateHsmConfigurationRequest & WithHsmPartitionPassword(HsmPartitionPasswordT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateHsmConfigurationRequest & AddTags(TagsT &&value)
CreateHsmConfigurationRequest & WithTags(TagsT &&value)
CreateHsmConfigurationRequest & WithDescription(DescriptionT &&value)
void SetHsmConfigurationIdentifier(HsmConfigurationIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector