public static interface GetBucketCorsResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<GetBucketCorsResponse.Builder,GetBucketCorsResponse>
| Modifier and Type | Method and Description |
|---|---|
GetBucketCorsResponse.Builder |
corsRules(Collection<CORSRule> corsRules)
A set of origins and methods (cross-origin access that you want to allow).
|
GetBucketCorsResponse.Builder |
corsRules(Consumer<CORSRule.Builder>... corsRules)
A set of origins and methods (cross-origin access that you want to allow).
|
GetBucketCorsResponse.Builder |
corsRules(CORSRule... corsRules)
A set of origins and methods (cross-origin access that you want to allow).
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetBucketCorsResponse.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.
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.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.
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.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 theCORSRule.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.
corsRules - a consumer that will call methods on CORSRule.Builder#corsRules(java.util.Collection) Copyright © 2022. All rights reserved.