Interface RcsCarousel.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RcsCarousel.Builder,,RcsCarousel> SdkBuilder<RcsCarousel.Builder,,RcsCarousel> SdkPojo
- Enclosing class:
RcsCarousel
@Mutable
@NotThreadSafe
public static interface RcsCarousel.Builder
extends SdkPojo, CopyableBuilder<RcsCarousel.Builder,RcsCarousel>
-
Method Summary
Modifier and TypeMethodDescriptioncardContents(Collection<RcsCarouselCardContent> cardContents) The list of cards in the carousel.cardContents(Consumer<RcsCarouselCardContent.Builder>... cardContents) The list of cards in the carousel.cardContents(RcsCarouselCardContent... cardContents) The list of cards in the carousel.The width of cards in the carousel.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
-
cardWidth
The width of cards in the carousel. Valid values are SMALL and MEDIUM.
- Parameters:
cardWidth- The width of cards in the carousel. Valid values are SMALL and MEDIUM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cardContents
The list of cards in the carousel. Minimum 2, maximum 10 cards.
- Parameters:
cardContents- The list of cards in the carousel. Minimum 2, maximum 10 cards.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cardContents
The list of cards in the carousel. Minimum 2, maximum 10 cards.
- Parameters:
cardContents- The list of cards in the carousel. Minimum 2, maximum 10 cards.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cardContents
The list of cards in the carousel. Minimum 2, maximum 10 cards.
This is a convenience method that creates an instance of theRcsCarouselCardContent.Builderavoiding the need to create one manually viaRcsCarouselCardContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocardContents(List<RcsCarouselCardContent>).- Parameters:
cardContents- a consumer that will call methods onRcsCarouselCardContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-