/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** *

See Also:

AWS * API Reference

*/ class CreateHsmConfigurationRequest : public RedshiftRequest { public: AWS_REDSHIFT_API CreateHsmConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateHsmConfiguration"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identifier to be assigned to the new Amazon Redshift HSM * configuration.

*/ inline const Aws::String& GetHsmConfigurationIdentifier() const{ return m_hsmConfigurationIdentifier; } /** *

The identifier to be assigned to the new Amazon Redshift HSM * configuration.

*/ inline bool HsmConfigurationIdentifierHasBeenSet() const { return m_hsmConfigurationIdentifierHasBeenSet; } /** *

The identifier to be assigned to the new Amazon Redshift HSM * configuration.

*/ inline void SetHsmConfigurationIdentifier(const Aws::String& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; } /** *

The identifier to be assigned to the new Amazon Redshift HSM * configuration.

*/ inline void SetHsmConfigurationIdentifier(Aws::String&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = std::move(value); } /** *

The identifier to be assigned to the new Amazon Redshift HSM * configuration.

*/ inline void SetHsmConfigurationIdentifier(const char* value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier.assign(value); } /** *

The identifier to be assigned to the new Amazon Redshift HSM * configuration.

*/ inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(const Aws::String& value) { SetHsmConfigurationIdentifier(value); return *this;} /** *

The identifier to be assigned to the new Amazon Redshift HSM * configuration.

*/ inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(Aws::String&& value) { SetHsmConfigurationIdentifier(std::move(value)); return *this;} /** *

The identifier to be assigned to the new Amazon Redshift HSM * configuration.

*/ inline CreateHsmConfigurationRequest& WithHsmConfigurationIdentifier(const char* value) { SetHsmConfigurationIdentifier(value); return *this;} /** *

A text description of the HSM configuration to be created.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A text description of the HSM configuration to be created.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A text description of the HSM configuration to be created.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A text description of the HSM configuration to be created.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A text description of the HSM configuration to be created.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A text description of the HSM configuration to be created.

*/ inline CreateHsmConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A text description of the HSM configuration to be created.

*/ inline CreateHsmConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A text description of the HSM configuration to be created.

*/ inline CreateHsmConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The IP address that the Amazon Redshift cluster must use to access the * HSM.

*/ inline const Aws::String& GetHsmIpAddress() const{ return m_hsmIpAddress; } /** *

The IP address that the Amazon Redshift cluster must use to access the * HSM.

*/ inline bool HsmIpAddressHasBeenSet() const { return m_hsmIpAddressHasBeenSet; } /** *

The IP address that the Amazon Redshift cluster must use to access the * HSM.

*/ inline void SetHsmIpAddress(const Aws::String& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = value; } /** *

The IP address that the Amazon Redshift cluster must use to access the * HSM.

*/ inline void SetHsmIpAddress(Aws::String&& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = std::move(value); } /** *

The IP address that the Amazon Redshift cluster must use to access the * HSM.

*/ inline void SetHsmIpAddress(const char* value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress.assign(value); } /** *

The IP address that the Amazon Redshift cluster must use to access the * HSM.

*/ inline CreateHsmConfigurationRequest& WithHsmIpAddress(const Aws::String& value) { SetHsmIpAddress(value); return *this;} /** *

The IP address that the Amazon Redshift cluster must use to access the * HSM.

*/ inline CreateHsmConfigurationRequest& WithHsmIpAddress(Aws::String&& value) { SetHsmIpAddress(std::move(value)); return *this;} /** *

The IP address that the Amazon Redshift cluster must use to access the * HSM.

*/ inline CreateHsmConfigurationRequest& WithHsmIpAddress(const char* value) { SetHsmIpAddress(value); return *this;} /** *

The name of the partition in the HSM where the Amazon Redshift clusters will * store their database encryption keys.

*/ inline const Aws::String& GetHsmPartitionName() const{ return m_hsmPartitionName; } /** *

The name of the partition in the HSM where the Amazon Redshift clusters will * store their database encryption keys.

*/ inline bool HsmPartitionNameHasBeenSet() const { return m_hsmPartitionNameHasBeenSet; } /** *

The name of the partition in the HSM where the Amazon Redshift clusters will * store their database encryption keys.

*/ inline void SetHsmPartitionName(const Aws::String& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = value; } /** *

The name of the partition in the HSM where the Amazon Redshift clusters will * store their database encryption keys.

*/ inline void SetHsmPartitionName(Aws::String&& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = std::move(value); } /** *

The name of the partition in the HSM where the Amazon Redshift clusters will * store their database encryption keys.

*/ inline void SetHsmPartitionName(const char* value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName.assign(value); } /** *

The name of the partition in the HSM where the Amazon Redshift clusters will * store their database encryption keys.

*/ inline CreateHsmConfigurationRequest& WithHsmPartitionName(const Aws::String& value) { SetHsmPartitionName(value); return *this;} /** *

The name of the partition in the HSM where the Amazon Redshift clusters will * store their database encryption keys.

*/ inline CreateHsmConfigurationRequest& WithHsmPartitionName(Aws::String&& value) { SetHsmPartitionName(std::move(value)); return *this;} /** *

The name of the partition in the HSM where the Amazon Redshift clusters will * store their database encryption keys.

*/ inline CreateHsmConfigurationRequest& WithHsmPartitionName(const char* value) { SetHsmPartitionName(value); return *this;} /** *

The password required to access the HSM partition.

*/ inline const Aws::String& GetHsmPartitionPassword() const{ return m_hsmPartitionPassword; } /** *

The password required to access the HSM partition.

*/ inline bool HsmPartitionPasswordHasBeenSet() const { return m_hsmPartitionPasswordHasBeenSet; } /** *

The password required to access the HSM partition.

*/ inline void SetHsmPartitionPassword(const Aws::String& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = value; } /** *

The password required to access the HSM partition.

*/ inline void SetHsmPartitionPassword(Aws::String&& value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword = std::move(value); } /** *

The password required to access the HSM partition.

*/ inline void SetHsmPartitionPassword(const char* value) { m_hsmPartitionPasswordHasBeenSet = true; m_hsmPartitionPassword.assign(value); } /** *

The password required to access the HSM partition.

*/ inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(const Aws::String& value) { SetHsmPartitionPassword(value); return *this;} /** *

The password required to access the HSM partition.

*/ inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(Aws::String&& value) { SetHsmPartitionPassword(std::move(value)); return *this;} /** *

The password required to access the HSM partition.

*/ inline CreateHsmConfigurationRequest& WithHsmPartitionPassword(const char* value) { SetHsmPartitionPassword(value); return *this;} /** *

The HSMs public certificate file. When using Cloud HSM, the file name is * server.pem.

*/ inline const Aws::String& GetHsmServerPublicCertificate() const{ return m_hsmServerPublicCertificate; } /** *

The HSMs public certificate file. When using Cloud HSM, the file name is * server.pem.

*/ inline bool HsmServerPublicCertificateHasBeenSet() const { return m_hsmServerPublicCertificateHasBeenSet; } /** *

The HSMs public certificate file. When using Cloud HSM, the file name is * server.pem.

*/ inline void SetHsmServerPublicCertificate(const Aws::String& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = value; } /** *

The HSMs public certificate file. When using Cloud HSM, the file name is * server.pem.

*/ inline void SetHsmServerPublicCertificate(Aws::String&& value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate = std::move(value); } /** *

The HSMs public certificate file. When using Cloud HSM, the file name is * server.pem.

*/ inline void SetHsmServerPublicCertificate(const char* value) { m_hsmServerPublicCertificateHasBeenSet = true; m_hsmServerPublicCertificate.assign(value); } /** *

The HSMs public certificate file. When using Cloud HSM, the file name is * server.pem.

*/ inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(const Aws::String& value) { SetHsmServerPublicCertificate(value); return *this;} /** *

The HSMs public certificate file. When using Cloud HSM, the file name is * server.pem.

*/ inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(Aws::String&& value) { SetHsmServerPublicCertificate(std::move(value)); return *this;} /** *

The HSMs public certificate file. When using Cloud HSM, the file name is * server.pem.

*/ inline CreateHsmConfigurationRequest& WithHsmServerPublicCertificate(const char* value) { SetHsmServerPublicCertificate(value); return *this;} /** *

A list of tag instances.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tag instances.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tag instances.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tag instances.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tag instances.

*/ inline CreateHsmConfigurationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tag instances.

*/ inline CreateHsmConfigurationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tag instances.

*/ inline CreateHsmConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tag instances.

*/ inline CreateHsmConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_hsmConfigurationIdentifier; bool m_hsmConfigurationIdentifierHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_hsmIpAddress; bool m_hsmIpAddressHasBeenSet = false; Aws::String m_hsmPartitionName; bool m_hsmPartitionNameHasBeenSet = false; Aws::String m_hsmPartitionPassword; bool m_hsmPartitionPasswordHasBeenSet = false; Aws::String m_hsmServerPublicCertificate; bool m_hsmServerPublicCertificateHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws