Class ListBatchJobTasksRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.batch.requests.ListBatchJobTasksRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListBatchJobTasksRequest,Void>
- Enclosing class:
- ListBatchJobTasksRequest
public static class ListBatchJobTasksRequest.Builder extends Object implements BmcRequest.Builder<ListBatchJobTasksRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBatchJobTasksRequest.BuilderbatchJobId(String batchJobId)The OCID of the batch job.ListBatchJobTasksRequestbuild()Build the instance of ListBatchJobTasksRequest as configured by this builderListBatchJobTasksRequestbuildWithoutInvocationCallback()Build the instance of ListBatchJobTasksRequest as configured by this builderListBatchJobTasksRequest.Buildercopy(ListBatchJobTasksRequest o)Copy method to populate the builder with values from the given instance.ListBatchJobTasksRequest.BuildergroupTaskName(String groupTaskName)Hierarchical name of the group task.ListBatchJobTasksRequest.BuilderhierarchyView(BatchTaskHierarchyView hierarchyView)Defines the hierarchical scope of the tasks to be returned.ListBatchJobTasksRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListBatchJobTasksRequest.BuilderlifecycleState(BatchTask.LifecycleState lifecycleState)A filter to return only resources that match the given lifecycle state.ListBatchJobTasksRequest.Builderlimit(Integer limit)For list pagination.ListBatchJobTasksRequest.Buildername(String name)The hierarchical name of the batch task.ListBatchJobTasksRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.ListBatchJobTasksRequest.Builderpage(String page)For list pagination.ListBatchJobTasksRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListBatchJobTasksRequest.BuildersortBy(BatchTaskSortBy sortBy)The field to sort by.ListBatchJobTasksRequest.BuildersortOrder(SortOrder sortOrder)The sort order to use, either ascending (ASC) or descending (DESC).ListBatchJobTasksRequest.BuildertaskId(String taskId)The UUID of the batch task.ListBatchJobTasksRequest.Buildertype(BatchTask.Type type)Filter tasks by type.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builder
body$
-
-
-
-
Method Detail
-
batchJobId
public ListBatchJobTasksRequest.Builder batchJobId(String batchJobId)
The OCID of the batch job.- Parameters:
batchJobId- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListBatchJobTasksRequest.Builder lifecycleState(BatchTask.LifecycleState lifecycleState)
A filter to return only resources that match the given lifecycle state.The state value is case-insensitive.
- Parameters:
lifecycleState- the value to set- Returns:
- this builder instance
-
name
public ListBatchJobTasksRequest.Builder name(String name)
The hierarchical name of the batch task.Mutually exclusive with the task id query parameter: you can’t pass both.
- Parameters:
name- the value to set- Returns:
- this builder instance
-
taskId
public ListBatchJobTasksRequest.Builder taskId(String taskId)
The UUID of the batch task.Mutually exclusive with the task name and group task name query parameters: you can’t pass both.
- Parameters:
taskId- the value to set- Returns:
- this builder instance
-
groupTaskName
public ListBatchJobTasksRequest.Builder groupTaskName(String groupTaskName)
Hierarchical name of the group task.A filter to return only tasks contained within the selected group task. Omit to return top-level tasks only. Can be combined with task name query parameter, in which case task name becomes a hierarchical name relative to the selected group task, e.g. ?groupTaskName=A.B&taskName=C.D is equal to ?taskName=A.B.C.D. Mutually exclusive with the task id query parameter: you can’t pass both.
- Parameters:
groupTaskName- the value to set- Returns:
- this builder instance
-
type
public ListBatchJobTasksRequest.Builder type(BatchTask.Type type)
Filter tasks by type.Valid values are: COMPUTE, GROUP.
- Parameters:
type- the value to set- Returns:
- this builder instance
-
hierarchyView
public ListBatchJobTasksRequest.Builder hierarchyView(BatchTaskHierarchyView hierarchyView)
Defines the hierarchical scope of the tasks to be returned.When set to SHALLOW, which is default, only tasks contained directly (non-recursively) within current hierarchy entry are returned. When set to DEEP, tasks contained within current hierarchy entry and all its descendants recursively are returned. The default hierarchy entry is root, i.e. batch job itself. To use a different hierarchy entry, provide the group task name as a query parameter. The specified group task becomes the entry point instead of the batch job.
- Parameters:
hierarchyView- the value to set- Returns:
- this builder instance
-
limit
public ListBatchJobTasksRequest.Builder limit(Integer limit)
For list pagination.The maximum number of results per page, or items to return in a paginated “List” call. For important details about how pagination works, see List Pagination.
- Parameters:
limit- the value to set- Returns:
- this builder instance
-
page
public ListBatchJobTasksRequest.Builder page(String page)
For list pagination.The value of the opc-next-page response header from the previous “List” call. For important details about how pagination works, see List Pagination.
- Parameters:
page- the value to set- Returns:
- this builder instance
-
sortOrder
public ListBatchJobTasksRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use, either ascending (ASC) or descending (DESC).- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
sortBy
public ListBatchJobTasksRequest.Builder sortBy(BatchTaskSortBy sortBy)
The field to sort by.You can provide only one sort order. Default order for name is ascending.
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListBatchJobTasksRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListBatchJobTasksRequest.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 ListBatchJobTasksRequest.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 ListBatchJobTasksRequest.Builder copy(ListBatchJobTasksRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListBatchJobTasksRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListBatchJobTasksRequest build()
Build the instance of ListBatchJobTasksRequest 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<ListBatchJobTasksRequest,Void>- Returns:
- instance of ListBatchJobTasksRequest
-
buildWithoutInvocationCallback
public ListBatchJobTasksRequest buildWithoutInvocationCallback()
Build the instance of ListBatchJobTasksRequest 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 ListBatchJobTasksRequest
-
-