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