/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConnectParticipant { namespace Model { /** *

The receipt for the message delivered to the recipient.

See * Also:

AWS * API Reference

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

The time when the message was delivered to the recipient.

*/ inline const Aws::String& GetDeliveredTimestamp() const{ return m_deliveredTimestamp; } /** *

The time when the message was delivered to the recipient.

*/ inline bool DeliveredTimestampHasBeenSet() const { return m_deliveredTimestampHasBeenSet; } /** *

The time when the message was delivered to the recipient.

*/ inline void SetDeliveredTimestamp(const Aws::String& value) { m_deliveredTimestampHasBeenSet = true; m_deliveredTimestamp = value; } /** *

The time when the message was delivered to the recipient.

*/ inline void SetDeliveredTimestamp(Aws::String&& value) { m_deliveredTimestampHasBeenSet = true; m_deliveredTimestamp = std::move(value); } /** *

The time when the message was delivered to the recipient.

*/ inline void SetDeliveredTimestamp(const char* value) { m_deliveredTimestampHasBeenSet = true; m_deliveredTimestamp.assign(value); } /** *

The time when the message was delivered to the recipient.

*/ inline Receipt& WithDeliveredTimestamp(const Aws::String& value) { SetDeliveredTimestamp(value); return *this;} /** *

The time when the message was delivered to the recipient.

*/ inline Receipt& WithDeliveredTimestamp(Aws::String&& value) { SetDeliveredTimestamp(std::move(value)); return *this;} /** *

The time when the message was delivered to the recipient.

*/ inline Receipt& WithDeliveredTimestamp(const char* value) { SetDeliveredTimestamp(value); return *this;} /** *

The time when the message was read by the recipient.

*/ inline const Aws::String& GetReadTimestamp() const{ return m_readTimestamp; } /** *

The time when the message was read by the recipient.

*/ inline bool ReadTimestampHasBeenSet() const { return m_readTimestampHasBeenSet; } /** *

The time when the message was read by the recipient.

*/ inline void SetReadTimestamp(const Aws::String& value) { m_readTimestampHasBeenSet = true; m_readTimestamp = value; } /** *

The time when the message was read by the recipient.

*/ inline void SetReadTimestamp(Aws::String&& value) { m_readTimestampHasBeenSet = true; m_readTimestamp = std::move(value); } /** *

The time when the message was read by the recipient.

*/ inline void SetReadTimestamp(const char* value) { m_readTimestampHasBeenSet = true; m_readTimestamp.assign(value); } /** *

The time when the message was read by the recipient.

*/ inline Receipt& WithReadTimestamp(const Aws::String& value) { SetReadTimestamp(value); return *this;} /** *

The time when the message was read by the recipient.

*/ inline Receipt& WithReadTimestamp(Aws::String&& value) { SetReadTimestamp(std::move(value)); return *this;} /** *

The time when the message was read by the recipient.

*/ inline Receipt& WithReadTimestamp(const char* value) { SetReadTimestamp(value); return *this;} /** *

The identifier of the recipient of the message.

*/ inline const Aws::String& GetRecipientParticipantId() const{ return m_recipientParticipantId; } /** *

The identifier of the recipient of the message.

*/ inline bool RecipientParticipantIdHasBeenSet() const { return m_recipientParticipantIdHasBeenSet; } /** *

The identifier of the recipient of the message.

*/ inline void SetRecipientParticipantId(const Aws::String& value) { m_recipientParticipantIdHasBeenSet = true; m_recipientParticipantId = value; } /** *

The identifier of the recipient of the message.

*/ inline void SetRecipientParticipantId(Aws::String&& value) { m_recipientParticipantIdHasBeenSet = true; m_recipientParticipantId = std::move(value); } /** *

The identifier of the recipient of the message.

*/ inline void SetRecipientParticipantId(const char* value) { m_recipientParticipantIdHasBeenSet = true; m_recipientParticipantId.assign(value); } /** *

The identifier of the recipient of the message.

*/ inline Receipt& WithRecipientParticipantId(const Aws::String& value) { SetRecipientParticipantId(value); return *this;} /** *

The identifier of the recipient of the message.

*/ inline Receipt& WithRecipientParticipantId(Aws::String&& value) { SetRecipientParticipantId(std::move(value)); return *this;} /** *

The identifier of the recipient of the message.

*/ inline Receipt& WithRecipientParticipantId(const char* value) { SetRecipientParticipantId(value); return *this;} private: Aws::String m_deliveredTimestamp; bool m_deliveredTimestampHasBeenSet = false; Aws::String m_readTimestamp; bool m_readTimestampHasBeenSet = false; Aws::String m_recipientParticipantId; bool m_recipientParticipantIdHasBeenSet = false; }; } // namespace Model } // namespace ConnectParticipant } // namespace Aws