Interface GetBucketCorsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetBucketCorsResponse.Builder,,GetBucketCorsResponse> S3Response.Builder,SdkBuilder<GetBucketCorsResponse.Builder,,GetBucketCorsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetBucketCorsResponse
@Mutable
@NotThreadSafe
public static interface GetBucketCorsResponse.Builder
extends S3Response.Builder, SdkPojo, CopyableBuilder<GetBucketCorsResponse.Builder,GetBucketCorsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncorsRules(Collection<CORSRule> corsRules) A set of origins and methods (cross-origin access that you want to allow).corsRules(Consumer<CORSRule.Builder>... corsRules) A set of origins and methods (cross-origin access that you want to allow).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.services.s3.model.S3Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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 tocorsRules(List<CORSRule>).- 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:
-