Class PostWebhooks2Configuration

java.lang.Object
io.jenkins.plugins.bitbucket.webhook.moveworkforward.v2.PostWebhooks2Configuration
All Implemented Interfaces:
com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration, Describable<com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration>

public class PostWebhooks2Configuration extends Object implements com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration
  • Constructor Details

    • PostWebhooks2Configuration

      @DataBoundConstructor public PostWebhooks2Configuration(boolean manageHooks, @CheckForNull String credentialsId)
  • Method Details

    • isManageHooks

      public final boolean isManageHooks()
      Returns true if and only if Jenkins is supposed to auto-manage hooks for this end-point.
      Specified by:
      isManageHooks in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration
      Returns:
      true if and only if Jenkins is supposed to auto-manage hooks for this end-point.
    • getCredentialsId

      @CheckForNull public final String getCredentialsId()
      Returns the IdCredentials.getId() of the credentials to use for auto-management of hooks.
      Specified by:
      getCredentialsId in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration
      Returns:
      the IdCredentials.getId() of the credentials to use for auto-management of hooks.
    • getEndpointJenkinsRootURL

      public String getEndpointJenkinsRootURL()
      Specified by:
      getEndpointJenkinsRootURL in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration
    • setEndpointJenkinsRootURL

      @DataBoundSetter public void setEndpointJenkinsRootURL(@CheckForNull String endpointJenkinsRootURL)
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration
    • getId

      @NonNull public String getId()
      Specified by:
      getId in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration
    • getManager

      public Class<? extends com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager> getManager()
      Specified by:
      getManager in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration