RcsContent

sealed class RcsContent

The message body of an RCS message. Exactly one content type must be specified.

Inheritors

Types

Link copied to clipboard
data class Carousel(val value: RcsCarousel) : RcsContent

A carousel of 2 to 10 scrollable cards, each with media, title, description, and suggested actions.

Link copied to clipboard
data class FileMessage(val value: RcsFileMessage) : RcsContent

A file message containing a media file (image, video, audio, or PDF) with an optional thumbnail.

Link copied to clipboard
data class RichCard(val value: RcsStandaloneCard) : RcsContent

A standalone rich card with media, title, description, and suggested actions.

Link copied to clipboard
Link copied to clipboard
data class TextMessage(val value: RcsTextMessage) : RcsContent

A plain text RCS message.

Functions

Link copied to clipboard

Casts this RcsContent as a Carousel and retrieves its aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RcsCarousel value. Throws an exception if the RcsContent is not a Carousel.

Link copied to clipboard

Casts this RcsContent as a Carousel and retrieves its aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RcsCarousel value. Returns null if the RcsContent is not a Carousel.

Link copied to clipboard

Casts this RcsContent as a FileMessage and retrieves its aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RcsFileMessage value. Throws an exception if the RcsContent is not a FileMessage.

Link copied to clipboard
Link copied to clipboard

Casts this RcsContent as a RichCard and retrieves its aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RcsStandaloneCard value. Throws an exception if the RcsContent is not a RichCard.

Link copied to clipboard
Link copied to clipboard

Casts this RcsContent as a TextMessage and retrieves its aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RcsTextMessage value. Throws an exception if the RcsContent is not a TextMessage.

Link copied to clipboard