Interface GetBucketCorsResponse.Builder

    • Method Detail

      • corsRules

        GetBucketCorsResponse.Builder corsRules​(Collection<CORSRule> corsRules)

        A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.

        Parameters:
        corsRules - A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • corsRules

        GetBucketCorsResponse.Builder corsRules​(CORSRule... corsRules)

        A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.

        Parameters:
        corsRules - A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • corsRules

        GetBucketCorsResponse.Builder corsRules​(Consumer<CORSRule.Builder>... corsRules)

        A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #corsRules(List).

        Parameters:
        corsRules - a consumer that will call methods on CORSRule.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #corsRules(java.util.Collection)