Interface CORSConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CORSConfiguration.Builder,CORSConfiguration>,SdkBuilder<CORSConfiguration.Builder,CORSConfiguration>,SdkPojo
- Enclosing class:
- CORSConfiguration
@Mutable @NotThreadSafe public static interface CORSConfiguration.Builder extends SdkPojo, CopyableBuilder<CORSConfiguration.Builder,CORSConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CORSConfiguration.BuildercorsRules(Collection<CORSRule> corsRules)A set of origins and methods (cross-origin access that you want to allow).CORSConfiguration.BuildercorsRules(Consumer<CORSRule.Builder>... corsRules)A set of origins and methods (cross-origin access that you want to allow).CORSConfiguration.BuildercorsRules(CORSRule... corsRules)A set of origins and methods (cross-origin access that you want to allow).-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
corsRules
CORSConfiguration.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
CORSConfiguration.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
CORSConfiguration.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 theCORSRule.Builderavoiding the need to create one manually viaCORSRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#corsRules(List.) - Parameters:
corsRules- a consumer that will call methods onCORSRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#corsRules(java.util.Collection)
-
-