Package com.oracle.bmc.database.requests
Class UpdateMaintenanceRunRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.database.requests.UpdateMaintenanceRunRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateMaintenanceRunRequest,UpdateMaintenanceRunDetails>
- Enclosing class:
- UpdateMaintenanceRunRequest
public static class UpdateMaintenanceRunRequest.Builder extends Object implements BmcRequest.Builder<UpdateMaintenanceRunRequest,UpdateMaintenanceRunDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateMaintenanceRunRequest.Builderbody$(UpdateMaintenanceRunDetails body)Alternative setter for the body parameter.UpdateMaintenanceRunRequestbuild()Build the instance of UpdateMaintenanceRunRequest as configured by this builderUpdateMaintenanceRunRequestbuildWithoutInvocationCallback()Build the instance of UpdateMaintenanceRunRequest as configured by this builderUpdateMaintenanceRunRequest.Buildercopy(UpdateMaintenanceRunRequest o)Copy method to populate the builder with values from the given instance.UpdateMaintenanceRunRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateMaintenanceRunRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateMaintenanceRunRequest.BuildermaintenanceRunId(String maintenanceRunId)The maintenance run OCID.UpdateMaintenanceRunRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateMaintenanceRunRequest.BuilderupdateMaintenanceRunDetails(UpdateMaintenanceRunDetails updateMaintenanceRunDetails)Request to update the properties of a maintenance run.
-
-
-
Method Detail
-
maintenanceRunId
public UpdateMaintenanceRunRequest.Builder maintenanceRunId(String maintenanceRunId)
The maintenance run OCID.- Parameters:
maintenanceRunId- the value to set- Returns:
- this builder instance
-
updateMaintenanceRunDetails
public UpdateMaintenanceRunRequest.Builder updateMaintenanceRunDetails(UpdateMaintenanceRunDetails updateMaintenanceRunDetails)
Request to update the properties of a maintenance run.- Parameters:
updateMaintenanceRunDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateMaintenanceRunRequest.Builder ifMatch(String ifMatch)
For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
- Parameters:
ifMatch- the value to set- Returns:
- this builder instance
-
invocationCallback
public UpdateMaintenanceRunRequest.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 UpdateMaintenanceRunRequest.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 UpdateMaintenanceRunRequest.Builder copy(UpdateMaintenanceRunRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateMaintenanceRunRequest,UpdateMaintenanceRunDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateMaintenanceRunRequest build()
Build the instance of UpdateMaintenanceRunRequest 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:
buildin interfaceBmcRequest.Builder<UpdateMaintenanceRunRequest,UpdateMaintenanceRunDetails>- Returns:
- instance of UpdateMaintenanceRunRequest
-
body$
public UpdateMaintenanceRunRequest.Builder body$(UpdateMaintenanceRunDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateMaintenanceRunRequest,UpdateMaintenanceRunDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateMaintenanceRunRequest buildWithoutInvocationCallback()
Build the instance of UpdateMaintenanceRunRequest 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 UpdateMaintenanceRunRequest
-
-