public WebhookDefinition withTargetAction(String targetAction) {
        setTargetAction(targetAction);
        return this;
    }
<p>
The name of the action in a pipeline you want to connect to the webhook. The action must be from the source
(first) stage of the pipeline.
</p>

@param targetAction
       The name of the action in a pipeline you want to connect to the webhook. The action must be from the
       source (first) stage of the pipeline.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/WebhookDefinition.java