public UpdateWebhookRequest withRotateSecret(Boolean rotateSecret) {
        setRotateSecret(rotateSecret);
        return this;
    }
<p>
A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you
use Bitbucket for your repository, <code>rotateSecret</code> is ignored.
</p>

@param rotateSecret
       A boolean value that specifies whether the associated GitHub repository's secret token should be updated.
       If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/UpdateWebhookRequest.java