Enclosing class:
GetBucket

public static class GetBucket.Response extends OciResponseParser
Response object parsed from JSON returned by the RestApi.
  • Method Details

    • 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 -1 if 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 -1 if not available