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