Class CfnResponseHeadersPolicy.RemoveHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.RemoveHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy.RemoveHeaderProperty>
- Enclosing interface:
CfnResponseHeadersPolicy.RemoveHeaderProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.RemoveHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.RemoveHeaderProperty>
A builder for
CfnResponseHeadersPolicy.RemoveHeaderProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResponseHeadersPolicy.RemoveHeaderProperty.getHeader()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
header
@Stability(Stable) public CfnResponseHeadersPolicy.RemoveHeaderProperty.Builder header(String header) Sets the value ofCfnResponseHeadersPolicy.RemoveHeaderProperty.getHeader()
- Parameters:
header
- The HTTP header name. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy.RemoveHeaderProperty>
- Returns:
- a new instance of
CfnResponseHeadersPolicy.RemoveHeaderProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-