Interface HarnessHookTarget.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HarnessHookTarget.Builder,,HarnessHookTarget> SdkBuilder<HarnessHookTarget.Builder,,HarnessHookTarget> SdkPojo
- Enclosing class:
HarnessHookTarget
-
Method Summary
Modifier and TypeMethodDescriptiondefault HarnessHookTarget.BuildereventBridge(Consumer<HarnessHookEventBridgeTarget.Builder> eventBridge) An Amazon EventBridge hook target that sends the hook event without waiting for a response.eventBridge(HarnessHookEventBridgeTarget eventBridge) An Amazon EventBridge hook target that sends the hook event without waiting for a response.default HarnessHookTarget.BuilderA Lambda hook target that invokes an AWS Lambda function synchronously and waits for its response.lambda(HarnessHookLambdaTarget lambda) A Lambda hook target that invokes an AWS Lambda function synchronously and waits for its response.default HarnessHookTarget.BuilderAn Amazon SNS hook target that publishes the hook event without waiting for a response.sns(HarnessHookSnsTarget sns) An Amazon SNS hook target that publishes the hook event without waiting for a response.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
lambda
A Lambda hook target that invokes an AWS Lambda function synchronously and waits for its response.
- Parameters:
lambda- A Lambda hook target that invokes an AWS Lambda function synchronously and waits for its response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambda
A Lambda hook target that invokes an AWS Lambda function synchronously and waits for its response.
This is a convenience method that creates an instance of theHarnessHookLambdaTarget.Builderavoiding the need to create one manually viaHarnessHookLambdaTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolambda(HarnessHookLambdaTarget).- Parameters:
lambda- a consumer that will call methods onHarnessHookLambdaTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sns
An Amazon SNS hook target that publishes the hook event without waiting for a response.
- Parameters:
sns- An Amazon SNS hook target that publishes the hook event without waiting for a response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sns
An Amazon SNS hook target that publishes the hook event without waiting for a response.
This is a convenience method that creates an instance of theHarnessHookSnsTarget.Builderavoiding the need to create one manually viaHarnessHookSnsTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosns(HarnessHookSnsTarget).- Parameters:
sns- a consumer that will call methods onHarnessHookSnsTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventBridge
An Amazon EventBridge hook target that sends the hook event without waiting for a response.
- Parameters:
eventBridge- An Amazon EventBridge hook target that sends the hook event without waiting for a response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBridge
default HarnessHookTarget.Builder eventBridge(Consumer<HarnessHookEventBridgeTarget.Builder> eventBridge) An Amazon EventBridge hook target that sends the hook event without waiting for a response.
This is a convenience method that creates an instance of theHarnessHookEventBridgeTarget.Builderavoiding the need to create one manually viaHarnessHookEventBridgeTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventBridge(HarnessHookEventBridgeTarget).- Parameters:
eventBridge- a consumer that will call methods onHarnessHookEventBridgeTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-