Class BucketSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • namespace

        public BucketSummary.Builder namespace​(String namespace)
        The Object Storage namespace in which the bucket lives.
        Parameters:
        namespace - the value to set
        Returns:
        this builder
      • name

        public BucketSummary.Builder name​(String name)
        The name of the bucket.

        Avoid entering confidential information. Example: my-new-bucket1

        Parameters:
        name - the value to set
        Returns:
        this builder
      • compartmentId

        public BucketSummary.Builder compartmentId​(String compartmentId)
        The compartment ID in which the bucket is authorized.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • createdBy

        public BucketSummary.Builder createdBy​(String createdBy)
        The OCID of the user who created the bucket.
        Parameters:
        createdBy - the value to set
        Returns:
        this builder
      • timeCreated

        public BucketSummary.Builder timeCreated​(Date timeCreated)
        The date and time the bucket was created, as described in RFC 2616.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • etag

        public BucketSummary.Builder etag​(String etag)
        The entity tag (ETag) for the bucket.
        Parameters:
        etag - the value to set
        Returns:
        this builder
      • freeformTags

        public BucketSummary.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public BucketSummary.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • bucketScope

        public BucketSummary.Builder bucketScope​(Bucket.BucketScope bucketScope)
        The bucket scope determines weather the bucket name must be unique within the tenancy and region (essentially the namespace) or across all tenancies in the region.

        The bucket scope also determines if the bucket supports S3 virtual-hosted style URL’s or not.

        Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs to be unique within the tenancy and region. REGION: Supports both path-style and virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the region.

        Parameters:
        bucketScope - the value to set
        Returns:
        this builder