Class BatchDetectLanguageSentimentsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.ailanguage.requests.BatchDetectLanguageSentimentsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<BatchDetectLanguageSentimentsRequest,BatchDetectLanguageSentimentsDetails>
- Enclosing class:
- BatchDetectLanguageSentimentsRequest
public static class BatchDetectLanguageSentimentsRequest.Builder extends Object implements BmcRequest.Builder<BatchDetectLanguageSentimentsRequest,BatchDetectLanguageSentimentsDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchDetectLanguageSentimentsRequest.BuilderbatchDetectLanguageSentimentsDetails(BatchDetectLanguageSentimentsDetails batchDetectLanguageSentimentsDetails)The details to make sentiment detect call.BatchDetectLanguageSentimentsRequest.Builderbody$(BatchDetectLanguageSentimentsDetails body)Alternative setter for the body parameter.BatchDetectLanguageSentimentsRequestbuild()Build the instance of BatchDetectLanguageSentimentsRequest as configured by this builderBatchDetectLanguageSentimentsRequestbuildWithoutInvocationCallback()Build the instance of BatchDetectLanguageSentimentsRequest as configured by this builderBatchDetectLanguageSentimentsRequest.Buildercopy(BatchDetectLanguageSentimentsRequest o)Copy method to populate the builder with values from the given instance.BatchDetectLanguageSentimentsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.BatchDetectLanguageSentimentsRequest.Builderlevel(BatchDetectLanguageSentimentsRequest.Level singularValue)Singular setter.BatchDetectLanguageSentimentsRequest.Builderlevel(List<BatchDetectLanguageSentimentsRequest.Level> level)Set this parameter for sentence and aspect level sentiment analysis.BatchDetectLanguageSentimentsRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.BatchDetectLanguageSentimentsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
batchDetectLanguageSentimentsDetails
public BatchDetectLanguageSentimentsRequest.Builder batchDetectLanguageSentimentsDetails(BatchDetectLanguageSentimentsDetails batchDetectLanguageSentimentsDetails)
The details to make sentiment detect call.- Parameters:
batchDetectLanguageSentimentsDetails- the value to set- Returns:
- this builder instance
-
opcRequestId
public BatchDetectLanguageSentimentsRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
level
public BatchDetectLanguageSentimentsRequest.Builder level(List<BatchDetectLanguageSentimentsRequest.Level> level)
Set this parameter for sentence and aspect level sentiment analysis.Allowed values are:
- ASPECT - SENTENCE
- Parameters:
level- the value to set- Returns:
- this builder instance
-
level
public BatchDetectLanguageSentimentsRequest.Builder level(BatchDetectLanguageSentimentsRequest.Level singularValue)
Singular setter.Set this parameter for sentence and aspect level sentiment analysis. Allowed values are: - ASPECT - SENTENCE
- Parameters:
singularValue- the singular value to set- Returns:
- this builder instance
-
invocationCallback
public BatchDetectLanguageSentimentsRequest.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 BatchDetectLanguageSentimentsRequest.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 BatchDetectLanguageSentimentsRequest.Builder copy(BatchDetectLanguageSentimentsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<BatchDetectLanguageSentimentsRequest,BatchDetectLanguageSentimentsDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public BatchDetectLanguageSentimentsRequest build()
Build the instance of BatchDetectLanguageSentimentsRequest 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:
buildin interfaceBmcRequest.Builder<BatchDetectLanguageSentimentsRequest,BatchDetectLanguageSentimentsDetails>- Returns:
- instance of BatchDetectLanguageSentimentsRequest
-
body$
public BatchDetectLanguageSentimentsRequest.Builder body$(BatchDetectLanguageSentimentsDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<BatchDetectLanguageSentimentsRequest,BatchDetectLanguageSentimentsDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public BatchDetectLanguageSentimentsRequest buildWithoutInvocationCallback()
Build the instance of BatchDetectLanguageSentimentsRequest 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 BatchDetectLanguageSentimentsRequest
-
-