Class AddAudioOptions.Builder
java.lang.Object
com.ibm.watson.speech_to_text.v1.model.AddAudioOptions.Builder
- Enclosing class:
- AddAudioOptions
public static class AddAudioOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String customizationId, String audioName, InputStream audioResource)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
customizationId
- the customizationIdaudioName
- the audioNameaudioResource
- the audioResource
-
-
Method Details
-
build
Builds a AddAudioOptions.- Returns:
- the new AddAudioOptions instance
-
customizationId
Set the customizationId.- Parameters:
customizationId
- the customizationId- Returns:
- the AddAudioOptions builder
-
audioName
Set the audioName.- Parameters:
audioName
- the audioName- Returns:
- the AddAudioOptions builder
-
audioResource
Set the audioResource.- Parameters:
audioResource
- the audioResource- Returns:
- the AddAudioOptions builder
-
contentType
Set the contentType.- Parameters:
contentType
- the contentType- Returns:
- the AddAudioOptions builder
-
containedContentType
Set the containedContentType.- Parameters:
containedContentType
- the containedContentType- Returns:
- the AddAudioOptions builder
-
allowOverwrite
Set the allowOverwrite.- Parameters:
allowOverwrite
- the allowOverwrite- Returns:
- the AddAudioOptions builder
-
audioResource
Set the audioResource.- Parameters:
audioResource
- the audioResource- Returns:
- the AddAudioOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-