Class UpdatePreferredCredentialRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.requests.UpdatePreferredCredentialRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdatePreferredCredentialRequest,UpdatePreferredCredentialDetails>
- Enclosing class:
- UpdatePreferredCredentialRequest
public static class UpdatePreferredCredentialRequest.Builder extends Object implements BmcRequest.Builder<UpdatePreferredCredentialRequest,UpdatePreferredCredentialDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdatePreferredCredentialRequest.Builderbody$(UpdatePreferredCredentialDetails body)Alternative setter for the body parameter.UpdatePreferredCredentialRequestbuild()Build the instance of UpdatePreferredCredentialRequest as configured by this builderUpdatePreferredCredentialRequestbuildWithoutInvocationCallback()Build the instance of UpdatePreferredCredentialRequest as configured by this builderUpdatePreferredCredentialRequest.Buildercopy(UpdatePreferredCredentialRequest o)Copy method to populate the builder with values from the given instance.UpdatePreferredCredentialRequest.BuildercredentialName(String credentialName)The name of the preferred credential.UpdatePreferredCredentialRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdatePreferredCredentialRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdatePreferredCredentialRequest.BuildermanagedDatabaseId(String managedDatabaseId)The OCID of the Managed Database.UpdatePreferredCredentialRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.UpdatePreferredCredentialRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdatePreferredCredentialRequest.BuilderupdatePreferredCredentialDetails(UpdatePreferredCredentialDetails updatePreferredCredentialDetails)The details required to update preferred credential.
-
-
-
Method Detail
-
managedDatabaseId
public UpdatePreferredCredentialRequest.Builder managedDatabaseId(String managedDatabaseId)
The OCID of the Managed Database.- Parameters:
managedDatabaseId- the value to set- Returns:
- this builder instance
-
credentialName
public UpdatePreferredCredentialRequest.Builder credentialName(String credentialName)
The name of the preferred credential.- Parameters:
credentialName- the value to set- Returns:
- this builder instance
-
updatePreferredCredentialDetails
public UpdatePreferredCredentialRequest.Builder updatePreferredCredentialDetails(UpdatePreferredCredentialDetails updatePreferredCredentialDetails)
The details required to update preferred credential.- Parameters:
updatePreferredCredentialDetails- the value to set- Returns:
- this builder instance
-
opcRequestId
public UpdatePreferredCredentialRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdatePreferredCredentialRequest.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 UpdatePreferredCredentialRequest.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 UpdatePreferredCredentialRequest.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 UpdatePreferredCredentialRequest.Builder copy(UpdatePreferredCredentialRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdatePreferredCredentialRequest,UpdatePreferredCredentialDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdatePreferredCredentialRequest build()
Build the instance of UpdatePreferredCredentialRequest 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<UpdatePreferredCredentialRequest,UpdatePreferredCredentialDetails>- Returns:
- instance of UpdatePreferredCredentialRequest
-
body$
public UpdatePreferredCredentialRequest.Builder body$(UpdatePreferredCredentialDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdatePreferredCredentialRequest,UpdatePreferredCredentialDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdatePreferredCredentialRequest buildWithoutInvocationCallback()
Build the instance of UpdatePreferredCredentialRequest 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 UpdatePreferredCredentialRequest
-
-