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)
Sets the value of the CorsPolicy property for this object.
|
GetCorsPolicyResponse.Builder |
corsPolicy(Consumer<CorsRule.Builder>... corsPolicy)
Sets the value of the CorsPolicy property for this object.
|
GetCorsPolicyResponse.Builder |
corsPolicy(CorsRule... corsPolicy)
Sets the value of the CorsPolicy property for this object.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
GetCorsPolicyResponse.Builder corsPolicy(Collection<CorsRule> corsPolicy)
corsPolicy
- The new value for the CorsPolicy property for this object.GetCorsPolicyResponse.Builder corsPolicy(CorsRule... corsPolicy)
corsPolicy
- The new value for the CorsPolicy property for this object.GetCorsPolicyResponse.Builder corsPolicy(Consumer<CorsRule.Builder>... corsPolicy)
List.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)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.