Class BitbucketWebhookRequest.Builder
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.model.BitbucketWebhookRequest.Builder
-
- Enclosing class:
- BitbucketWebhookRequest
public static final class BitbucketWebhookRequest.Builder extends Object
A builder to provide fluent way of building webhook register request.
-
-
Constructor Summary
Constructors Constructor Description Builder(Collection<String> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketWebhookRequest
build()
BitbucketWebhookRequest.Builder
name(String name)
BitbucketWebhookRequest.Builder
withCallbackTo(String url)
BitbucketWebhookRequest.Builder
withIsActive(boolean isActive)
-
-
-
Constructor Detail
-
Builder
public Builder(Collection<String> events)
-
-
Method Detail
-
build
public BitbucketWebhookRequest build()
-
withIsActive
public BitbucketWebhookRequest.Builder withIsActive(boolean isActive)
-
name
public BitbucketWebhookRequest.Builder name(String name)
-
withCallbackTo
public BitbucketWebhookRequest.Builder withCallbackTo(String url)
-
-