Interface PutCorsPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutCorsPolicyRequest.Builder,,PutCorsPolicyRequest> MediaStoreRequest.Builder,SdkBuilder<PutCorsPolicyRequest.Builder,,PutCorsPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutCorsPolicyRequest
public static interface PutCorsPolicyRequest.Builder
extends MediaStoreRequest.Builder, SdkPojo, CopyableBuilder<PutCorsPolicyRequest.Builder,PutCorsPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptioncontainerName(String containerName) The name of the container that you want to assign the CORS policy to.corsPolicy(Collection<CorsRule> corsPolicy) The CORS policy to apply to the container.corsPolicy(Consumer<CorsRule.Builder>... corsPolicy) The CORS policy to apply to the container.corsPolicy(CorsRule... corsPolicy) The CORS policy to apply to the container.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mediastore.model.MediaStoreRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
containerName
The name of the container that you want to assign the CORS policy to.
- Parameters:
containerName- The name of the container that you want to assign the CORS policy to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corsPolicy
The CORS policy to apply to the container.
- Parameters:
corsPolicy- The CORS policy to apply to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corsPolicy
The CORS policy to apply to the container.
- Parameters:
corsPolicy- The CORS policy to apply to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corsPolicy
The CORS policy to apply to the container.
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 tocorsPolicy(List<CorsRule>).- Parameters:
corsPolicy- 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:
-
overrideConfiguration
PutCorsPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutCorsPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-