Package com.oracle.bmc.oda.requests
Class CreateDigitalAssistantRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.oda.requests.CreateDigitalAssistantRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateDigitalAssistantRequest,CreateDigitalAssistantDetails>
- Enclosing class:
- CreateDigitalAssistantRequest
public static class CreateDigitalAssistantRequest.Builder extends Object implements BmcRequest.Builder<CreateDigitalAssistantRequest,CreateDigitalAssistantDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDigitalAssistantRequest.Builderbody$(CreateDigitalAssistantDetails body)Alternative setter for the body parameter.CreateDigitalAssistantRequestbuild()Build the instance of CreateDigitalAssistantRequest as configured by this builderCreateDigitalAssistantRequestbuildWithoutInvocationCallback()Build the instance of CreateDigitalAssistantRequest as configured by this builderCreateDigitalAssistantRequest.Buildercopy(CreateDigitalAssistantRequest o)Copy method to populate the builder with values from the given instance.CreateDigitalAssistantRequest.BuildercreateDigitalAssistantDetails(CreateDigitalAssistantDetails createDigitalAssistantDetails)Property values for creating the new Digital Assistant.CreateDigitalAssistantRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateDigitalAssistantRequest.BuilderodaInstanceId(String odaInstanceId)Unique Digital Assistant instance identifier.CreateDigitalAssistantRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.CreateDigitalAssistantRequest.BuilderopcRetryToken(String opcRetryToken)A token that uniquely identifies a request so that you can retry the request if there’s a timeout or server error without the risk of executing that same action again.CreateDigitalAssistantRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
odaInstanceId
public CreateDigitalAssistantRequest.Builder odaInstanceId(String odaInstanceId)
Unique Digital Assistant instance identifier.- Parameters:
odaInstanceId- the value to set- Returns:
- this builder instance
-
createDigitalAssistantDetails
public CreateDigitalAssistantRequest.Builder createDigitalAssistantDetails(CreateDigitalAssistantDetails createDigitalAssistantDetails)
Property values for creating the new Digital Assistant.- Parameters:
createDigitalAssistantDetails- the value to set- Returns:
- this builder instance
-
opcRequestId
public CreateDigitalAssistantRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.This value is included in the opc-request-id response header.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
opcRetryToken
public CreateDigitalAssistantRequest.Builder opcRetryToken(String opcRetryToken)
A token that uniquely identifies a request so that you can retry the request if there’s a timeout or server error without the risk of executing that same action again.Retry tokens expire after 24 hours, but they can become invalid before then if there are conflicting operations. For example, if an instance was deleted and purged from the system, then the service might reject a retry of the original creation request.
- Parameters:
opcRetryToken- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateDigitalAssistantRequest.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 CreateDigitalAssistantRequest.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 CreateDigitalAssistantRequest.Builder copy(CreateDigitalAssistantRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<CreateDigitalAssistantRequest,CreateDigitalAssistantDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateDigitalAssistantRequest build()
Build the instance of CreateDigitalAssistantRequest 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<CreateDigitalAssistantRequest,CreateDigitalAssistantDetails>- Returns:
- instance of CreateDigitalAssistantRequest
-
body$
public CreateDigitalAssistantRequest.Builder body$(CreateDigitalAssistantDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<CreateDigitalAssistantRequest,CreateDigitalAssistantDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateDigitalAssistantRequest buildWithoutInvocationCallback()
Build the instance of CreateDigitalAssistantRequest 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 CreateDigitalAssistantRequest
-
-