Class CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty>
- Enclosing interface:
CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty>
A builder for
CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.getHeader()Sets the value ofCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.getOverride()override(IResolvable override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.getOverride()Sets the value ofCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
header
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.Builder header(String header) Sets the value ofCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.getHeader()- Parameters:
header- The HTTP response header name.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.Builder override(Boolean override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.Builder override(IResolvable override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.- Returns:
this
-
value
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.Builder value(String value) Sets the value ofCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.getValue()- Parameters:
value- The value for the HTTP response header.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty>- Returns:
- a new instance of
CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty - Throws:
NullPointerException- if any required attribute was not provided
-