Class CreateBucketRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.objectstorage.requests.CreateBucketRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateBucketRequest,CreateBucketDetails>
- Enclosing class:
- CreateBucketRequest
public static class CreateBucketRequest.Builder extends Object implements BmcRequest.Builder<CreateBucketRequest,CreateBucketDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateBucketRequest.Builderbody$(CreateBucketDetails body)Alternative setter for the body parameter.CreateBucketRequestbuild()Build the instance of CreateBucketRequest as configured by this builderCreateBucketRequestbuildWithoutInvocationCallback()Build the instance of CreateBucketRequest as configured by this builderCreateBucketRequest.Buildercopy(CreateBucketRequest o)Copy method to populate the builder with values from the given instance.CreateBucketRequest.BuildercreateBucketDetails(CreateBucketDetails createBucketDetails)Request object for creating a bucket.CreateBucketRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateBucketRequest.BuildernamespaceName(String namespaceName)The Object Storage namespace used for the request.CreateBucketRequest.BuilderopcClientRequestId(String opcClientRequestId)The client request ID for tracing.CreateBucketRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
namespaceName
public CreateBucketRequest.Builder namespaceName(String namespaceName)
The Object Storage namespace used for the request.- Parameters:
namespaceName- the value to set- Returns:
- this builder instance
-
createBucketDetails
public CreateBucketRequest.Builder createBucketDetails(CreateBucketDetails createBucketDetails)
Request object for creating a bucket.- Parameters:
createBucketDetails- the value to set- Returns:
- this builder instance
-
opcClientRequestId
public CreateBucketRequest.Builder opcClientRequestId(String opcClientRequestId)
The client request ID for tracing.- Parameters:
opcClientRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateBucketRequest.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 CreateBucketRequest.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 CreateBucketRequest.Builder copy(CreateBucketRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<CreateBucketRequest,CreateBucketDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateBucketRequest build()
Build the instance of CreateBucketRequest 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<CreateBucketRequest,CreateBucketDetails>- Returns:
- instance of CreateBucketRequest
-
body$
public CreateBucketRequest.Builder body$(CreateBucketDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<CreateBucketRequest,CreateBucketDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateBucketRequest buildWithoutInvocationCallback()
Build the instance of CreateBucketRequest 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 CreateBucketRequest
-
-