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