Interface PromotionalMedia.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PromotionalMedia.Builder,,PromotionalMedia> SdkBuilder<PromotionalMedia.Builder,,PromotionalMedia> SdkPojo
- Enclosing class:
PromotionalMedia
@Mutable
@NotThreadSafe
public static interface PromotionalMedia.Builder
extends SdkPojo, CopyableBuilder<PromotionalMedia.Builder,PromotionalMedia>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PromotionalMedia.BuilderembeddedImage(Consumer<PromotionalEmbeddedImage.Builder> embeddedImage) Sets the value of the EmbeddedImage property for this object.embeddedImage(PromotionalEmbeddedImage embeddedImage) Sets the value of the EmbeddedImage property for this object.default PromotionalMedia.BuilderembeddedVideo(Consumer<PromotionalEmbeddedVideo.Builder> embeddedVideo) Sets the value of the EmbeddedVideo property for this object.embeddedVideo(PromotionalEmbeddedVideo embeddedVideo) Sets the value of the EmbeddedVideo property for this object.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
-
embeddedImage
Sets the value of the EmbeddedImage property for this object.- Parameters:
embeddedImage- The new value for the EmbeddedImage property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
embeddedImage
default PromotionalMedia.Builder embeddedImage(Consumer<PromotionalEmbeddedImage.Builder> embeddedImage) Sets the value of the EmbeddedImage property for this object. This is a convenience method that creates an instance of thePromotionalEmbeddedImage.Builderavoiding the need to create one manually viaPromotionalEmbeddedImage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toembeddedImage(PromotionalEmbeddedImage).- Parameters:
embeddedImage- a consumer that will call methods onPromotionalEmbeddedImage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
embeddedVideo
Sets the value of the EmbeddedVideo property for this object.- Parameters:
embeddedVideo- The new value for the EmbeddedVideo property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
embeddedVideo
default PromotionalMedia.Builder embeddedVideo(Consumer<PromotionalEmbeddedVideo.Builder> embeddedVideo) Sets the value of the EmbeddedVideo property for this object. This is a convenience method that creates an instance of thePromotionalEmbeddedVideo.Builderavoiding the need to create one manually viaPromotionalEmbeddedVideo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toembeddedVideo(PromotionalEmbeddedVideo).- Parameters:
embeddedVideo- a consumer that will call methods onPromotionalEmbeddedVideo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-