Class ObjectRequest<T extends ObjectRequest<T>>
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonBuilder<T>
-
- io.helidon.integrations.common.rest.ApiJsonRequest<T>
-
- io.helidon.integrations.oci.connect.OciRequestBase<T>
-
- io.helidon.integrations.oci.objectstorage.ObjectRequest<T>
-
- Type Parameters:
T- type of the subclass
- All Implemented Interfaces:
ApiRequest<T>
- Direct Known Subclasses:
DeleteObject.Request,GetObject.Request,PutObject.Request,RenameObject.Request
public abstract class ObjectRequest<T extends ObjectRequest<T>> extends OciRequestBase<T>
Object store base request class.
-
-
Constructor Summary
Constructors Constructor Description ObjectRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbucket()Name of the bucket, required.Tbucket(String bucket)The name of the bucket.Optional<String>namespace()Namespace if configured on this request.Tnamespace(String namespace)The Object Storage namespace used for the request.StringobjectName()Object name, required.TobjectName(String objectName)The name of the object.-
Methods inherited from class io.helidon.integrations.oci.connect.OciRequestBase
add, endpoint, endpoint, hostFormat, hostPrefix, retryToken
-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequest
addHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaType
-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilder
add, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, preBuild, toJson
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.integrations.common.rest.ApiRequest
toJson
-
-
-
-
Method Detail
-
namespace
public T namespace(String namespace)
The Object Storage namespace used for the request. Override the default namespace (if one is configured).- Parameters:
namespace- namespace- Returns:
- updated request
-
bucket
public T bucket(String bucket)
The name of the bucket. Avoid entering confidential information. Required.- Parameters:
bucket- bucket name- Returns:
- updated requst
-
objectName
public T objectName(String objectName)
The name of the object. Avoid entering confidential information. Required.- Parameters:
objectName- name of the object- Returns:
- updated request
-
namespace
public Optional<String> namespace()
Namespace if configured on this request.- Returns:
- namespace or empty if not configured per request
-
bucket
public String bucket()
Name of the bucket, required.- Returns:
- bucket name
-
objectName
public String objectName()
Object name, required.- Returns:
- object name
-
-