public static class AddAudioOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
AddAudioOptions.Builder()
Instantiates a new builder.
|
AddAudioOptions.Builder(java.lang.String customizationId,
java.lang.String audioName)
Deprecated.
audioResource is now required, so this constructor will be removed in the next major release.
|
AddAudioOptions.Builder(java.lang.String customizationId,
java.lang.String audioName,
java.io.InputStream audioResource)
Instantiates a new builder with required properties.
|
AddAudioOptions.Builder(java.lang.String customizationId,
java.lang.String audioName,
java.io.InputStream audioResource,
java.lang.String contentType)
Deprecated.
contentType is no longer required, so this constructor will be removed in the next major release.
|
Modifier and Type | Method and Description |
---|---|
AddAudioOptions.Builder |
allowOverwrite(java.lang.Boolean allowOverwrite)
Set the allowOverwrite.
|
AddAudioOptions.Builder |
audioName(java.lang.String audioName)
Set the audioName.
|
AddAudioOptions.Builder |
audioResource(java.io.File audioResource)
Set the audioResource.
|
AddAudioOptions.Builder |
audioResource(java.io.InputStream audioResource)
Set the audioResource.
|
AddAudioOptions |
build()
Builds a AddAudioOptions.
|
AddAudioOptions.Builder |
containedContentType(java.lang.String containedContentType)
Set the containedContentType.
|
AddAudioOptions.Builder |
contentType(java.lang.String contentType)
Set the contentType.
|
AddAudioOptions.Builder |
customizationId(java.lang.String customizationId)
Set the customizationId.
|
public AddAudioOptions.Builder()
public AddAudioOptions.Builder(java.lang.String customizationId, java.lang.String audioName)
customizationId
- the customizationIdaudioName
- the audioNamepublic AddAudioOptions.Builder(java.lang.String customizationId, java.lang.String audioName, java.io.InputStream audioResource, java.lang.String contentType)
customizationId
- the customizationIdaudioName
- the audioNameaudioResource
- the audioResourcecontentType
- the contentTypepublic AddAudioOptions.Builder(java.lang.String customizationId, java.lang.String audioName, java.io.InputStream audioResource)
customizationId
- the customizationIdaudioName
- the audioNameaudioResource
- the audioResourcepublic AddAudioOptions build()
public AddAudioOptions.Builder customizationId(java.lang.String customizationId)
customizationId
- the customizationIdpublic AddAudioOptions.Builder audioName(java.lang.String audioName)
audioName
- the audioNamepublic AddAudioOptions.Builder audioResource(java.io.InputStream audioResource)
audioResource
- the audioResourcepublic AddAudioOptions.Builder contentType(java.lang.String contentType)
contentType
- the contentTypepublic AddAudioOptions.Builder containedContentType(java.lang.String containedContentType)
containedContentType
- the containedContentTypepublic AddAudioOptions.Builder allowOverwrite(java.lang.Boolean allowOverwrite)
allowOverwrite
- the allowOverwritepublic AddAudioOptions.Builder audioResource(java.io.File audioResource) throws java.io.FileNotFoundException
audioResource
- the audioResourcejava.io.FileNotFoundException
- if the file could not be found