Class GetBucket.Response
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonParser
-
- io.helidon.integrations.oci.connect.OciResponseParser
-
- io.helidon.integrations.oci.objectstorage.GetBucket.Response
-
- Enclosing class:
- GetBucket
public static class GetBucket.Response extends OciResponseParser
Response object parsed from JSON returned by theRestApi.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intapproximateCount()The approximate number of objects in the bucket.longapproximateSize()The approximate total size in bytes of all objects in the bucket.StringbucketId()Bucket OCID.StringcompartmentId()The compartment ID in which the bucket is authorized.Instantcreated()The date and time the bucket was created.StringcreatedBy()The OCID of the user who created the bucket.Stringname()The name of the bucket.Stringnamespace()The Object Storage namespace in which the bucket resides.-
Methods inherited from class io.helidon.integrations.oci.connect.OciResponseParser
getInstant, toInstant
-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonParser
isPresent, stringValue, toBoolean, toBytesBase64, toDouble, toInstant, toInt, toList, toLong, toMap, toObject, toString
-
-
-
-
Method Detail
-
bucketId
public String bucketId()
Bucket OCID.- Returns:
- bucket id
-
namespace
public String namespace()
The Object Storage namespace in which the bucket resides.- Returns:
- namespace
-
created
public Instant created()
The date and time the bucket was created.- Returns:
- created instant
-
name
public String name()
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1.- Returns:
- bucket name
-
compartmentId
public String compartmentId()
The compartment ID in which the bucket is authorized.- Returns:
- compartment ID
-
createdBy
public String createdBy()
The OCID of the user who created the bucket.- Returns:
- user OCID
-
approximateCount
public int approximateCount()
The approximate number of objects in the bucket. Count statistics are reported periodically. You will see a lag between what is displayed and the actual object count.- Returns:
- count on
-1if not available
-
approximateSize
public long approximateSize()
The approximate total size in bytes of all objects in the bucket. Size statistics are reported periodically. You will see a lag between what is displayed and the actual size of the bucket.- Returns:
- size or
-1if not available
-
-