AWS SDK for C++  1.8.71
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
CreateHsmConfigurationRequest & WithHsmPartitionName(const char *value)
CreateHsmConfigurationRequest & AddTags(Tag &&value)
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmPartitionPassword(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateHsmConfigurationRequest & AddTags(const Tag &value)
CreateHsmConfigurationRequest & WithHsmPartitionPassword(const char *value)
CreateHsmConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateHsmConfigurationRequest & WithHsmIpAddress(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmPartitionName(Aws::String &&value)
#define AWS_REDSHIFT_API
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(const char *value)
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(Aws::String &&value)
CreateHsmConfigurationRequest & WithDescription(Aws::String &&value)
CreateHsmConfigurationRequest & WithHsmPartitionName(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmPartitionPassword(const Aws::String &value)
CreateHsmConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateHsmConfigurationRequest & WithDescription(const Aws::String &value)
CreateHsmConfigurationRequest & WithHsmConfigurationIdentifier(const char *value)
CreateHsmConfigurationRequest & WithHsmIpAddress(const char *value)
CreateHsmConfigurationRequest & WithHsmIpAddress(Aws::String &&value)
CreateHsmConfigurationRequest & WithDescription(const char *value)
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(const Aws::String &value)