public static interface CORSConfiguration.Builder extends SdkPojo, CopyableBuilder<CORSConfiguration.Builder,CORSConfiguration>
Modifier and Type | Method and Description |
---|---|
CORSConfiguration.Builder |
corsRules(Collection<CORSRule> corsRules)
Sets the value of the CORSRules property for this object.
|
CORSConfiguration.Builder |
corsRules(Consumer<CORSRule.Builder>... corsRules)
Sets the value of the CORSRules property for this object.
|
CORSConfiguration.Builder |
corsRules(CORSRule... corsRules)
Sets the value of the CORSRules property for this object.
|
copy
applyMutation, build
CORSConfiguration.Builder corsRules(Collection<CORSRule> corsRules)
corsRules
- The new value for the CORSRules property for this object.CORSConfiguration.Builder corsRules(CORSRule... corsRules)
corsRules
- The new value for the CORSRules property for this object.CORSConfiguration.Builder corsRules(Consumer<CORSRule.Builder>... corsRules)
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 #corsRules(List)
.corsRules
- a consumer that will call methods on List.Builder
#corsRules(List)
Copyright © 2018. All rights reserved.