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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetCorsPolicyResponse.BuildercorsPolicy(Collection<CorsRule> corsPolicy)The CORS policy assigned to the container.GetCorsPolicyResponse.BuildercorsPolicy(Consumer<CorsRule.Builder>... corsPolicy)The CORS policy assigned to the container.GetCorsPolicyResponse.BuildercorsPolicy(CorsRule... corsPolicy)The CORS policy assigned to the container.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.mediastore.model.MediaStoreResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
corsPolicy
GetCorsPolicyResponse.Builder corsPolicy(Collection<CorsRule> 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
GetCorsPolicyResponse.Builder corsPolicy(CorsRule... 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
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.Builderavoiding the need to create one manually viaCorsRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#corsPolicy(List.) - 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:
#corsPolicy(java.util.Collection)
-
-