AWS SDK for C++  0.12.9
AWS SDK for C++
CreateHsmConfigurationRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 #include <aws/redshift/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::String& GetHsmConfigurationIdentifier() const{ return m_hsmConfigurationIdentifier; }
43 
48  inline void SetHsmConfigurationIdentifier(const Aws::String& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
49 
54  inline void SetHsmConfigurationIdentifier(Aws::String&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
55 
60  inline void SetHsmConfigurationIdentifier(const char* value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier.assign(value); }
61 
66  inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(const Aws::String& value) { SetHsmConfigurationIdentifier(value); return *this;}
67 
72  inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(Aws::String&& value) { SetHsmConfigurationIdentifier(value); return *this;}
73 
78  inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(const char* value) { SetHsmConfigurationIdentifier(value); return *this;}
79 
83  inline const Aws::String& GetDescription() const{ return m_description; }
84 
88  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
89 
93  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
99 
103  inline CreateHsmConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
104 
108  inline CreateHsmConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
109 
113  inline CreateHsmConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
114 
119  inline const Aws::String& GetHsmIpAddress() const{ return m_hsmIpAddress; }
120 
125  inline void SetHsmIpAddress(const Aws::String& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = value; }
126 
131  inline void SetHsmIpAddress(Aws::String&& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = value; }
132 
137  inline void SetHsmIpAddress(const char* value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress.assign(value); }
138 
143  inline CreateHsmConfigurationRequest& WithHsmIpAddress(const Aws::String& value) { SetHsmIpAddress(value); return *this;}
144 
149  inline CreateHsmConfigurationRequest& WithHsmIpAddress(Aws::String&& value) { SetHsmIpAddress(value); return *this;}
150 
155  inline CreateHsmConfigurationRequest& WithHsmIpAddress(const char* value) { SetHsmIpAddress(value); return *this;}
156 
161  inline const Aws::String& GetHsmPartitionName() const{ return m_hsmPartitionName; }
162 
167  inline void SetHsmPartitionName(const Aws::String& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = value; }
168 
173  inline void SetHsmPartitionName(Aws::String&& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = value; }
174 
179  inline void SetHsmPartitionName(const char* value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName.assign(value); }
180 
185  inline CreateHsmConfigurationRequest& WithHsmPartitionName(const Aws::String& value) { SetHsmPartitionName(value); return *this;}
186 
191  inline CreateHsmConfigurationRequest& WithHsmPartitionName(Aws::String&& value) { SetHsmPartitionName(value); return *this;}
192 
197  inline CreateHsmConfigurationRequest& WithHsmPartitionName(const char* value) { SetHsmPartitionName(value); return *this;}
198 
202  inline const Aws::String& GetHsmPartitionPassword() const{ return m_hsmPartitionPassword; }
203 
207  inline void SetHsmPartitionPassword(const Aws::String& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = value; }
208 
212  inline void SetHsmPartitionPassword(Aws::String&& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = value; }
213 
217  inline void SetHsmPartitionPassword(const char* value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword.assign(value); }
218 
222  inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(const Aws::String& value) { SetHsmPartitionPassword(value); return *this;}
223 
227  inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(Aws::String&& value) { SetHsmPartitionPassword(value); return *this;}
228 
232  inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(const char* value) { SetHsmPartitionPassword(value); return *this;}
233 
238  inline const Aws::String& GetHsmServerPublicCertificate() const{ return m_hsmServerPublicCertificate; }
239 
244  inline void SetHsmServerPublicCertificate(const Aws::String& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = value; }
245 
250  inline void SetHsmServerPublicCertificate(Aws::String&& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = value; }
251 
256  inline void SetHsmServerPublicCertificate(const char* value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate.assign(value); }
257 
262  inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(const Aws::String& value) { SetHsmServerPublicCertificate(value); return *this;}
263 
268  inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(Aws::String&& value) { SetHsmServerPublicCertificate(value); return *this;}
269 
274  inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(const char* value) { SetHsmServerPublicCertificate(value); return *this;}
275 
279  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
280 
284  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
285 
289  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
290 
294  inline CreateHsmConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
295 
299  inline CreateHsmConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
300 
304  inline CreateHsmConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
305 
309  inline CreateHsmConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
310 
311  private:
312  Aws::String m_hsmConfigurationIdentifier;
313  bool m_hsmConfigurationIdentifierHasBeenSet;
314  Aws::String m_description;
315  bool m_descriptionHasBeenSet;
316  Aws::String m_hsmIpAddress;
317  bool m_hsmIpAddressHasBeenSet;
318  Aws::String m_hsmPartitionName;
319  bool m_hsmPartitionNameHasBeenSet;
320  Aws::String m_hsmPartitionPassword;
321  bool m_hsmPartitionPasswordHasBeenSet;
322  Aws::String m_hsmServerPublicCertificate;
323  bool m_hsmServerPublicCertificateHasBeenSet;
324  Aws::Vector<Tag> m_tags;
325  bool m_tagsHasBeenSet;
326  };
327 
328 } // namespace Model
329 } // namespace Redshift
330 } // 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:27
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)
JSON (JavaScript Object Notation).
CreateHsmConfigurationRequest & WithDescription(const char *value)
CreateHsmConfigurationRequest & WithHsmServerPublicCertificate(const Aws::String &value)