Interface UpdateBucketRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<UpdateBucketRequest.Builder,UpdateBucketRequest>, LightsailRequest.Builder, SdkBuilder<UpdateBucketRequest.Builder,UpdateBucketRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
UpdateBucketRequest

public static interface UpdateBucketRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<UpdateBucketRequest.Builder,UpdateBucketRequest>
  • Method Details

    • 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.
    • accessRules

      default UpdateBucketRequest.Builder accessRules(Consumer<AccessRules.Builder> accessRules)

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

      This is a convenience method that creates an instance of the AccessRules.Builder avoiding the need to create one manually via AccessRules.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to accessRules(AccessRules).

      Parameters:
      accessRules - a consumer that will call methods on AccessRules.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • accessLogConfig

      default UpdateBucketRequest.Builder accessLogConfig(Consumer<BucketAccessLogConfig.Builder> accessLogConfig)

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

      This is a convenience method that creates an instance of the BucketAccessLogConfig.Builder avoiding the need to create one manually via BucketAccessLogConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to accessLogConfig(BucketAccessLogConfig).

      Parameters:
      accessLogConfig - a consumer that will call methods on BucketAccessLogConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      UpdateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.