/** * 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 { /** *

A certificate that has been transferred but not yet accepted.

See * Also:

AWS * API Reference

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

The certificate ARN.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

The certificate ARN.

*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *

The certificate ARN.

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *

The certificate ARN.

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *

The certificate ARN.

*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *

The certificate ARN.

*/ inline OutgoingCertificate& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

The certificate ARN.

*/ inline OutgoingCertificate& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

The certificate ARN.

*/ inline OutgoingCertificate& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

The certificate ID.

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

The certificate ID.

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

The certificate ID.

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

The certificate ID.

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

The certificate ID.

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

The certificate ID.

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

The certificate ID.

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

The certificate ID.

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

The Amazon Web Services account to which the transfer was made.

*/ inline const Aws::String& GetTransferredTo() const{ return m_transferredTo; } /** *

The Amazon Web Services account to which the transfer was made.

*/ inline bool TransferredToHasBeenSet() const { return m_transferredToHasBeenSet; } /** *

The Amazon Web Services account to which the transfer was made.

*/ inline void SetTransferredTo(const Aws::String& value) { m_transferredToHasBeenSet = true; m_transferredTo = value; } /** *

The Amazon Web Services account to which the transfer was made.

*/ inline void SetTransferredTo(Aws::String&& value) { m_transferredToHasBeenSet = true; m_transferredTo = std::move(value); } /** *

The Amazon Web Services account to which the transfer was made.

*/ inline void SetTransferredTo(const char* value) { m_transferredToHasBeenSet = true; m_transferredTo.assign(value); } /** *

The Amazon Web Services account to which the transfer was made.

*/ inline OutgoingCertificate& WithTransferredTo(const Aws::String& value) { SetTransferredTo(value); return *this;} /** *

The Amazon Web Services account to which the transfer was made.

*/ inline OutgoingCertificate& WithTransferredTo(Aws::String&& value) { SetTransferredTo(std::move(value)); return *this;} /** *

The Amazon Web Services account to which the transfer was made.

*/ inline OutgoingCertificate& WithTransferredTo(const char* value) { SetTransferredTo(value); return *this;} /** *

The date the transfer was initiated.

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

The date the transfer was initiated.

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

The date the transfer was initiated.

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

The date the transfer was initiated.

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

The date the transfer was initiated.

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

The date the transfer was initiated.

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

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 OutgoingCertificate& WithTransferMessage(const Aws::String& value) { SetTransferMessage(value); return *this;} /** *

The transfer message.

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

The transfer message.

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

The certificate creation date.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The certificate creation date.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The certificate creation date.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The certificate creation date.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

The certificate creation date.

*/ inline OutgoingCertificate& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The certificate creation date.

*/ inline OutgoingCertificate& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} private: Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; Aws::String m_certificateId; bool m_certificateIdHasBeenSet = false; Aws::String m_transferredTo; bool m_transferredToHasBeenSet = false; Aws::Utils::DateTime m_transferDate; bool m_transferDateHasBeenSet = false; Aws::String m_transferMessage; bool m_transferMessageHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws