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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ImageBlock.Buildererror(Consumer<ErrorBlock.Builder> error)Error information if the image block could not be processed or contains invalid data.ImageBlock.Buildererror(ErrorBlock error)Error information if the image block could not be processed or contains invalid data.ImageBlock.Builderformat(String format)The format of the image.ImageBlock.Builderformat(ImageFormat format)The format of the image.default ImageBlock.Buildersource(Consumer<ImageSource.Builder> source)The source for the image.ImageBlock.Buildersource(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 Detail
-
format
ImageBlock.Builder format(String 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:
ImageFormat,ImageFormat
-
format
ImageBlock.Builder format(ImageFormat 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:
ImageFormat,ImageFormat
-
source
ImageBlock.Builder source(ImageSource 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
default ImageBlock.Builder source(Consumer<ImageSource.Builder> source)
The source for the image.
This is a convenience method that creates an instance of theImageSource.Builderavoiding the need to create one manually viaImageSource.builder().When the
Consumercompletes,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:
source(ImageSource)
-
error
ImageBlock.Builder error(ErrorBlock error)
Error information if the image block could not be processed or contains invalid data.
- Parameters:
error- Error information if the image block could not be processed or contains invalid data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
default ImageBlock.Builder error(Consumer<ErrorBlock.Builder> error)
Error information if the image block could not be processed or contains invalid data.
This is a convenience method that creates an instance of theErrorBlock.Builderavoiding the need to create one manually viaErrorBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ErrorBlock).- Parameters:
error- a consumer that will call methods onErrorBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
error(ErrorBlock)
-
-