/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoT { namespace Model { /** */ class RegisterCertificateWithoutCARequest : public IoTRequest { public: AWS_IOT_API RegisterCertificateWithoutCARequest(); // 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 "RegisterCertificateWithoutCA"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The certificate data, in PEM format.

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

The certificate data, in PEM format.

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

The certificate data, in PEM format.

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

The certificate data, in PEM format.

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

The certificate data, in PEM format.

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

The certificate data, in PEM format.

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

The certificate data, in PEM format.

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

The certificate data, in PEM format.

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

The status of the register certificate request.

*/ inline const CertificateStatus& GetStatus() const{ return m_status; } /** *

The status of the register certificate request.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the register certificate request.

*/ inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the register certificate request.

*/ inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the register certificate request.

*/ inline RegisterCertificateWithoutCARequest& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;} /** *

The status of the register certificate request.

*/ inline RegisterCertificateWithoutCARequest& WithStatus(CertificateStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_certificatePem; bool m_certificatePemHasBeenSet = false; CertificateStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws