public static class InvokeFunctionRequest.Builder extends Object implements BmcRequest.Builder<InvokeFunctionRequest,InputStream>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InvokeFunctionRequest.Builder |
body$(InputStream body)
Alternative setter for the body parameter.
|
InvokeFunctionRequest |
build()
Build the instance of InvokeFunctionRequest as configured by this builder
|
InvokeFunctionRequest |
buildWithoutInvocationCallback()
Build the instance of InvokeFunctionRequest as configured by this builder
|
InvokeFunctionRequest.Builder |
copy(InvokeFunctionRequest o)
Copy method to populate the builder with values from the given instance.
|
InvokeFunctionRequest.Builder |
fnIntent(InvokeFunctionRequest.FnIntent fnIntent)
An optional intent header that indicates to the FDK the way the event should be
interpreted.
|
InvokeFunctionRequest.Builder |
fnInvokeType(InvokeFunctionRequest.FnInvokeType fnInvokeType)
Indicates whether Oracle Functions should execute the request and return the result
(‘sync’) of the execution, or whether Oracle Functions should return as soon as
processing has begun (‘detached’) and leave result handling to the function.
|
InvokeFunctionRequest.Builder |
functionId(String functionId)
The OCID
of this function.
|
InvokeFunctionRequest.Builder |
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
|
InvokeFunctionRequest.Builder |
invokeFunctionBody(InputStream invokeFunctionBody)
The body of the function invocation.
|
InvokeFunctionRequest.Builder |
opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.
|
InvokeFunctionRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
public InvokeFunctionRequest.Builder functionId(String functionId)
The OCID of this function.
functionId
- the value to setpublic InvokeFunctionRequest.Builder invokeFunctionBody(InputStream invokeFunctionBody)
The body of the function invocation. Note: The maximum size of the request is limited. This limit is currently 6MB and the endpoint will not accept requests that are bigger than this limit.
invokeFunctionBody
- the value to setpublic InvokeFunctionRequest.Builder fnIntent(InvokeFunctionRequest.FnIntent fnIntent)
An optional intent header that indicates to the FDK the way the event should be interpreted. E.g. ‘httprequest’, ‘cloudevent’.
fnIntent
- the value to setpublic InvokeFunctionRequest.Builder fnInvokeType(InvokeFunctionRequest.FnInvokeType fnInvokeType)
Indicates whether Oracle Functions should execute the request and return the result (‘sync’) of the execution, or whether Oracle Functions should return as soon as processing has begun (‘detached’) and leave result handling to the function.
fnInvokeType
- the value to setpublic InvokeFunctionRequest.Builder opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opcRequestId
- the value to setpublic InvokeFunctionRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic InvokeFunctionRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic InvokeFunctionRequest.Builder copy(InvokeFunctionRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<InvokeFunctionRequest,InputStream>
o
- other request from which to copy valuespublic InvokeFunctionRequest build()
Build the instance of InvokeFunctionRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<InvokeFunctionRequest,InputStream>
public InvokeFunctionRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.
body$
in interface BmcRequest.Builder<InvokeFunctionRequest,InputStream>
body
- the body parameterpublic InvokeFunctionRequest buildWithoutInvocationCallback()
Build the instance of InvokeFunctionRequest as configured by this builder
Note that this method does not take calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method build()
does
Copyright © 2016–2024. All rights reserved.