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

The input for the RejectCertificateTransfer operation.

See * Also:

AWS * API Reference

*/ class RejectCertificateTransferRequest : public IoTRequest { public: AWS_IOT_API RejectCertificateTransferRequest(); // 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 "RejectCertificateTransfer"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The ID of the certificate. (The last part of the certificate ARN contains the * certificate ID.)

*/ inline const Aws::String& GetCertificateId() const{ return m_certificateId; } /** *

The ID of the certificate. (The last part of the certificate ARN contains the * certificate ID.)

*/ inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; } /** *

The ID of the certificate. (The last part of the certificate ARN contains the * certificate ID.)

*/ inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; } /** *

The ID of the certificate. (The last part of the certificate ARN contains the * certificate ID.)

*/ inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); } /** *

The ID of the certificate. (The last part of the certificate ARN contains the * certificate ID.)

*/ inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); } /** *

The ID of the certificate. (The last part of the certificate ARN contains the * certificate ID.)

*/ inline RejectCertificateTransferRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;} /** *

The ID of the certificate. (The last part of the certificate ARN contains the * certificate ID.)

*/ inline RejectCertificateTransferRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;} /** *

The ID of the certificate. (The last part of the certificate ARN contains the * certificate ID.)

*/ inline RejectCertificateTransferRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;} /** *

The reason the certificate transfer was rejected.

*/ inline const Aws::String& GetRejectReason() const{ return m_rejectReason; } /** *

The reason the certificate transfer was rejected.

*/ inline bool RejectReasonHasBeenSet() const { return m_rejectReasonHasBeenSet; } /** *

The reason the certificate transfer was rejected.

*/ inline void SetRejectReason(const Aws::String& value) { m_rejectReasonHasBeenSet = true; m_rejectReason = value; } /** *

The reason the certificate transfer was rejected.

*/ inline void SetRejectReason(Aws::String&& value) { m_rejectReasonHasBeenSet = true; m_rejectReason = std::move(value); } /** *

The reason the certificate transfer was rejected.

*/ inline void SetRejectReason(const char* value) { m_rejectReasonHasBeenSet = true; m_rejectReason.assign(value); } /** *

The reason the certificate transfer was rejected.

*/ inline RejectCertificateTransferRequest& WithRejectReason(const Aws::String& value) { SetRejectReason(value); return *this;} /** *

The reason the certificate transfer was rejected.

*/ inline RejectCertificateTransferRequest& WithRejectReason(Aws::String&& value) { SetRejectReason(std::move(value)); return *this;} /** *

The reason the certificate transfer was rejected.

*/ inline RejectCertificateTransferRequest& WithRejectReason(const char* value) { SetRejectReason(value); return *this;} private: Aws::String m_certificateId; bool m_certificateIdHasBeenSet = false; Aws::String m_rejectReason; bool m_rejectReasonHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws