Interface GetCorsPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCorsPolicyResponse.Builder,,GetCorsPolicyResponse> MediaStoreResponse.Builder,SdkBuilder<GetCorsPolicyResponse.Builder,,GetCorsPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCorsPolicyResponse
public static interface GetCorsPolicyResponse.Builder
extends MediaStoreResponse.Builder, SdkPojo, CopyableBuilder<GetCorsPolicyResponse.Builder,GetCorsPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncorsPolicy(Collection<CorsRule> corsPolicy) The CORS policy assigned to the container.corsPolicy(Consumer<CorsRule.Builder>... corsPolicy) The CORS policy assigned to the container.corsPolicy(CorsRule... corsPolicy) The CORS policy assigned to the container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mediastore.model.MediaStoreResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
corsPolicy
The CORS policy assigned to the container.
- Parameters:
corsPolicy- The CORS policy assigned to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corsPolicy
The CORS policy assigned to the container.
- Parameters:
corsPolicy- The CORS policy assigned to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corsPolicy
The CORS policy assigned 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:
-