Class CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty>
- Enclosing interface:
CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.getItems()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
items
@Stability(Stable) public CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Builder items(List<String> items) Sets the value ofCfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.getItems()- Parameters:
items- The list of origins (domain names). This parameter is required. You can specify*to allow all origins.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty>- Returns:
- a new instance of
CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty - Throws:
NullPointerException- if any required attribute was not provided
-