Class CustomResponseHeader.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.CustomResponseHeader.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomResponseHeader>
- Enclosing interface:
- CustomResponseHeader
@Stability(Experimental)
public static final class CustomResponseHeader.Builder
extends Object
implements software.amazon.jsii.Builder<CustomResponseHeader>
A builder for
CustomResponseHeader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCustomResponseHeader.getHeaders()
Sets the value ofCustomResponseHeader.getPattern()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headers
Sets the value ofCustomResponseHeader.getHeaders()
- Parameters:
headers
- The map of custom headers to be applied. This parameter is required.- Returns:
this
-
pattern
Sets the value ofCustomResponseHeader.getPattern()
- Parameters:
pattern
- These custom headers will be applied to all URL file paths that match this pattern. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomResponseHeader>
- Returns:
- a new instance of
CustomResponseHeader
- Throws:
NullPointerException
- if any required attribute was not provided
-