public static interface PutCorsPolicyRequest.Builder extends MediaStoreRequest.Builder, SdkPojo, CopyableBuilder<PutCorsPolicyRequest.Builder,PutCorsPolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
PutCorsPolicyRequest.Builder |
containerName(String containerName)
The name of the container that you want to assign the CORS policy to.
|
PutCorsPolicyRequest.Builder |
corsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy to apply to the container.
|
PutCorsPolicyRequest.Builder |
corsPolicy(Consumer<CorsRule.Builder>... corsPolicy)
The CORS policy to apply to the container.
|
PutCorsPolicyRequest.Builder |
corsPolicy(CorsRule... corsPolicy)
The CORS policy to apply to the container.
|
PutCorsPolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PutCorsPolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
buildoverrideConfigurationcopyapplyMutation, buildPutCorsPolicyRequest.Builder containerName(String containerName)
The name of the container that you want to assign the CORS policy to.
containerName - The name of the container that you want to assign the CORS policy to.PutCorsPolicyRequest.Builder corsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy to apply to the container.
corsPolicy - The CORS policy to apply to the container.PutCorsPolicyRequest.Builder corsPolicy(CorsRule... corsPolicy)
The CORS policy to apply to the container.
corsPolicy - The CORS policy to apply to the container.PutCorsPolicyRequest.Builder corsPolicy(Consumer<CorsRule.Builder>... corsPolicy)
The CORS policy to apply to the container.
This is a convenience that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #corsPolicy(List) .corsPolicy - a consumer that will call methods on List.Builder #corsPolicy(List) PutCorsPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderoverrideConfiguration - The override configuration.PutCorsPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.