Class EventBridgeSchedulerTargetProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EventBridgeSchedulerTargetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBridgeSchedulerTargetProps>
- Enclosing interface:
EventBridgeSchedulerTargetProps
@Stability(Stable)
public static final class EventBridgeSchedulerTargetProps.Builder
extends Object
implements software.amazon.jsii.Builder<EventBridgeSchedulerTargetProps>
A builder for
EventBridgeSchedulerTargetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEventBridgeSchedulerTargetProps.getArn()build()Builds the configured instance.deadLetterQueue(IQueue deadLetterQueue) Sets the value ofEventBridgeSchedulerTargetProps.getDeadLetterQueue()Sets the value ofEventBridgeSchedulerTargetProps.getInput()retryPolicy(RetryPolicy retryPolicy) Sets the value ofEventBridgeSchedulerTargetProps.getRetryPolicy()Sets the value ofEventBridgeSchedulerTargetProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofEventBridgeSchedulerTargetProps.getArn()- Parameters:
arn- The Amazon Resource Name (ARN) of the target. This parameter is required.- Returns:
this
-
role
Sets the value ofEventBridgeSchedulerTargetProps.getRole()- Parameters:
role- The IAM role that EventBridge Scheduler will use for this target when the schedule is invoked. This parameter is required.- Returns:
this
-
deadLetterQueue
@Stability(Stable) public EventBridgeSchedulerTargetProps.Builder deadLetterQueue(IQueue deadLetterQueue) Sets the value ofEventBridgeSchedulerTargetProps.getDeadLetterQueue()- Parameters:
deadLetterQueue- Dead letter queue for failed events.- Returns:
this
-
input
Sets the value ofEventBridgeSchedulerTargetProps.getInput()- Parameters:
input- The input to the target.- Returns:
this
-
retryPolicy
@Stability(Stable) public EventBridgeSchedulerTargetProps.Builder retryPolicy(RetryPolicy retryPolicy) Sets the value ofEventBridgeSchedulerTargetProps.getRetryPolicy()- Parameters:
retryPolicy- The retry policy settings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventBridgeSchedulerTargetProps>- Returns:
- a new instance of
EventBridgeSchedulerTargetProps - Throws:
NullPointerException- if any required attribute was not provided
-