Class CfnFunctionPropsMixin.HooksProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sam.CfnFunctionPropsMixin.HooksProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionPropsMixin.HooksProperty>
- Enclosing interface:
CfnFunctionPropsMixin.HooksProperty
@Stability(Stable)
public static final class CfnFunctionPropsMixin.HooksProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionPropsMixin.HooksProperty>
A builder for
CfnFunctionPropsMixin.HooksProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.postTraffic(String postTraffic) Sets the value ofCfnFunctionPropsMixin.HooksProperty.getPostTraffic()preTraffic(String preTraffic) Sets the value ofCfnFunctionPropsMixin.HooksProperty.getPreTraffic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
postTraffic
@Stability(Stable) public CfnFunctionPropsMixin.HooksProperty.Builder postTraffic(String postTraffic) Sets the value ofCfnFunctionPropsMixin.HooksProperty.getPostTraffic()- Parameters:
postTraffic- the value to be set.- Returns:
this
-
preTraffic
Sets the value ofCfnFunctionPropsMixin.HooksProperty.getPreTraffic()- Parameters:
preTraffic- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionPropsMixin.HooksProperty>- Returns:
- a new instance of
CfnFunctionPropsMixin.HooksProperty - Throws:
NullPointerException- if any required attribute was not provided
-