AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
29 AWS_REDSHIFT_API CreateHsmConfigurationRequest() = default;
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 template<typename HsmConfigurationIdentifierT = Aws::String>
52 void SetHsmConfigurationIdentifier(HsmConfigurationIdentifierT&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = std::forward<HsmConfigurationIdentifierT>(value); }
53 template<typename HsmConfigurationIdentifierT = Aws::String>
54 CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(HsmConfigurationIdentifierT&& value) { SetHsmConfigurationIdentifier(std::forward<HsmConfigurationIdentifierT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 CreateHsmConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
74 inline const Aws::String& GetHsmIpAddress() const { return m_hsmIpAddress; }
75 inline bool HsmIpAddressHasBeenSet() const { return m_hsmIpAddressHasBeenSet; }
76 template<typename HsmIpAddressT = Aws::String>
77 void SetHsmIpAddress(HsmIpAddressT&& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = std::forward<HsmIpAddressT>(value); }
78 template<typename HsmIpAddressT = Aws::String>
79 CreateHsmConfigurationRequest& WithHsmIpAddress(HsmIpAddressT&& value) { SetHsmIpAddress(std::forward<HsmIpAddressT>(value)); return *this;}
81
83
87 inline const Aws::String& GetHsmPartitionName() const { return m_hsmPartitionName; }
88 inline bool HsmPartitionNameHasBeenSet() const { return m_hsmPartitionNameHasBeenSet; }
89 template<typename HsmPartitionNameT = Aws::String>
90 void SetHsmPartitionName(HsmPartitionNameT&& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = std::forward<HsmPartitionNameT>(value); }
91 template<typename HsmPartitionNameT = Aws::String>
92 CreateHsmConfigurationRequest& WithHsmPartitionName(HsmPartitionNameT&& value) { SetHsmPartitionName(std::forward<HsmPartitionNameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetHsmPartitionPassword() const { return m_hsmPartitionPassword; }
100 inline bool HsmPartitionPasswordHasBeenSet() const { return m_hsmPartitionPasswordHasBeenSet; }
101 template<typename HsmPartitionPasswordT = Aws::String>
102 void SetHsmPartitionPassword(HsmPartitionPasswordT&& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = std::forward<HsmPartitionPasswordT>(value); }
103 template<typename HsmPartitionPasswordT = Aws::String>
104 CreateHsmConfigurationRequest& WithHsmPartitionPassword(HsmPartitionPasswordT&& value) { SetHsmPartitionPassword(std::forward<HsmPartitionPasswordT>(value)); return *this;}
106
108
112 inline const Aws::String& GetHsmServerPublicCertificate() const { return m_hsmServerPublicCertificate; }
113 inline bool HsmServerPublicCertificateHasBeenSet() const { return m_hsmServerPublicCertificateHasBeenSet; }
114 template<typename HsmServerPublicCertificateT = Aws::String>
115 void SetHsmServerPublicCertificate(HsmServerPublicCertificateT&& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = std::forward<HsmServerPublicCertificateT>(value); }
116 template<typename HsmServerPublicCertificateT = Aws::String>
117 CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(HsmServerPublicCertificateT&& value) { SetHsmServerPublicCertificate(std::forward<HsmServerPublicCertificateT>(value)); return *this;}
119
121
124 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template<typename TagsT = Aws::Vector<Tag>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Vector<Tag>>
129 CreateHsmConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsT = Tag>
131 CreateHsmConfigurationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
133 private:
134
135 Aws::String m_hsmConfigurationIdentifier;
136 bool m_hsmConfigurationIdentifierHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
141 Aws::String m_hsmIpAddress;
142 bool m_hsmIpAddressHasBeenSet = false;
143
144 Aws::String m_hsmPartitionName;
145 bool m_hsmPartitionNameHasBeenSet = false;
146
147 Aws::String m_hsmPartitionPassword;
148 bool m_hsmPartitionPasswordHasBeenSet = false;
149
150 Aws::String m_hsmServerPublicCertificate;
151 bool m_hsmServerPublicCertificateHasBeenSet = false;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_tagsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Redshift
159} // 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