Interface AudioBlock.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AudioBlock.Builder,AudioBlock>,SdkBuilder<AudioBlock.Builder,AudioBlock>,SdkPojo
- Enclosing class:
- AudioBlock
@Mutable @NotThreadSafe public static interface AudioBlock.Builder extends SdkPojo, CopyableBuilder<AudioBlock.Builder,AudioBlock>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AudioBlock.Buildererror(Consumer<ErrorBlock.Builder> error)Error information if the audio block could not be processed or contains invalid data.AudioBlock.Buildererror(ErrorBlock error)Error information if the audio block could not be processed or contains invalid data.AudioBlock.Builderformat(String format)The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.AudioBlock.Builderformat(AudioFormat format)The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.default AudioBlock.Buildersource(Consumer<AudioSource.Builder> source)The source of the audio data, which can be provided as raw bytes or an S3 location.AudioBlock.Buildersource(AudioSource source)The source of the audio data, which can be provided as raw bytes or an S3 location.-
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
AudioBlock.Builder format(String format)
The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.
- Parameters:
format- The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AudioFormat,AudioFormat
-
format
AudioBlock.Builder format(AudioFormat format)
The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.
- Parameters:
format- The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AudioFormat,AudioFormat
-
source
AudioBlock.Builder source(AudioSource source)
The source of the audio data, which can be provided as raw bytes or an S3 location.
- Parameters:
source- The source of the audio data, which can be provided as raw bytes or an S3 location.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default AudioBlock.Builder source(Consumer<AudioSource.Builder> source)
The source of the audio data, which can be provided as raw bytes or an S3 location.
This is a convenience method that creates an instance of theAudioSource.Builderavoiding the need to create one manually viaAudioSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(AudioSource).- Parameters:
source- a consumer that will call methods onAudioSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
source(AudioSource)
-
error
AudioBlock.Builder error(ErrorBlock error)
Error information if the audio block could not be processed or contains invalid data.
- Parameters:
error- Error information if the audio 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 AudioBlock.Builder error(Consumer<ErrorBlock.Builder> error)
Error information if the audio 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)
-
-