Interface RcsContent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RcsContent.Builder,,RcsContent> SdkBuilder<RcsContent.Builder,,RcsContent> SdkPojo
- Enclosing class:
RcsContent
-
Method Summary
Modifier and TypeMethodDescriptiondefault RcsContent.Buildercarousel(Consumer<RcsCarousel.Builder> carousel) A carousel of 2 to 10 scrollable cards, each with media, title, description, and suggested actions.carousel(RcsCarousel carousel) A carousel of 2 to 10 scrollable cards, each with media, title, description, and suggested actions.default RcsContent.BuilderfileMessage(Consumer<RcsFileMessage.Builder> fileMessage) A file message containing a media file (image, video, audio, or PDF) with an optional thumbnail.fileMessage(RcsFileMessage fileMessage) A file message containing a media file (image, video, audio, or PDF) with an optional thumbnail.default RcsContent.BuilderrichCard(Consumer<RcsStandaloneCard.Builder> richCard) A standalone rich card with media, title, description, and suggested actions.richCard(RcsStandaloneCard richCard) A standalone rich card with media, title, description, and suggested actions.default RcsContent.BuildertextMessage(Consumer<RcsTextMessage.Builder> textMessage) A plain text RCS message.textMessage(RcsTextMessage textMessage) A plain text RCS message.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
textMessage
A plain text RCS message.
- Parameters:
textMessage- A plain text RCS message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textMessage
A plain text RCS message.
This is a convenience method that creates an instance of theRcsTextMessage.Builderavoiding the need to create one manually viaRcsTextMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totextMessage(RcsTextMessage).- Parameters:
textMessage- a consumer that will call methods onRcsTextMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fileMessage
A file message containing a media file (image, video, audio, or PDF) with an optional thumbnail.
- Parameters:
fileMessage- A file message containing a media file (image, video, audio, or PDF) with an optional thumbnail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileMessage
A file message containing a media file (image, video, audio, or PDF) with an optional thumbnail.
This is a convenience method that creates an instance of theRcsFileMessage.Builderavoiding the need to create one manually viaRcsFileMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofileMessage(RcsFileMessage).- Parameters:
fileMessage- a consumer that will call methods onRcsFileMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
richCard
A standalone rich card with media, title, description, and suggested actions.
- Parameters:
richCard- A standalone rich card with media, title, description, and suggested actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
richCard
A standalone rich card with media, title, description, and suggested actions.
This is a convenience method that creates an instance of theRcsStandaloneCard.Builderavoiding the need to create one manually viaRcsStandaloneCard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torichCard(RcsStandaloneCard).- Parameters:
richCard- a consumer that will call methods onRcsStandaloneCard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
carousel
A carousel of 2 to 10 scrollable cards, each with media, title, description, and suggested actions.
- Parameters:
carousel- A carousel of 2 to 10 scrollable cards, each with media, title, description, and suggested actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
carousel
A carousel of 2 to 10 scrollable cards, each with media, title, description, and suggested actions.
This is a convenience method that creates an instance of theRcsCarousel.Builderavoiding the need to create one manually viaRcsCarousel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocarousel(RcsCarousel).- Parameters:
carousel- a consumer that will call methods onRcsCarousel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-