Class BranchDataBuilder

    • Field Detail

      • value$label$java$lang$String

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

        protected boolean isSet$label$java$lang$String
      • value$ref$java$lang$String

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

        protected boolean isSet$ref$java$lang$String
      • value$sha$java$lang$String

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

        protected boolean isSet$sha$java$lang$String
      • value$user$com$gitee$jenkins$gitee$hook$model$User

        protected User value$user$com$gitee$jenkins$gitee$hook$model$User
      • isSet$user$com$gitee$jenkins$gitee$hook$model$User

        protected boolean isSet$user$com$gitee$jenkins$gitee$hook$model$User
      • value$repo$com$gitee$jenkins$gitee$hook$model$Project

        protected Project value$repo$com$gitee$jenkins$gitee$hook$model$Project
      • isSet$repo$com$gitee$jenkins$gitee$hook$model$Project

        protected boolean isSet$repo$com$gitee$jenkins$gitee$hook$model$Project
    • Constructor Detail

    • Method Detail

      • branchData

        public static BranchDataBuilder branchData()
        Factory Method to construct a BranchDataBuilder
        Returns:
        a new BranchDataBuilder
      • withLabel

        public BranchDataBuilder withLabel​(String value)
        Sets the default value for the label property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withRef

        public BranchDataBuilder withRef​(String value)
        Sets the default value for the ref property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withSha

        public BranchDataBuilder withSha​(String value)
        Sets the default value for the sha property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withUser

        public BranchDataBuilder withUser​(User value)
        Sets the default value for the user property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withRepo

        public BranchDataBuilder withRepo​(Project value)
        Sets the default value for the repo 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 BranchDataBuilder but()
        Returns a clone of this builder.
        Returns:
        the clone
      • build

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