Interface UpdateBucketRequest.Builder

    • Method Detail

      • bucketName

        UpdateBucketRequest.Builder bucketName​(String bucketName)

        The name of the bucket to update.

        Parameters:
        bucketName - The name of the bucket to update.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accessRules

        UpdateBucketRequest.Builder accessRules​(AccessRules accessRules)

        An object that sets the public accessibility of objects in the specified bucket.

        Parameters:
        accessRules - An object that sets the public accessibility of objects in the specified bucket.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • versioning

        UpdateBucketRequest.Builder versioning​(String versioning)

        Specifies whether to enable or suspend versioning of objects in the bucket.

        The following options can be specified:

        • Enabled - Enables versioning of objects in the specified bucket.

        • Suspended - Suspends versioning of objects in the specified bucket. Existing object versions are retained.

        Parameters:
        versioning - Specifies whether to enable or suspend versioning of objects in the bucket.

        The following options can be specified:

        • Enabled - Enables versioning of objects in the specified bucket.

        • Suspended - Suspends versioning of objects in the specified bucket. Existing object versions are retained.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • readonlyAccessAccounts

        UpdateBucketRequest.Builder readonlyAccessAccounts​(Collection<String> readonlyAccessAccounts)

        An array of strings to specify the Amazon Web Services account IDs that can access the bucket.

        You can give a maximum of 10 Amazon Web Services accounts access to a bucket.

        Parameters:
        readonlyAccessAccounts - An array of strings to specify the Amazon Web Services account IDs that can access the bucket.

        You can give a maximum of 10 Amazon Web Services accounts access to a bucket.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • readonlyAccessAccounts

        UpdateBucketRequest.Builder readonlyAccessAccounts​(String... readonlyAccessAccounts)

        An array of strings to specify the Amazon Web Services account IDs that can access the bucket.

        You can give a maximum of 10 Amazon Web Services accounts access to a bucket.

        Parameters:
        readonlyAccessAccounts - An array of strings to specify the Amazon Web Services account IDs that can access the bucket.

        You can give a maximum of 10 Amazon Web Services accounts access to a bucket.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accessLogConfig

        UpdateBucketRequest.Builder accessLogConfig​(BucketAccessLogConfig accessLogConfig)

        An object that describes the access log configuration for the bucket.

        Parameters:
        accessLogConfig - An object that describes the access log configuration for the bucket.
        Returns:
        Returns a reference to this object so that method calls can be chained together.