/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

Data used to transfer a certificate to an Amazon Web Services * account.

See Also:

AWS * API Reference

*/ class TransferData { public: AWS_IOT_API TransferData(); AWS_IOT_API TransferData(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API TransferData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The transfer message.

*/ inline const Aws::String& GetTransferMessage() const{ return m_transferMessage; } /** *

The transfer message.

*/ inline bool TransferMessageHasBeenSet() const { return m_transferMessageHasBeenSet; } /** *

The transfer message.

*/ inline void SetTransferMessage(const Aws::String& value) { m_transferMessageHasBeenSet = true; m_transferMessage = value; } /** *

The transfer message.

*/ inline void SetTransferMessage(Aws::String&& value) { m_transferMessageHasBeenSet = true; m_transferMessage = std::move(value); } /** *

The transfer message.

*/ inline void SetTransferMessage(const char* value) { m_transferMessageHasBeenSet = true; m_transferMessage.assign(value); } /** *

The transfer message.

*/ inline TransferData& WithTransferMessage(const Aws::String& value) { SetTransferMessage(value); return *this;} /** *

The transfer message.

*/ inline TransferData& WithTransferMessage(Aws::String&& value) { SetTransferMessage(std::move(value)); return *this;} /** *

The transfer message.

*/ inline TransferData& WithTransferMessage(const char* value) { SetTransferMessage(value); return *this;} /** *

The reason why the transfer was rejected.

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

The reason why the transfer was rejected.

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

The reason why the transfer was rejected.

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

The reason why the transfer was rejected.

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

The reason why the transfer was rejected.

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

The reason why the transfer was rejected.

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

The reason why the transfer was rejected.

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

The reason why the transfer was rejected.

*/ inline TransferData& WithRejectReason(const char* value) { SetRejectReason(value); return *this;} /** *

The date the transfer took place.

*/ inline const Aws::Utils::DateTime& GetTransferDate() const{ return m_transferDate; } /** *

The date the transfer took place.

*/ inline bool TransferDateHasBeenSet() const { return m_transferDateHasBeenSet; } /** *

The date the transfer took place.

*/ inline void SetTransferDate(const Aws::Utils::DateTime& value) { m_transferDateHasBeenSet = true; m_transferDate = value; } /** *

The date the transfer took place.

*/ inline void SetTransferDate(Aws::Utils::DateTime&& value) { m_transferDateHasBeenSet = true; m_transferDate = std::move(value); } /** *

The date the transfer took place.

*/ inline TransferData& WithTransferDate(const Aws::Utils::DateTime& value) { SetTransferDate(value); return *this;} /** *

The date the transfer took place.

*/ inline TransferData& WithTransferDate(Aws::Utils::DateTime&& value) { SetTransferDate(std::move(value)); return *this;} /** *

The date the transfer was accepted.

*/ inline const Aws::Utils::DateTime& GetAcceptDate() const{ return m_acceptDate; } /** *

The date the transfer was accepted.

*/ inline bool AcceptDateHasBeenSet() const { return m_acceptDateHasBeenSet; } /** *

The date the transfer was accepted.

*/ inline void SetAcceptDate(const Aws::Utils::DateTime& value) { m_acceptDateHasBeenSet = true; m_acceptDate = value; } /** *

The date the transfer was accepted.

*/ inline void SetAcceptDate(Aws::Utils::DateTime&& value) { m_acceptDateHasBeenSet = true; m_acceptDate = std::move(value); } /** *

The date the transfer was accepted.

*/ inline TransferData& WithAcceptDate(const Aws::Utils::DateTime& value) { SetAcceptDate(value); return *this;} /** *

The date the transfer was accepted.

*/ inline TransferData& WithAcceptDate(Aws::Utils::DateTime&& value) { SetAcceptDate(std::move(value)); return *this;} /** *

The date the transfer was rejected.

*/ inline const Aws::Utils::DateTime& GetRejectDate() const{ return m_rejectDate; } /** *

The date the transfer was rejected.

*/ inline bool RejectDateHasBeenSet() const { return m_rejectDateHasBeenSet; } /** *

The date the transfer was rejected.

*/ inline void SetRejectDate(const Aws::Utils::DateTime& value) { m_rejectDateHasBeenSet = true; m_rejectDate = value; } /** *

The date the transfer was rejected.

*/ inline void SetRejectDate(Aws::Utils::DateTime&& value) { m_rejectDateHasBeenSet = true; m_rejectDate = std::move(value); } /** *

The date the transfer was rejected.

*/ inline TransferData& WithRejectDate(const Aws::Utils::DateTime& value) { SetRejectDate(value); return *this;} /** *

The date the transfer was rejected.

*/ inline TransferData& WithRejectDate(Aws::Utils::DateTime&& value) { SetRejectDate(std::move(value)); return *this;} private: Aws::String m_transferMessage; bool m_transferMessageHasBeenSet = false; Aws::String m_rejectReason; bool m_rejectReasonHasBeenSet = false; Aws::Utils::DateTime m_transferDate; bool m_transferDateHasBeenSet = false; Aws::Utils::DateTime m_acceptDate; bool m_acceptDateHasBeenSet = false; Aws::Utils::DateTime m_rejectDate; bool m_rejectDateHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws