Package com.oracle.bmc.aispeech.requests
Class SynthesizeSpeechRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.aispeech.requests.SynthesizeSpeechRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<SynthesizeSpeechRequest,SynthesizeSpeechDetails>
- Enclosing class:
- SynthesizeSpeechRequest
public static class SynthesizeSpeechRequest.Builder extends Object implements BmcRequest.Builder<SynthesizeSpeechRequest,SynthesizeSpeechDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SynthesizeSpeechRequest.Builder
body$(SynthesizeSpeechDetails body)
Alternative setter for the body parameter.SynthesizeSpeechRequest
build()
Build the instance of SynthesizeSpeechRequest as configured by this builderSynthesizeSpeechRequest
buildWithoutInvocationCallback()
Build the instance of SynthesizeSpeechRequest as configured by this builderSynthesizeSpeechRequest.Builder
copy(SynthesizeSpeechRequest o)
Copy method to populate the builder with values from the given instance.SynthesizeSpeechRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.SynthesizeSpeechRequest.Builder
opcRequestId(String opcRequestId)
The client request ID for tracing.SynthesizeSpeechRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.SynthesizeSpeechRequest.Builder
synthesizeSpeechDetails(SynthesizeSpeechDetails synthesizeSpeechDetails)
The request to be sent to the TTS service to get required inference audio.
-
-
-
Method Detail
-
synthesizeSpeechDetails
public SynthesizeSpeechRequest.Builder synthesizeSpeechDetails(SynthesizeSpeechDetails synthesizeSpeechDetails)
The request to be sent to the TTS service to get required inference audio.- Parameters:
synthesizeSpeechDetails
- the value to set- Returns:
- this builder instance
-
opcRequestId
public SynthesizeSpeechRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public SynthesizeSpeechRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback
- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public SynthesizeSpeechRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration
- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public SynthesizeSpeechRequest.Builder copy(SynthesizeSpeechRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<SynthesizeSpeechRequest,SynthesizeSpeechDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public SynthesizeSpeechRequest build()
Build the instance of SynthesizeSpeechRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuildWithoutInvocationCallback()
does not.This is the preferred method to build an instance.
- Specified by:
build
in interfaceBmcRequest.Builder<SynthesizeSpeechRequest,SynthesizeSpeechDetails>
- Returns:
- instance of SynthesizeSpeechRequest
-
body$
public SynthesizeSpeechRequest.Builder body$(SynthesizeSpeechDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<SynthesizeSpeechRequest,SynthesizeSpeechDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public SynthesizeSpeechRequest buildWithoutInvocationCallback()
Build the instance of SynthesizeSpeechRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuild()
does- Returns:
- instance of SynthesizeSpeechRequest
-
-