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