Interface BucketCorsConfig.Builder

  • Method Details

    • rules

      A set of origins and methods (cross-origin access that you want to allow). You can add up to 20 rules to the configuration. The total size is limited to 64 KB.

      Parameters:
      rules - A set of origins and methods (cross-origin access that you want to allow). You can add up to 20 rules to the configuration. The total size is limited to 64 KB.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      A set of origins and methods (cross-origin access that you want to allow). You can add up to 20 rules to the configuration. The total size is limited to 64 KB.

      Parameters:
      rules - A set of origins and methods (cross-origin access that you want to allow). You can add up to 20 rules to the configuration. The total size is limited to 64 KB.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      A set of origins and methods (cross-origin access that you want to allow). You can add up to 20 rules to the configuration. The total size is limited to 64 KB.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rules(List<BucketCorsRule>).

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