Class CfnEventInvokeConfig.DestinationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnEventInvokeConfig.DestinationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventInvokeConfig.DestinationConfigProperty>
- Enclosing interface:
CfnEventInvokeConfig.DestinationConfigProperty
@Stability(Stable)
public static final class CfnEventInvokeConfig.DestinationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventInvokeConfig.DestinationConfigProperty>
A builder for
CfnEventInvokeConfig.DestinationConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.onFailure
(IResolvable onFailure) Sets the value ofCfnEventInvokeConfig.DestinationConfigProperty.getOnFailure()
onFailure
(CfnEventInvokeConfig.OnFailureProperty onFailure) Sets the value ofCfnEventInvokeConfig.DestinationConfigProperty.getOnFailure()
onSuccess
(IResolvable onSuccess) Sets the value ofCfnEventInvokeConfig.DestinationConfigProperty.getOnSuccess()
onSuccess
(CfnEventInvokeConfig.OnSuccessProperty onSuccess) Sets the value ofCfnEventInvokeConfig.DestinationConfigProperty.getOnSuccess()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onFailure
@Stability(Stable) public CfnEventInvokeConfig.DestinationConfigProperty.Builder onFailure(IResolvable onFailure) Sets the value ofCfnEventInvokeConfig.DestinationConfigProperty.getOnFailure()
- Parameters:
onFailure
- The destination configuration for failed invocations.- Returns:
this
-
onFailure
@Stability(Stable) public CfnEventInvokeConfig.DestinationConfigProperty.Builder onFailure(CfnEventInvokeConfig.OnFailureProperty onFailure) Sets the value ofCfnEventInvokeConfig.DestinationConfigProperty.getOnFailure()
- Parameters:
onFailure
- The destination configuration for failed invocations.- Returns:
this
-
onSuccess
@Stability(Stable) public CfnEventInvokeConfig.DestinationConfigProperty.Builder onSuccess(IResolvable onSuccess) Sets the value ofCfnEventInvokeConfig.DestinationConfigProperty.getOnSuccess()
- Parameters:
onSuccess
- The destination configuration for successful invocations.- Returns:
this
-
onSuccess
@Stability(Stable) public CfnEventInvokeConfig.DestinationConfigProperty.Builder onSuccess(CfnEventInvokeConfig.OnSuccessProperty onSuccess) Sets the value ofCfnEventInvokeConfig.DestinationConfigProperty.getOnSuccess()
- Parameters:
onSuccess
- The destination configuration for successful invocations.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventInvokeConfig.DestinationConfigProperty>
- Returns:
- a new instance of
CfnEventInvokeConfig.DestinationConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-