Class GetBucketResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.objectstorage.responses.GetBucketResponse.Builder
-
- All Implemented Interfaces:
BmcResponse.Builder<GetBucketResponse>
- Enclosing class:
- GetBucketResponse
public static class GetBucketResponse.Builder extends Object implements BmcResponse.Builder<GetBucketResponse>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetBucketResponse.Builder
__httpStatusCode__(int __httpStatusCode__)
GetBucketResponse.Builder
bucket(Bucket bucket)
The returned Bucket instance, or null ifGetBucketResponse.isNotModified()
is true.GetBucketResponse
build()
Build the response object.GetBucketResponse.Builder
copy(GetBucketResponse o)
Copy method to populate the builder with values from the given instance.GetBucketResponse.Builder
eTag(String eTag)
The current entity tag (ETag) for the bucket.GetBucketResponse.Builder
headers(Map<String,List<String>> headers)
GetBucketResponse.Builder
isNotModified(boolean isNotModified)
Flag to indicate whether or not the object was modified.GetBucketResponse.Builder
opcClientRequestId(String opcClientRequestId)
Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.GetBucketResponse.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.
-
-
-
Method Detail
-
__httpStatusCode__
public GetBucketResponse.Builder __httpStatusCode__(int __httpStatusCode__)
- Specified by:
__httpStatusCode__
in interfaceBmcResponse.Builder<GetBucketResponse>
-
headers
public GetBucketResponse.Builder headers(Map<String,List<String>> headers)
- Specified by:
headers
in interfaceBmcResponse.Builder<GetBucketResponse>
-
opcClientRequestId
public GetBucketResponse.Builder opcClientRequestId(String opcClientRequestId)
Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.- Parameters:
opcClientRequestId
- the value to set- Returns:
- this builder
-
opcRequestId
public GetBucketResponse.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, provide this request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder
-
eTag
public GetBucketResponse.Builder eTag(String eTag)
The current entity tag (ETag) for the bucket.- Parameters:
eTag
- the value to set- Returns:
- this builder
-
bucket
public GetBucketResponse.Builder bucket(Bucket bucket)
The returned Bucket instance, or null ifGetBucketResponse.isNotModified()
is true.- Parameters:
bucket
- the value to set- Returns:
- this builder
-
isNotModified
public GetBucketResponse.Builder isNotModified(boolean isNotModified)
Flag to indicate whether or not the object was modified.If this is true, the getter for the object itself will return null. Callers should check this if they specified one of the request params that might result in a conditional response (like ‘if-match’/‘if-none-match’).
- Specified by:
isNotModified
in interfaceBmcResponse.Builder<GetBucketResponse>
- Parameters:
true
- if the object was not modified
-
copy
public GetBucketResponse.Builder copy(GetBucketResponse o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcResponse.Builder<GetBucketResponse>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public GetBucketResponse build()
Build the response object.- Specified by:
build
in interfaceBmcResponse.Builder<GetBucketResponse>
- Returns:
- the response object
-
-