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