public static interface GetCorsPolicyResponse.Builder extends MediaStoreResponse.Builder, SdkPojo, CopyableBuilder<GetCorsPolicyResponse.Builder,GetCorsPolicyResponse>
| Modifier and Type | Method and Description |
|---|---|
GetCorsPolicyResponse.Builder |
corsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy assigned to the container.
|
GetCorsPolicyResponse.Builder |
corsPolicy(Consumer<CorsRule.Builder>... corsPolicy)
The CORS policy assigned to the container.
|
GetCorsPolicyResponse.Builder |
corsPolicy(CorsRule... corsPolicy)
The CORS policy assigned to the container.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetCorsPolicyResponse.Builder corsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy assigned to the container.
corsPolicy - The CORS policy assigned to the container.GetCorsPolicyResponse.Builder corsPolicy(CorsRule... corsPolicy)
The CORS policy assigned to the container.
corsPolicy - The CORS policy assigned to the container.GetCorsPolicyResponse.Builder corsPolicy(Consumer<CorsRule.Builder>... corsPolicy)
The CORS policy assigned to the container.
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 #corsPolicy(List.
corsPolicy - a consumer that will call methods on
CorsRule.Builder#corsPolicy(java.util.Collection) Copyright © 2023. All rights reserved.