Interface BucketCorsConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BucketCorsConfig.Builder,,BucketCorsConfig> SdkBuilder<BucketCorsConfig.Builder,,BucketCorsConfig> SdkPojo
- Enclosing class:
BucketCorsConfig
@Mutable
@NotThreadSafe
public static interface BucketCorsConfig.Builder
extends SdkPojo, CopyableBuilder<BucketCorsConfig.Builder,BucketCorsConfig>
-
Method Summary
Modifier and TypeMethodDescriptionrules(Collection<BucketCorsRule> rules) A set of origins and methods (cross-origin access that you want to allow).rules(Consumer<BucketCorsRule.Builder>... rules) A set of origins and methods (cross-origin access that you want to allow).rules(BucketCorsRule... rules) A set of origins and methods (cross-origin access that you want to allow).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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 theBucketCorsRule.Builderavoiding the need to create one manually viaBucketCorsRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torules(List<BucketCorsRule>).- Parameters:
rules- a consumer that will call methods onBucketCorsRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-