public PutWebhookRequest withWebhook(WebhookDefinition webhook) {
        setWebhook(webhook);
        return this;
    }
<p>
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the
action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the
pipeline and action it targets so that you can easily recognize what it's used for later.
</p>

@param webhook
       The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name,
       and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook
       after the pipeline and action it targets so that you can easily recognize what it's used for later.
@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/PutWebhookRequest.java