Class CreateJobArtifactRequest.Builder
- java.lang.Object
 - 
- com.oracle.bmc.datascience.requests.CreateJobArtifactRequest.Builder
 
 
- 
- All Implemented Interfaces:
 BmcRequest.Builder<CreateJobArtifactRequest,InputStream>
- Enclosing class:
 - CreateJobArtifactRequest
 
public static class CreateJobArtifactRequest.Builder extends Object implements BmcRequest.Builder<CreateJobArtifactRequest,InputStream>
 
- 
- 
Constructor Summary
Constructors Constructor Description Builder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateJobArtifactRequest.Builderbody$(InputStream body)Alternative setter for the body parameter.CreateJobArtifactRequestbuild()Build the instance of CreateJobArtifactRequest as configured by this builderCreateJobArtifactRequestbuildWithoutInvocationCallback()Build the instance of CreateJobArtifactRequest as configured by this builderCreateJobArtifactRequest.BuildercontentDisposition(String contentDisposition)This header is for specifying a filename during upload.CreateJobArtifactRequest.BuildercontentLength(Long contentLength)The content length of the body.CreateJobArtifactRequest.Buildercopy(CreateJobArtifactRequest o)Copy method to populate the builder with values from the given instance.CreateJobArtifactRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateJobArtifactRequest.BuilderjobArtifact(InputStream jobArtifact)The job artifact to upload.CreateJobArtifactRequest.BuilderjobId(String jobId)The OCID of the job.CreateJobArtifactRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle assigned identifier for the request.CreateJobArtifactRequest.BuilderopcRetryToken(String opcRetryToken)A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.CreateJobArtifactRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built. 
 - 
 
- 
- 
Method Detail
- 
jobId
public CreateJobArtifactRequest.Builder jobId(String jobId)
The OCID of the job.- Parameters:
 jobId- the value to set- Returns:
 - this builder instance
 
 
- 
contentLength
public CreateJobArtifactRequest.Builder contentLength(Long contentLength)
The content length of the body.- Parameters:
 contentLength- the value to set- Returns:
 - this builder instance
 
 
- 
jobArtifact
public CreateJobArtifactRequest.Builder jobArtifact(InputStream jobArtifact)
The job artifact to upload.- Parameters:
 jobArtifact- the value to set- Returns:
 - this builder instance
 
 
- 
opcRequestId
public CreateJobArtifactRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle assigned identifier for the request.If you need to contact Oracle about a particular request, then provide the request ID.
- Parameters:
 opcRequestId- the value to set- Returns:
 - this builder instance
 
 
- 
opcRetryToken
public CreateJobArtifactRequest.Builder opcRetryToken(String opcRetryToken)
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
- Parameters:
 opcRetryToken- the value to set- Returns:
 - this builder instance
 
 
- 
contentDisposition
public CreateJobArtifactRequest.Builder contentDisposition(String contentDisposition)
This header is for specifying a filename during upload.It is used to identify the file type and validate if the file type is supported. Example: –content-disposition “attachment; filename=hello-world.py”
- Parameters:
 contentDisposition- the value to set- Returns:
 - this builder instance
 
 
- 
invocationCallback
public CreateJobArtifactRequest.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 CreateJobArtifactRequest.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 CreateJobArtifactRequest.Builder copy(CreateJobArtifactRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
 copyin interfaceBmcRequest.Builder<CreateJobArtifactRequest,InputStream>- Parameters:
 o- other request from which to copy values- Returns:
 - this builder instance
 
 
- 
build
public CreateJobArtifactRequest build()
Build the instance of CreateJobArtifactRequest 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<CreateJobArtifactRequest,InputStream>- Returns:
 - instance of CreateJobArtifactRequest
 
 
- 
body$
public CreateJobArtifactRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.- Specified by:
 body$in interfaceBmcRequest.Builder<CreateJobArtifactRequest,InputStream>- Parameters:
 body- the body parameter- Returns:
 - this builder instance
 
 
- 
buildWithoutInvocationCallback
public CreateJobArtifactRequest buildWithoutInvocationCallback()
Build the instance of CreateJobArtifactRequest 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 CreateJobArtifactRequest
 
 
 - 
 
 -