public static class AddAudioOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String customizationId,
String audioName,
InputStream audioResource)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddAudioOptions.Builder |
allowOverwrite(Boolean allowOverwrite)
Set the allowOverwrite.
|
AddAudioOptions.Builder |
audioName(String audioName)
Set the audioName.
|
AddAudioOptions.Builder |
audioResource(File audioResource)
Set the audioResource.
|
AddAudioOptions.Builder |
audioResource(InputStream audioResource)
Set the audioResource.
|
AddAudioOptions |
build()
Builds a AddAudioOptions.
|
AddAudioOptions.Builder |
containedContentType(String containedContentType)
Set the containedContentType.
|
AddAudioOptions.Builder |
contentType(String contentType)
Set the contentType.
|
AddAudioOptions.Builder |
customizationId(String customizationId)
Set the customizationId.
|
public Builder()
public Builder(String customizationId, String audioName, InputStream audioResource)
customizationId
- the customizationIdaudioName
- the audioNameaudioResource
- the audioResourcepublic AddAudioOptions build()
public AddAudioOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic AddAudioOptions.Builder audioName(String audioName)
audioName
- the audioNamepublic AddAudioOptions.Builder audioResource(InputStream audioResource)
audioResource
- the audioResourcepublic AddAudioOptions.Builder contentType(String contentType)
contentType
- the contentTypepublic AddAudioOptions.Builder containedContentType(String containedContentType)
containedContentType
- the containedContentTypepublic AddAudioOptions.Builder allowOverwrite(Boolean allowOverwrite)
allowOverwrite
- the allowOverwritepublic AddAudioOptions.Builder audioResource(File audioResource) throws FileNotFoundException
audioResource
- the audioResourceFileNotFoundException
- if the file could not be foundCopyright © 2024 IBM Cloud. All rights reserved.