Class GHLabel.Creator

java.lang.Object
org.kohsuke.github.GHLabel.Creator
Enclosing class:
GHLabel

@BetaApi public static class GHLabel.Creator extends Object
A GHLabelBuilder that creates a new GHLabel Consumer must call done() to create the new instance.
  • Field Details

    • requester

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

      protected boolean updateInPlace
      The update in place.
  • Method Details

    • name

      @Nonnull @BetaApi public GHLabel.Creator name(String value) throws IOException
      Name.
      Parameters:
      value - the value
      Returns:
      the s
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • color

      @Nonnull @BetaApi public GHLabel.Creator color(String value) throws IOException
      Color.
      Parameters:
      value - the value
      Returns:
      the s
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • description

      @Nonnull @BetaApi public GHLabel.Creator description(String value) throws IOException
      Description.
      Parameters:
      value - the value
      Returns:
      the s
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • done

      @Nonnull @BetaApi public GHLabel done() throws IOException
      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 @BetaApi protected GHLabel.Creator with(@Nonnull String name, Object value) throws IOException
      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 @BetaApi protected GHLabel.Creator continueOrDone() throws IOException
      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
    • getRoot

      @Deprecated public GitHub getRoot()
      Deprecated.
      For access to the GitHub instance, use a local copy instead of pulling it out of objects.
      Get the root GitHub instance for this object.
      Returns:
      the root GitHub instance