Package com.oracle.bmc.database.requests
Class ListMaintenanceRunHistoryRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.database.requests.ListMaintenanceRunHistoryRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListMaintenanceRunHistoryRequest,Void>
- Enclosing class:
- ListMaintenanceRunHistoryRequest
public static class ListMaintenanceRunHistoryRequest.Builder extends Object implements BmcRequest.Builder<ListMaintenanceRunHistoryRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
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
-
compartmentId
public ListMaintenanceRunHistoryRequest.Builder compartmentId(String compartmentId)
The compartment OCID.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
targetResourceId
public ListMaintenanceRunHistoryRequest.Builder targetResourceId(String targetResourceId)
The target resource ID.- Parameters:
targetResourceId
- the value to set- Returns:
- this builder instance
-
targetResourceType
public ListMaintenanceRunHistoryRequest.Builder targetResourceType(MaintenanceRunSummary.TargetResourceType targetResourceType)
The type of the target resource.- Parameters:
targetResourceType
- the value to set- Returns:
- this builder instance
-
maintenanceType
public ListMaintenanceRunHistoryRequest.Builder maintenanceType(MaintenanceRunSummary.MaintenanceType maintenanceType)
The maintenance type.- Parameters:
maintenanceType
- the value to set- Returns:
- this builder instance
-
limit
public ListMaintenanceRunHistoryRequest.Builder limit(Integer limit)
The maximum number of items to return per page.- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListMaintenanceRunHistoryRequest.Builder page(String page)
The pagination token to continue listing from.- Parameters:
page
- the value to set- Returns:
- this builder instance
-
sortBy
public ListMaintenanceRunHistoryRequest.Builder sortBy(ListMaintenanceRunHistoryRequest.SortBy sortBy)
The field to sort by.You can provide one sort order (sortOrder). Default order for TIME_SCHEDULED and TIME_ENDED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
*Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListMaintenanceRunHistoryRequest.Builder sortOrder(ListMaintenanceRunHistoryRequest.SortOrder sortOrder)
The sort order to use, either ascending (ASC) or descending (DESC).- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListMaintenanceRunHistoryRequest.Builder lifecycleState(MaintenanceRunSummary.LifecycleState lifecycleState)
The state of the maintenance run history.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
availabilityDomain
public ListMaintenanceRunHistoryRequest.Builder availabilityDomain(String availabilityDomain)
A filter to return only resources that match the given availability domain exactly.- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder instance
-
maintenanceSubtype
public ListMaintenanceRunHistoryRequest.Builder maintenanceSubtype(MaintenanceRunSummary.MaintenanceSubtype maintenanceSubtype)
The sub-type of the maintenance run.- Parameters:
maintenanceSubtype
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListMaintenanceRunHistoryRequest.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 ListMaintenanceRunHistoryRequest.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 ListMaintenanceRunHistoryRequest.Builder copy(ListMaintenanceRunHistoryRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListMaintenanceRunHistoryRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListMaintenanceRunHistoryRequest build()
Build the instance of ListMaintenanceRunHistoryRequest 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<ListMaintenanceRunHistoryRequest,Void>
- Returns:
- instance of ListMaintenanceRunHistoryRequest
-
buildWithoutInvocationCallback
public ListMaintenanceRunHistoryRequest buildWithoutInvocationCallback()
Build the instance of ListMaintenanceRunHistoryRequest 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 ListMaintenanceRunHistoryRequest
-
-