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

Summary of the messages in a Channel.

See Also:

* AWS * API Reference

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

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 channel message. For Amazon Lex V2 bot responses, this * field holds a list of messages originating from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The content of the channel message. For Amazon Lex V2 bot responses, this * field holds a list of messages originating from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The content of the channel message. For Amazon Lex V2 bot responses, this * field holds a list of messages originating from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The content of the channel message. For Amazon Lex V2 bot responses, this * field holds a list of messages originating from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The content of the channel message. For Amazon Lex V2 bot responses, this * field holds a list of messages originating from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The content of the channel message. For Amazon Lex V2 bot responses, this * field holds a list of messages originating from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The content of the channel message. For Amazon Lex V2 bot responses, this * field holds a list of messages originating from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The content of the channel message. For Amazon Lex V2 bot responses, this * field holds a list of messages originating from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ 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;} /** *

The message status. The status value is SENT for messages sent * to a channel without a channel flow. For channels associated with channel flow, * the value determines the processing stage.

*/ inline const ChannelMessageStatusStructure& GetStatus() const{ return m_status; } /** *

The message status. The status value is SENT for messages sent * to a channel without a channel flow. For channels associated with channel flow, * the value determines the processing stage.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The message status. The status value is SENT for messages sent * to a channel without a channel flow. For channels associated with channel flow, * the value determines the processing stage.

*/ inline void SetStatus(const ChannelMessageStatusStructure& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The message status. The status value is SENT for messages sent * to a channel without a channel flow. For channels associated with channel flow, * the value determines the processing stage.

*/ inline void SetStatus(ChannelMessageStatusStructure&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The message status. The status value is SENT for messages sent * to a channel without a channel flow. For channels associated with channel flow, * the value determines the processing stage.

*/ inline ChannelMessageSummary& WithStatus(const ChannelMessageStatusStructure& value) { SetStatus(value); return *this;} /** *

The message status. The status value is SENT for messages sent * to a channel without a channel flow. For channels associated with channel flow, * the value determines the processing stage.

*/ inline ChannelMessageSummary& WithStatus(ChannelMessageStatusStructure&& value) { SetStatus(std::move(value)); return *this;} /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline const Aws::Map& GetMessageAttributes() const{ return m_messageAttributes; } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline void SetMessageAttributes(const Aws::Map& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline void SetMessageAttributes(Aws::Map&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::move(value); } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& WithMessageAttributes(const Aws::Map& value) { SetMessageAttributes(value); return *this;} /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& WithMessageAttributes(Aws::Map&& value) { SetMessageAttributes(std::move(value)); return *this;} /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& AddMessageAttributes(const Aws::String& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& AddMessageAttributes(Aws::String&& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), value); return *this; } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& AddMessageAttributes(const Aws::String& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& AddMessageAttributes(Aws::String&& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), std::move(value)); return *this; } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& AddMessageAttributes(const char* key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; } /** *

The attributes for the channel message. For Amazon Lex V2 bot responses, the * attributes are mapped to specific fields from the bot. For more information, * refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& AddMessageAttributes(const char* key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; } /** *

The content type of the channel message listed in the summary. For Amazon Lex * V2 bot responses, the content type is * application/amz-chime-lex-msgs for success responses and * application/amz-chime-lex-error for failure responses. For more * information, refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The content type of the channel message listed in the summary. For Amazon Lex * V2 bot responses, the content type is * application/amz-chime-lex-msgs for success responses and * application/amz-chime-lex-error for failure responses. For more * information, refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The content type of the channel message listed in the summary. For Amazon Lex * V2 bot responses, the content type is * application/amz-chime-lex-msgs for success responses and * application/amz-chime-lex-error for failure responses. For more * information, refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The content type of the channel message listed in the summary. For Amazon Lex * V2 bot responses, the content type is * application/amz-chime-lex-msgs for success responses and * application/amz-chime-lex-error for failure responses. For more * information, refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The content type of the channel message listed in the summary. For Amazon Lex * V2 bot responses, the content type is * application/amz-chime-lex-msgs for success responses and * application/amz-chime-lex-error for failure responses. For more * information, refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The content type of the channel message listed in the summary. For Amazon Lex * V2 bot responses, the content type is * application/amz-chime-lex-msgs for success responses and * application/amz-chime-lex-error for failure responses. For more * information, refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The content type of the channel message listed in the summary. For Amazon Lex * V2 bot responses, the content type is * application/amz-chime-lex-msgs for success responses and * application/amz-chime-lex-error for failure responses. For more * information, refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The content type of the channel message listed in the summary. For Amazon Lex * V2 bot responses, the content type is * application/amz-chime-lex-msgs for success responses and * application/amz-chime-lex-error for failure responses. For more * information, refer to Processing * responses from an AppInstanceBot in the Amazon Chime SDK Messaging * Developer Guide.

*/ inline ChannelMessageSummary& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The target of a message, a sender, a user, or a bot. Only the target and the * sender can view targeted messages. Only users who can see targeted messages can * take actions on them. However, administrators can delete targeted messages that * they can’t see.

*/ inline const Aws::Vector& GetTarget() const{ return m_target; } /** *

The target of a message, a sender, a user, or a bot. Only the target and the * sender can view targeted messages. Only users who can see targeted messages can * take actions on them. However, administrators can delete targeted messages that * they can’t see.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

The target of a message, a sender, a user, or a bot. Only the target and the * sender can view targeted messages. Only users who can see targeted messages can * take actions on them. However, administrators can delete targeted messages that * they can’t see.

*/ inline void SetTarget(const Aws::Vector& value) { m_targetHasBeenSet = true; m_target = value; } /** *

The target of a message, a sender, a user, or a bot. Only the target and the * sender can view targeted messages. Only users who can see targeted messages can * take actions on them. However, administrators can delete targeted messages that * they can’t see.

*/ inline void SetTarget(Aws::Vector&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

The target of a message, a sender, a user, or a bot. Only the target and the * sender can view targeted messages. Only users who can see targeted messages can * take actions on them. However, administrators can delete targeted messages that * they can’t see.

*/ inline ChannelMessageSummary& WithTarget(const Aws::Vector& value) { SetTarget(value); return *this;} /** *

The target of a message, a sender, a user, or a bot. Only the target and the * sender can view targeted messages. Only users who can see targeted messages can * take actions on them. However, administrators can delete targeted messages that * they can’t see.

*/ inline ChannelMessageSummary& WithTarget(Aws::Vector&& value) { SetTarget(std::move(value)); return *this;} /** *

The target of a message, a sender, a user, or a bot. Only the target and the * sender can view targeted messages. Only users who can see targeted messages can * take actions on them. However, administrators can delete targeted messages that * they can’t see.

*/ inline ChannelMessageSummary& AddTarget(const Target& value) { m_targetHasBeenSet = true; m_target.push_back(value); return *this; } /** *

The target of a message, a sender, a user, or a bot. Only the target and the * sender can view targeted messages. Only users who can see targeted messages can * take actions on them. However, administrators can delete targeted messages that * they can’t see.

*/ inline ChannelMessageSummary& AddTarget(Target&& value) { m_targetHasBeenSet = true; m_target.push_back(std::move(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; ChannelMessageStatusStructure m_status; bool m_statusHasBeenSet = false; Aws::Map m_messageAttributes; bool m_messageAttributesHasBeenSet = false; Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; Aws::Vector m_target; bool m_targetHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws