Class SearchResourcesRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.resourcesearch.requests.SearchResourcesRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<SearchResourcesRequest,SearchDetails>
- Enclosing class:
- SearchResourcesRequest
public static class SearchResourcesRequest.Builder extends Object implements BmcRequest.Builder<SearchResourcesRequest,SearchDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResourcesRequest.Builder
body$(SearchDetails body)
Alternative setter for the body parameter.SearchResourcesRequest
build()
Build the instance of SearchResourcesRequest as configured by this builderSearchResourcesRequest
buildWithoutInvocationCallback()
Build the instance of SearchResourcesRequest as configured by this builderSearchResourcesRequest.Builder
copy(SearchResourcesRequest o)
Copy method to populate the builder with values from the given instance.SearchResourcesRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.SearchResourcesRequest.Builder
limit(Integer limit)
The maximum number of items to return.SearchResourcesRequest.Builder
opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.SearchResourcesRequest.Builder
page(String page)
The page at which to start retrieving results.SearchResourcesRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.SearchResourcesRequest.Builder
searchDetails(SearchDetails searchDetails)
Request parameters that describe query criteria.SearchResourcesRequest.Builder
tenantId(String tenantId)
The tenancy ID, which can be used to specify a different tenancy (for cross-tenancy authorization) when searching for resources in a different tenancy.
-
-
-
Method Detail
-
searchDetails
public SearchResourcesRequest.Builder searchDetails(SearchDetails searchDetails)
Request parameters that describe query criteria.For more information, see
searchDetails
.- Parameters:
searchDetails
- the value to set- Returns:
- this builder instance
-
limit
public SearchResourcesRequest.Builder limit(Integer limit)
The maximum number of items to return.The value must be between 1 and 1000.
- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public SearchResourcesRequest.Builder page(String page)
The page at which to start retrieving results.- Parameters:
page
- the value to set- Returns:
- this builder instance
-
tenantId
public SearchResourcesRequest.Builder tenantId(String tenantId)
The tenancy ID, which can be used to specify a different tenancy (for cross-tenancy authorization) when searching for resources in a different tenancy.- Parameters:
tenantId
- the value to set- Returns:
- this builder instance
-
opcRequestId
public SearchResourcesRequest.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 complete request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public SearchResourcesRequest.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 SearchResourcesRequest.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 SearchResourcesRequest.Builder copy(SearchResourcesRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<SearchResourcesRequest,SearchDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public SearchResourcesRequest build()
Build the instance of SearchResourcesRequest 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:
build
in interfaceBmcRequest.Builder<SearchResourcesRequest,SearchDetails>
- Returns:
- instance of SearchResourcesRequest
-
body$
public SearchResourcesRequest.Builder body$(SearchDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<SearchResourcesRequest,SearchDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public SearchResourcesRequest buildWithoutInvocationCallback()
Build the instance of SearchResourcesRequest 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 SearchResourcesRequest
-
-