Package com.oracle.bmc.database.requests
Class UpgradeDatabaseRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.database.requests.UpgradeDatabaseRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpgradeDatabaseRequest,UpgradeDatabaseDetails>
- Enclosing class:
- UpgradeDatabaseRequest
public static class UpgradeDatabaseRequest.Builder extends Object implements BmcRequest.Builder<UpgradeDatabaseRequest,UpgradeDatabaseDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpgradeDatabaseRequest.Builderbody$(UpgradeDatabaseDetails body)Alternative setter for the body parameter.UpgradeDatabaseRequestbuild()Build the instance of UpgradeDatabaseRequest as configured by this builderUpgradeDatabaseRequestbuildWithoutInvocationCallback()Build the instance of UpgradeDatabaseRequest as configured by this builderUpgradeDatabaseRequest.Buildercopy(UpgradeDatabaseRequest o)Copy method to populate the builder with values from the given instance.UpgradeDatabaseRequest.BuilderdatabaseId(String databaseId)The database OCID.UpgradeDatabaseRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpgradeDatabaseRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpgradeDatabaseRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.UpgradeDatabaseRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpgradeDatabaseRequest.BuilderupgradeDatabaseDetails(UpgradeDatabaseDetails upgradeDatabaseDetails)Request to perform a database upgrade.
-
-
-
Method Detail
-
databaseId
public UpgradeDatabaseRequest.Builder databaseId(String databaseId)
The database OCID.- Parameters:
databaseId- the value to set- Returns:
- this builder instance
-
upgradeDatabaseDetails
public UpgradeDatabaseRequest.Builder upgradeDatabaseDetails(UpgradeDatabaseDetails upgradeDatabaseDetails)
Request to perform a database upgrade.- Parameters:
upgradeDatabaseDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpgradeDatabaseRequest.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
-
opcRequestId
public UpgradeDatabaseRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public UpgradeDatabaseRequest.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 UpgradeDatabaseRequest.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 UpgradeDatabaseRequest.Builder copy(UpgradeDatabaseRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpgradeDatabaseRequest,UpgradeDatabaseDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpgradeDatabaseRequest build()
Build the instance of UpgradeDatabaseRequest 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<UpgradeDatabaseRequest,UpgradeDatabaseDetails>- Returns:
- instance of UpgradeDatabaseRequest
-
body$
public UpgradeDatabaseRequest.Builder body$(UpgradeDatabaseDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpgradeDatabaseRequest,UpgradeDatabaseDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpgradeDatabaseRequest buildWithoutInvocationCallback()
Build the instance of UpgradeDatabaseRequest 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 UpgradeDatabaseRequest
-
-