Class InvokeFunctionRequest
- java.lang.Object
-
- com.oracle.bmc.requests.BmcRequest<InputStream>
-
- com.oracle.bmc.functions.requests.InvokeFunctionRequest
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public class InvokeFunctionRequest extends BmcRequest<InputStream>Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/InvokeFunctionExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use InvokeFunctionRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvokeFunctionRequest.Builderstatic classInvokeFunctionRequest.FnIntentAn optional intent header that indicates to the FDK the way the event should be interpreted.static classInvokeFunctionRequest.FnInvokeTypeIndicates 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.
-
Constructor Summary
Constructors Constructor Description InvokeFunctionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvokeFunctionRequest.Builderbuilder()Return a new builder for this request object.booleanequals(Object o)Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.InputStreamgetBody$()Alternative accessor for the body parameter.InvokeFunctionRequest.FnIntentgetFnIntent()An optional intent header that indicates to the FDK the way the event should be interpreted.InvokeFunctionRequest.FnInvokeTypegetFnInvokeType()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.StringgetFunctionId()The OCID of this function.InputStreamgetInvokeFunctionBody()The body of the function invocation.BooleangetIsDryRun()Indicates that the request is a dry run, if set to “true”.StringgetOpcRequestId()The unique Oracle-assigned identifier for the request.inthashCode()Uses getInvocationCallback and getRetryConfiguration to generate a hash.InvokeFunctionRequest.BuildertoBuilder()Return an instance ofInvokeFunctionRequest.Builderthat allows you to modify request properties.StringtoString()-
Methods inherited from class com.oracle.bmc.requests.BmcRequest
getInvocationCallback, getRetryConfiguration, setInvocationCallback, setRetryConfiguration, supportsExpect100Continue
-
-
-
-
Method Detail
-
getInvokeFunctionBody
public InputStream getInvokeFunctionBody()
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.
-
getFnIntent
public InvokeFunctionRequest.FnIntent getFnIntent()
An optional intent header that indicates to the FDK the way the event should be interpreted.E.g. ‘httprequest’, ‘cloudevent’.
-
getFnInvokeType
public InvokeFunctionRequest.FnInvokeType getFnInvokeType()
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.
-
getOpcRequestId
public String getOpcRequestId()
The unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
-
getIsDryRun
public Boolean getIsDryRun()
Indicates that the request is a dry run, if set to “true”.A dry run request does not execute the function.
-
getBody$
public InputStream getBody$()
Alternative accessor for the body parameter.- Overrides:
getBody$in classBmcRequest<InputStream>- Returns:
- body parameter
-
toBuilder
public InvokeFunctionRequest.Builder toBuilder()
Return an instance ofInvokeFunctionRequest.Builderthat allows you to modify request properties.- Returns:
- instance of
InvokeFunctionRequest.Builderthat allows you to modify request properties.
-
builder
public static InvokeFunctionRequest.Builder builder()
Return a new builder for this request object.- Returns:
- builder for the request object
-
equals
public boolean equals(Object o)
Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.- Overrides:
equalsin classBmcRequest<InputStream>
-
hashCode
public int hashCode()
Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to generate a hash.- Overrides:
hashCodein classBmcRequest<InputStream>
-
-