Interface ImageBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageBlock.Builder,
,ImageBlock> SdkBuilder<ImageBlock.Builder,
,ImageBlock> SdkPojo
- Enclosing class:
ImageBlock
@Mutable
@NotThreadSafe
public static interface ImageBlock.Builder
extends SdkPojo, CopyableBuilder<ImageBlock.Builder,ImageBlock>
-
Method Summary
Modifier and TypeMethodDescriptionThe format of the image.format
(ImageFormat format) The format of the image.default ImageBlock.Builder
source
(Consumer<ImageSource.Builder> source) The source for the image.source
(ImageSource source) The source for the image.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
format
The format of the image.
- Parameters:
format
- The format of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
format
The format of the image.
- Parameters:
format
- The format of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The source for the image.
- Parameters:
source
- The source for the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source for the image.
This is a convenience method that creates an instance of theImageSource.Builder
avoiding the need to create one manually viaImageSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosource(ImageSource)
.- Parameters:
source
- a consumer that will call methods onImageSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-