/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Summary of the messages in a Channel
.See Also:
* AWS
* API Reference
The ID of the message.
*/ inline const Aws::String& GetMessageId() const{ return m_messageId; } /** *The ID of the message.
*/ inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; } /** *The ID of the message.
*/ inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; } /** *The ID of the message.
*/ inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); } /** *The ID of the message.
*/ inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); } /** *The ID of the message.
*/ inline ChannelMessageSummary& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *The ID of the message.
*/ inline ChannelMessageSummary& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} /** *The ID of the message.
*/ inline ChannelMessageSummary& WithMessageId(const char* value) { SetMessageId(value); return *this;} /** *The content of the message.
*/ inline const Aws::String& GetContent() const{ return m_content; } /** *The content of the message.
*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *The content of the message.
*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *The content of the message.
*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *The content of the message.
*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *The content of the message.
*/ inline ChannelMessageSummary& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *The content of the message.
*/ inline ChannelMessageSummary& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *The content of the message.
*/ inline ChannelMessageSummary& WithContent(const char* value) { SetContent(value); return *this;} /** *The metadata of the message.
*/ inline const Aws::String& GetMetadata() const{ return m_metadata; } /** *The metadata of the message.
*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *The metadata of the message.
*/ inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *The metadata of the message.
*/ inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *The metadata of the message.
*/ inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); } /** *The metadata of the message.
*/ inline ChannelMessageSummary& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;} /** *The metadata of the message.
*/ inline ChannelMessageSummary& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;} /** *The metadata of the message.
*/ inline ChannelMessageSummary& WithMetadata(const char* value) { SetMetadata(value); return *this;} /** *The type of message.
*/ inline const ChannelMessageType& GetType() const{ return m_type; } /** *The type of message.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of message.
*/ inline void SetType(const ChannelMessageType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of message.
*/ inline void SetType(ChannelMessageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of message.
*/ inline ChannelMessageSummary& WithType(const ChannelMessageType& value) { SetType(value); return *this;} /** *The type of message.
*/ inline ChannelMessageSummary& WithType(ChannelMessageType&& value) { SetType(std::move(value)); return *this;} /** *The time at which the message summary was created.
*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *The time at which the message summary was created.
*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *The time at which the message summary was created.
*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *The time at which the message summary was created.
*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *The time at which the message summary was created.
*/ inline ChannelMessageSummary& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *The time at which the message summary was created.
*/ inline ChannelMessageSummary& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *The time at which a message was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } /** *The time at which a message was last updated.
*/ inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; } /** *The time at which a message was last updated.
*/ inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; } /** *The time at which a message was last updated.
*/ inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); } /** *The time at which a message was last updated.
*/ inline ChannelMessageSummary& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;} /** *The time at which a message was last updated.
*/ inline ChannelMessageSummary& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} /** *The time at which a message was last edited.
*/ inline const Aws::Utils::DateTime& GetLastEditedTimestamp() const{ return m_lastEditedTimestamp; } /** *The time at which a message was last edited.
*/ inline bool LastEditedTimestampHasBeenSet() const { return m_lastEditedTimestampHasBeenSet; } /** *The time at which a message was last edited.
*/ inline void SetLastEditedTimestamp(const Aws::Utils::DateTime& value) { m_lastEditedTimestampHasBeenSet = true; m_lastEditedTimestamp = value; } /** *The time at which a message was last edited.
*/ inline void SetLastEditedTimestamp(Aws::Utils::DateTime&& value) { m_lastEditedTimestampHasBeenSet = true; m_lastEditedTimestamp = std::move(value); } /** *The time at which a message was last edited.
*/ inline ChannelMessageSummary& WithLastEditedTimestamp(const Aws::Utils::DateTime& value) { SetLastEditedTimestamp(value); return *this;} /** *The time at which a message was last edited.
*/ inline ChannelMessageSummary& WithLastEditedTimestamp(Aws::Utils::DateTime&& value) { SetLastEditedTimestamp(std::move(value)); return *this;} /** *The message sender.
*/ inline const Identity& GetSender() const{ return m_sender; } /** *The message sender.
*/ inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; } /** *The message sender.
*/ inline void SetSender(const Identity& value) { m_senderHasBeenSet = true; m_sender = value; } /** *The message sender.
*/ inline void SetSender(Identity&& value) { m_senderHasBeenSet = true; m_sender = std::move(value); } /** *The message sender.
*/ inline ChannelMessageSummary& WithSender(const Identity& value) { SetSender(value); return *this;} /** *The message sender.
*/ inline ChannelMessageSummary& WithSender(Identity&& value) { SetSender(std::move(value)); return *this;} /** *Indicates whether a message was redacted.
*/ inline bool GetRedacted() const{ return m_redacted; } /** *Indicates whether a message was redacted.
*/ inline bool RedactedHasBeenSet() const { return m_redactedHasBeenSet; } /** *Indicates whether a message was redacted.
*/ inline void SetRedacted(bool value) { m_redactedHasBeenSet = true; m_redacted = value; } /** *Indicates whether a message was redacted.
*/ inline ChannelMessageSummary& WithRedacted(bool value) { SetRedacted(value); return *this;} private: Aws::String m_messageId; bool m_messageIdHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; Aws::String m_metadata; bool m_metadataHasBeenSet = false; ChannelMessageType m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTimestamp; bool m_lastUpdatedTimestampHasBeenSet = false; Aws::Utils::DateTime m_lastEditedTimestamp; bool m_lastEditedTimestampHasBeenSet = false; Identity m_sender; bool m_senderHasBeenSet = false; bool m_redacted; bool m_redactedHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws