public static class ListMaintenanceRunHistoryRequest.Builder extends Object implements BmcRequest.Builder<ListMaintenanceRunHistoryRequest,Void>
Constructor and Description |
---|
Builder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
body$
public ListMaintenanceRunHistoryRequest.Builder compartmentId(String compartmentId)
The compartment OCID.
compartmentId
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder targetResourceId(String targetResourceId)
The target resource ID.
targetResourceId
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder targetResourceType(MaintenanceRunSummary.TargetResourceType targetResourceType)
The type of the target resource.
targetResourceType
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder maintenanceType(MaintenanceRunSummary.MaintenanceType maintenanceType)
The maintenance type.
maintenanceType
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder limit(Integer limit)
The maximum number of items to return per page.
limit
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder page(String page)
The pagination token to continue listing from.
page
- the value to setpublic 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.
sortBy
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder sortOrder(ListMaintenanceRunHistoryRequest.SortOrder sortOrder)
The sort order to use, either ascending (ASC
) or descending (DESC
).
sortOrder
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder lifecycleState(MaintenanceRunSummary.LifecycleState lifecycleState)
The state of the maintenance run history.
lifecycleState
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder availabilityDomain(String availabilityDomain)
A filter to return only resources that match the given availability domain exactly.
availabilityDomain
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder maintenanceSubtype(MaintenanceRunSummary.MaintenanceSubtype maintenanceSubtype)
The sub-type of the maintenance run.
maintenanceSubtype
- the value to setpublic ListMaintenanceRunHistoryRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic ListMaintenanceRunHistoryRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic ListMaintenanceRunHistoryRequest.Builder copy(ListMaintenanceRunHistoryRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<ListMaintenanceRunHistoryRequest,Void>
o
- other request from which to copy valuespublic ListMaintenanceRunHistoryRequest build()
Build the instance of ListMaintenanceRunHistoryRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<ListMaintenanceRunHistoryRequest,Void>
public ListMaintenanceRunHistoryRequest buildWithoutInvocationCallback()
Build the instance of ListMaintenanceRunHistoryRequest as configured by this builder
Note that this method does not take calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method build()
does
Copyright © 2016–2023. All rights reserved.