/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace DatabaseMigrationService { namespace Model { /** */ class ImportCertificateRequest : public DatabaseMigrationServiceRequest { public: AWS_DATABASEMIGRATIONSERVICE_API ImportCertificateRequest(); // 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 "ImportCertificate"; } AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override; AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A customer-assigned name for the certificate. Identifiers must begin with a * letter and must contain only ASCII letters, digits, and hyphens. They can't end * with a hyphen or contain two consecutive hyphens.

*/ inline const Aws::String& GetCertificateIdentifier() const{ return m_certificateIdentifier; } /** *

A customer-assigned name for the certificate. Identifiers must begin with a * letter and must contain only ASCII letters, digits, and hyphens. They can't end * with a hyphen or contain two consecutive hyphens.

*/ inline bool CertificateIdentifierHasBeenSet() const { return m_certificateIdentifierHasBeenSet; } /** *

A customer-assigned name for the certificate. Identifiers must begin with a * letter and must contain only ASCII letters, digits, and hyphens. They can't end * with a hyphen or contain two consecutive hyphens.

*/ inline void SetCertificateIdentifier(const Aws::String& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = value; } /** *

A customer-assigned name for the certificate. Identifiers must begin with a * letter and must contain only ASCII letters, digits, and hyphens. They can't end * with a hyphen or contain two consecutive hyphens.

*/ inline void SetCertificateIdentifier(Aws::String&& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = std::move(value); } /** *

A customer-assigned name for the certificate. Identifiers must begin with a * letter and must contain only ASCII letters, digits, and hyphens. They can't end * with a hyphen or contain two consecutive hyphens.

*/ inline void SetCertificateIdentifier(const char* value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier.assign(value); } /** *

A customer-assigned name for the certificate. Identifiers must begin with a * letter and must contain only ASCII letters, digits, and hyphens. They can't end * with a hyphen or contain two consecutive hyphens.

*/ inline ImportCertificateRequest& WithCertificateIdentifier(const Aws::String& value) { SetCertificateIdentifier(value); return *this;} /** *

A customer-assigned name for the certificate. Identifiers must begin with a * letter and must contain only ASCII letters, digits, and hyphens. They can't end * with a hyphen or contain two consecutive hyphens.

*/ inline ImportCertificateRequest& WithCertificateIdentifier(Aws::String&& value) { SetCertificateIdentifier(std::move(value)); return *this;} /** *

A customer-assigned name for the certificate. Identifiers must begin with a * letter and must contain only ASCII letters, digits, and hyphens. They can't end * with a hyphen or contain two consecutive hyphens.

*/ inline ImportCertificateRequest& WithCertificateIdentifier(const char* value) { SetCertificateIdentifier(value); return *this;} /** *

The contents of a .pem file, which contains an X.509 * certificate.

*/ inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; } /** *

The contents of a .pem file, which contains an X.509 * certificate.

*/ inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; } /** *

The contents of a .pem file, which contains an X.509 * certificate.

*/ inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; } /** *

The contents of a .pem file, which contains an X.509 * certificate.

*/ inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = std::move(value); } /** *

The contents of a .pem file, which contains an X.509 * certificate.

*/ inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); } /** *

The contents of a .pem file, which contains an X.509 * certificate.

*/ inline ImportCertificateRequest& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;} /** *

The contents of a .pem file, which contains an X.509 * certificate.

*/ inline ImportCertificateRequest& WithCertificatePem(Aws::String&& value) { SetCertificatePem(std::move(value)); return *this;} /** *

The contents of a .pem file, which contains an X.509 * certificate.

*/ inline ImportCertificateRequest& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;} /** *

The location of an imported Oracle Wallet certificate for use with SSL. * Provide the name of a .sso file using the fileb:// * prefix. You can't provide the certificate inline.

Example: * filebase64("${path.root}/rds-ca-2019-root.sso")

*/ inline const Aws::Utils::ByteBuffer& GetCertificateWallet() const{ return m_certificateWallet; } /** *

The location of an imported Oracle Wallet certificate for use with SSL. * Provide the name of a .sso file using the fileb:// * prefix. You can't provide the certificate inline.

Example: * filebase64("${path.root}/rds-ca-2019-root.sso")

*/ inline bool CertificateWalletHasBeenSet() const { return m_certificateWalletHasBeenSet; } /** *

The location of an imported Oracle Wallet certificate for use with SSL. * Provide the name of a .sso file using the fileb:// * prefix. You can't provide the certificate inline.

Example: * filebase64("${path.root}/rds-ca-2019-root.sso")

*/ inline void SetCertificateWallet(const Aws::Utils::ByteBuffer& value) { m_certificateWalletHasBeenSet = true; m_certificateWallet = value; } /** *

The location of an imported Oracle Wallet certificate for use with SSL. * Provide the name of a .sso file using the fileb:// * prefix. You can't provide the certificate inline.

Example: * filebase64("${path.root}/rds-ca-2019-root.sso")

*/ inline void SetCertificateWallet(Aws::Utils::ByteBuffer&& value) { m_certificateWalletHasBeenSet = true; m_certificateWallet = std::move(value); } /** *

The location of an imported Oracle Wallet certificate for use with SSL. * Provide the name of a .sso file using the fileb:// * prefix. You can't provide the certificate inline.

Example: * filebase64("${path.root}/rds-ca-2019-root.sso")

*/ inline ImportCertificateRequest& WithCertificateWallet(const Aws::Utils::ByteBuffer& value) { SetCertificateWallet(value); return *this;} /** *

The location of an imported Oracle Wallet certificate for use with SSL. * Provide the name of a .sso file using the fileb:// * prefix. You can't provide the certificate inline.

Example: * filebase64("${path.root}/rds-ca-2019-root.sso")

*/ inline ImportCertificateRequest& WithCertificateWallet(Aws::Utils::ByteBuffer&& value) { SetCertificateWallet(std::move(value)); return *this;} /** *

The tags associated with the certificate.

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

The tags associated with the certificate.

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

The tags associated with the certificate.

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

The tags associated with the certificate.

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

The tags associated with the certificate.

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

The tags associated with the certificate.

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

The tags associated with the certificate.

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

The tags associated with the certificate.

*/ inline ImportCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_certificateIdentifier; bool m_certificateIdentifierHasBeenSet = false; Aws::String m_certificatePem; bool m_certificatePemHasBeenSet = false; Aws::Utils::ByteBuffer m_certificateWallet; bool m_certificateWalletHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws