Class CfnFunctionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnFunctionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionMixinProps>
- Enclosing interface:
CfnFunctionMixinProps
@Stability(Stable)
public static final class CfnFunctionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionMixinProps>
A builder for
CfnFunctionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoPublish(Boolean autoPublish) Sets the value ofCfnFunctionMixinProps.getAutoPublish()autoPublish(IResolvable autoPublish) Sets the value ofCfnFunctionMixinProps.getAutoPublish()build()Builds the configured instance.functionCode(String functionCode) Sets the value ofCfnFunctionMixinProps.getFunctionCode()functionConfig(CfnFunctionPropsMixin.FunctionConfigProperty functionConfig) Sets the value ofCfnFunctionMixinProps.getFunctionConfig()functionConfig(IResolvable functionConfig) Sets the value ofCfnFunctionMixinProps.getFunctionConfig()functionMetadata(CfnFunctionPropsMixin.FunctionMetadataProperty functionMetadata) Sets the value ofCfnFunctionMixinProps.getFunctionMetadata()functionMetadata(IResolvable functionMetadata) Sets the value ofCfnFunctionMixinProps.getFunctionMetadata()Sets the value ofCfnFunctionMixinProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoPublish
Sets the value ofCfnFunctionMixinProps.getAutoPublish()- Parameters:
autoPublish- A flag that determines whether to automatically publish the function to theLIVEstage when it’s created. To automatically publish to theLIVEstage, set this property totrue.- Returns:
this
-
autoPublish
Sets the value ofCfnFunctionMixinProps.getAutoPublish()- Parameters:
autoPublish- A flag that determines whether to automatically publish the function to theLIVEstage when it’s created. To automatically publish to theLIVEstage, set this property totrue.- Returns:
this
-
functionCode
Sets the value ofCfnFunctionMixinProps.getFunctionCode()- Parameters:
functionCode- The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .- Returns:
this
-
functionConfig
Sets the value ofCfnFunctionMixinProps.getFunctionConfig()- Parameters:
functionConfig- Contains configuration information about a CloudFront function.- Returns:
this
-
functionConfig
@Stability(Stable) public CfnFunctionMixinProps.Builder functionConfig(CfnFunctionPropsMixin.FunctionConfigProperty functionConfig) Sets the value ofCfnFunctionMixinProps.getFunctionConfig()- Parameters:
functionConfig- Contains configuration information about a CloudFront function.- Returns:
this
-
functionMetadata
@Stability(Stable) public CfnFunctionMixinProps.Builder functionMetadata(IResolvable functionMetadata) Sets the value ofCfnFunctionMixinProps.getFunctionMetadata()- Parameters:
functionMetadata- Contains metadata about a CloudFront function.- Returns:
this
-
functionMetadata
@Stability(Stable) public CfnFunctionMixinProps.Builder functionMetadata(CfnFunctionPropsMixin.FunctionMetadataProperty functionMetadata) Sets the value ofCfnFunctionMixinProps.getFunctionMetadata()- Parameters:
functionMetadata- Contains metadata about a CloudFront function.- Returns:
this
-
name
Sets the value ofCfnFunctionMixinProps.getName()- Parameters:
name- A name to identify the function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionMixinProps>- Returns:
- a new instance of
CfnFunctionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-