public static class ListMaintenanceRunsRequest.Builder extends Object implements BmcRequest.Builder<ListMaintenanceRunsRequest,Void>
Constructor and Description |
---|
Builder() |
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()
Build the instance of ListMaintenanceRunsRequest as configured by this builder
|
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(com.oracle.bmc.http.client.RequestInterceptor 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 |
maintenanceSubtype(MaintenanceRunSummary.MaintenanceSubtype maintenanceSubtype)
The sub-type of the maintenance run.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
body$
public ListMaintenanceRunsRequest.Builder compartmentId(String compartmentId)
The compartment OCID.
compartmentId
- the value to setpublic ListMaintenanceRunsRequest.Builder targetResourceId(String targetResourceId)
The target resource ID.
targetResourceId
- the value to setpublic ListMaintenanceRunsRequest.Builder targetResourceType(MaintenanceRunSummary.TargetResourceType targetResourceType)
The type of the target resource.
targetResourceType
- the value to setpublic ListMaintenanceRunsRequest.Builder maintenanceType(MaintenanceRunSummary.MaintenanceType maintenanceType)
The maintenance type.
maintenanceType
- the value to setpublic ListMaintenanceRunsRequest.Builder limit(Integer limit)
The maximum number of items to return per page.
limit
- the value to setpublic ListMaintenanceRunsRequest.Builder page(String page)
The pagination token to continue listing from.
page
- the value to setpublic 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.
sortBy
- the value to setpublic ListMaintenanceRunsRequest.Builder sortOrder(ListMaintenanceRunsRequest.SortOrder sortOrder)
The sort order to use, either ascending (ASC
) or descending (DESC
).
sortOrder
- the value to setpublic ListMaintenanceRunsRequest.Builder lifecycleState(MaintenanceRunSummary.LifecycleState lifecycleState)
A filter to return only resources that match the given lifecycle state exactly.
lifecycleState
- the value to setpublic ListMaintenanceRunsRequest.Builder availabilityDomain(String availabilityDomain)
A filter to return only resources that match the given availability domain exactly.
availabilityDomain
- the value to setpublic ListMaintenanceRunsRequest.Builder maintenanceSubtype(MaintenanceRunSummary.MaintenanceSubtype maintenanceSubtype)
The sub-type of the maintenance run.
maintenanceSubtype
- the value to setpublic ListMaintenanceRunsRequest.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 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.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<ListMaintenanceRunsRequest,Void>
public ListMaintenanceRunsRequest buildWithoutInvocationCallback()
Build the instance of ListMaintenanceRunsRequest 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–2024. All rights reserved.