Class CfnEventInvokeConfigPropsMixin.DestinationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnEventInvokeConfigPropsMixin.DestinationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventInvokeConfigPropsMixin.DestinationConfigProperty>
- Enclosing interface:
CfnEventInvokeConfigPropsMixin.DestinationConfigProperty
@Stability(Stable)
public static final class CfnEventInvokeConfigPropsMixin.DestinationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventInvokeConfigPropsMixin.DestinationConfigProperty>
A builder for
CfnEventInvokeConfigPropsMixin.DestinationConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventInvokeConfigPropsMixin.DestinationConfigProperty.getOnFailure()onFailure(IResolvable onFailure) Sets the value ofCfnEventInvokeConfigPropsMixin.DestinationConfigProperty.getOnFailure()Sets the value ofCfnEventInvokeConfigPropsMixin.DestinationConfigProperty.getOnSuccess()onSuccess(IResolvable onSuccess) Sets the value ofCfnEventInvokeConfigPropsMixin.DestinationConfigProperty.getOnSuccess()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onFailure
@Stability(Stable) public CfnEventInvokeConfigPropsMixin.DestinationConfigProperty.Builder onFailure(IResolvable onFailure) Sets the value ofCfnEventInvokeConfigPropsMixin.DestinationConfigProperty.getOnFailure()- Parameters:
onFailure- The destination configuration for failed invocations.When using an Amazon SQS queue as a destination, FIFO queues cannot be used.
- Returns:
this
-
onFailure
@Stability(Stable) public CfnEventInvokeConfigPropsMixin.DestinationConfigProperty.Builder onFailure(CfnEventInvokeConfigPropsMixin.OnFailureProperty onFailure) Sets the value ofCfnEventInvokeConfigPropsMixin.DestinationConfigProperty.getOnFailure()- Parameters:
onFailure- The destination configuration for failed invocations.When using an Amazon SQS queue as a destination, FIFO queues cannot be used.
- Returns:
this
-
onSuccess
@Stability(Stable) public CfnEventInvokeConfigPropsMixin.DestinationConfigProperty.Builder onSuccess(IResolvable onSuccess) Sets the value ofCfnEventInvokeConfigPropsMixin.DestinationConfigProperty.getOnSuccess()- Parameters:
onSuccess- The destination configuration for successful invocations.When using an Amazon SQS queue as a destination, FIFO queues cannot be used.
- Returns:
this
-
onSuccess
@Stability(Stable) public CfnEventInvokeConfigPropsMixin.DestinationConfigProperty.Builder onSuccess(CfnEventInvokeConfigPropsMixin.OnSuccessProperty onSuccess) Sets the value ofCfnEventInvokeConfigPropsMixin.DestinationConfigProperty.getOnSuccess()- Parameters:
onSuccess- The destination configuration for successful invocations.When using an Amazon SQS queue as a destination, FIFO queues cannot be used.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventInvokeConfigPropsMixin.DestinationConfigProperty>- Returns:
- a new instance of
CfnEventInvokeConfigPropsMixin.DestinationConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-