Interface RcsStandaloneCard.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RcsStandaloneCard.Builder,,RcsStandaloneCard> SdkBuilder<RcsStandaloneCard.Builder,,RcsStandaloneCard> SdkPojo
- Enclosing class:
RcsStandaloneCard
@Mutable
@NotThreadSafe
public static interface RcsStandaloneCard.Builder
extends SdkPojo, CopyableBuilder<RcsStandaloneCard.Builder,RcsStandaloneCard>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RcsStandaloneCard.BuildercardContent(Consumer<RcsCardContent.Builder> cardContent) The content of the rich card, including title, description, media, and card-level suggested actions.cardContent(RcsCardContent cardContent) The content of the rich card, including title, description, media, and card-level suggested actions.cardOrientation(String cardOrientation) The orientation of the rich card.thumbnailImageAlignment(String thumbnailImageAlignment) The alignment of the thumbnail image in a horizontal card.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
-
cardOrientation
The orientation of the rich card. Valid values are HORIZONTAL and VERTICAL.
- Parameters:
cardOrientation- The orientation of the rich card. Valid values are HORIZONTAL and VERTICAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thumbnailImageAlignment
The alignment of the thumbnail image in a horizontal card. Valid values are LEFT and RIGHT. Only applicable when CardOrientation is HORIZONTAL.
- Parameters:
thumbnailImageAlignment- The alignment of the thumbnail image in a horizontal card. Valid values are LEFT and RIGHT. Only applicable when CardOrientation is HORIZONTAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cardContent
The content of the rich card, including title, description, media, and card-level suggested actions.
- Parameters:
cardContent- The content of the rich card, including title, description, media, and card-level suggested actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cardContent
The content of the rich card, including title, description, media, and card-level suggested actions.
This is a convenience method that creates an instance of theRcsCardContent.Builderavoiding the need to create one manually viaRcsCardContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocardContent(RcsCardContent).- Parameters:
cardContent- a consumer that will call methods onRcsCardContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-