Class PullRequestBuilder

    • Field Detail

      • value$id$java$lang$Integer

        protected Integer value$id$java$lang$Integer
      • isSet$id$java$lang$Integer

        protected boolean isSet$id$java$lang$Integer
      • value$iid$java$lang$Integer

        protected Integer value$iid$java$lang$Integer
      • isSet$iid$java$lang$Integer

        protected boolean isSet$iid$java$lang$Integer
      • value$sourceBranch$java$lang$String

        protected String value$sourceBranch$java$lang$String
      • isSet$sourceBranch$java$lang$String

        protected boolean isSet$sourceBranch$java$lang$String
      • value$targetBranch$java$lang$String

        protected String value$targetBranch$java$lang$String
      • isSet$targetBranch$java$lang$String

        protected boolean isSet$targetBranch$java$lang$String
      • value$projectId$java$lang$Integer

        protected Integer value$projectId$java$lang$Integer
      • isSet$projectId$java$lang$Integer

        protected boolean isSet$projectId$java$lang$Integer
      • value$title$java$lang$String

        protected String value$title$java$lang$String
      • isSet$title$java$lang$String

        protected boolean isSet$title$java$lang$String
      • value$state$com$gitee$jenkins$gitee$hook$model$State

        protected State value$state$com$gitee$jenkins$gitee$hook$model$State
      • isSet$state$com$gitee$jenkins$gitee$hook$model$State

        protected boolean isSet$state$com$gitee$jenkins$gitee$hook$model$State
      • value$upvotes$java$lang$Integer

        protected Integer value$upvotes$java$lang$Integer
      • isSet$upvotes$java$lang$Integer

        protected boolean isSet$upvotes$java$lang$Integer
      • value$downvotes$java$lang$Integer

        protected Integer value$downvotes$java$lang$Integer
      • isSet$downvotes$java$lang$Integer

        protected boolean isSet$downvotes$java$lang$Integer
      • value$author$com$gitee$jenkins$gitee$api$model$User

        protected User value$author$com$gitee$jenkins$gitee$api$model$User
      • isSet$author$com$gitee$jenkins$gitee$api$model$User

        protected boolean isSet$author$com$gitee$jenkins$gitee$api$model$User
      • value$assignee$com$gitee$jenkins$gitee$api$model$User

        protected User value$assignee$com$gitee$jenkins$gitee$api$model$User
      • isSet$assignee$com$gitee$jenkins$gitee$api$model$User

        protected boolean isSet$assignee$com$gitee$jenkins$gitee$api$model$User
      • value$sourceProjectId$java$lang$Integer

        protected Integer value$sourceProjectId$java$lang$Integer
      • isSet$sourceProjectId$java$lang$Integer

        protected boolean isSet$sourceProjectId$java$lang$Integer
      • value$targetProjectId$java$lang$Integer

        protected Integer value$targetProjectId$java$lang$Integer
      • isSet$targetProjectId$java$lang$Integer

        protected boolean isSet$targetProjectId$java$lang$Integer
      • value$labels$java$util$List

        protected List<String> value$labels$java$util$List
      • isSet$labels$java$util$List

        protected boolean isSet$labels$java$util$List
      • value$description$java$lang$String

        protected String value$description$java$lang$String
      • isSet$description$java$lang$String

        protected boolean isSet$description$java$lang$String
      • value$workInProgress$java$lang$Boolean

        protected Boolean value$workInProgress$java$lang$Boolean
      • isSet$workInProgress$java$lang$Boolean

        protected boolean isSet$workInProgress$java$lang$Boolean
      • value$mergeWhenBuildSucceeds$java$lang$Boolean

        protected Boolean value$mergeWhenBuildSucceeds$java$lang$Boolean
      • isSet$mergeWhenBuildSucceeds$java$lang$Boolean

        protected boolean isSet$mergeWhenBuildSucceeds$java$lang$Boolean
      • value$mergeStatus$java$lang$String

        protected String value$mergeStatus$java$lang$String
      • isSet$mergeStatus$java$lang$String

        protected boolean isSet$mergeStatus$java$lang$String
      • value$repoOwner$java$lang$String

        protected String value$repoOwner$java$lang$String
      • isSet$repoOwner$java$lang$String

        protected boolean isSet$repoOwner$java$lang$String
      • value$repoPath$java$lang$String

        protected String value$repoPath$java$lang$String
      • isSet$repoPath$java$lang$String

        protected boolean isSet$repoPath$java$lang$String
    • Constructor Detail

    • Method Detail

      • pullRequest

        public static PullRequestBuilder pullRequest()
        Factory Method to construct a PullRequestBuilder
        Returns:
        a new PullRequestBuilder
      • withId

        public PullRequestBuilder withId​(Integer value)
        Sets the default value for the id property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withIid

        public PullRequestBuilder withIid​(Integer value)
        Sets the default value for the iid property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withSourceBranch

        public PullRequestBuilder withSourceBranch​(String value)
        Sets the default value for the sourceBranch property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withTargetBranch

        public PullRequestBuilder withTargetBranch​(String value)
        Sets the default value for the targetBranch property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withProjectId

        public PullRequestBuilder withProjectId​(Integer value)
        Sets the default value for the projectId property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withTitle

        public PullRequestBuilder withTitle​(String value)
        Sets the default value for the title property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withState

        public PullRequestBuilder withState​(State value)
        Sets the default value for the state property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withUpvotes

        public PullRequestBuilder withUpvotes​(Integer value)
        Sets the default value for the upvotes property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withDownvotes

        public PullRequestBuilder withDownvotes​(Integer value)
        Sets the default value for the downvotes property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withAuthor

        public PullRequestBuilder withAuthor​(User value)
        Sets the default value for the author property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withAssignee

        public PullRequestBuilder withAssignee​(User value)
        Sets the default value for the assignee property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withSourceProjectId

        public PullRequestBuilder withSourceProjectId​(Integer value)
        Sets the default value for the sourceProjectId property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withTargetProjectId

        public PullRequestBuilder withTargetProjectId​(Integer value)
        Sets the default value for the targetProjectId property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withLabels

        public PullRequestBuilder withLabels​(List<String> value)
        Sets the default value for the labels property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withDescription

        public PullRequestBuilder withDescription​(String value)
        Sets the default value for the description property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withWorkInProgress

        public PullRequestBuilder withWorkInProgress​(Boolean value)
        Sets the default value for the workInProgress property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withMergeWhenBuildSucceeds

        public PullRequestBuilder withMergeWhenBuildSucceeds​(Boolean value)
        Sets the default value for the mergeWhenBuildSucceeds property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withMergeStatus

        public PullRequestBuilder withMergeStatus​(String value)
        Sets the default value for the mergeStatus property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withRepoOwner

        public PullRequestBuilder withRepoOwner​(String value)
        Sets the default value for the repoOwner property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withRepoPath

        public PullRequestBuilder withRepoPath​(String value)
        Sets the default value for the repoPath property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • clone

        @GwtIncompatible
        public Object clone()
        Returns a clone of this builder.
        Overrides:
        clone in class Object
        Returns:
        the clone
      • but

        @GwtIncompatible
        public PullRequestBuilder but()
        Returns a clone of this builder.
        Returns:
        the clone
      • build

        public PullRequest build()
        Creates a new PullRequest based on this builder's settings.
        Returns:
        the created PullRequest