public WebhookDefinition withTargetPipeline(String targetPipeline) {
        setTargetPipeline(targetPipeline);
        return this;
    }
<p>
The name of the pipeline you want to connect to the webhook.
</p>

@param targetPipeline
       The name of the pipeline you want to connect to the webhook.
@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