Class GHLabel.Setter

  • Enclosing class:
    GHLabel

    @Preview
    @Deprecated
    public static class GHLabel.Setter
    extends Object
    Deprecated.
    A GHLabelBuilder that updates a single property per request done() is called automatically after the property is set.
    • Field Detail

      • requester

        @Nonnull
        protected final org.kohsuke.github.Requester requester
      • updateInPlace

        protected boolean updateInPlace
    • Method Detail

      • done

        @Nonnull
        @Preview
        @Deprecated
        public R done()
               throws IOException
        Deprecated.
        Finishes an update, committing changes. This method may update-in-place or not. Either way it returns the resulting instance.
        Returns:
        an instance with updated current data
        Throws:
        IOException - if there is an I/O Exception
      • with

        @Nonnull
        @Preview
        @Deprecated
        protected S with​(@Nonnull
                         String name,
                         Object value)
                  throws IOException
        Deprecated.
        Applies a value to a name for this builder. If AbstractBuilder is the same as AbstractBuilder, this method will commit changes after the first value change and return a AbstractBuilder from done(). If AbstractBuilder is not the same as AbstractBuilder, this method will return an AbstractBuilder and letting the caller batch together multiple changes and call done() when they are ready.
        Parameters:
        name - the name of the field
        value - the value of the field
        Returns:
        either a continuing builder or an updated data record
        Throws:
        IOException - if an I/O error occurs
      • continueOrDone

        @Nonnull
        @Preview
        @Deprecated
        protected S continueOrDone()
                            throws IOException
        Deprecated.
        Chooses whether to return a continuing builder or an updated data record If AbstractBuilder is the same as AbstractBuilder, this method will commit changes after the first value change and return a AbstractBuilder from done(). If AbstractBuilder is not the same as AbstractBuilder, this method will return an AbstractBuilder and letting the caller batch together multiple changes and call done() when they are ready.
        Returns:
        either a continuing builder or an updated data record
        Throws:
        IOException - if an I/O error occurs