Package org.kohsuke.github
Class GHLabel.Updater
- java.lang.Object
-
- org.kohsuke.github.GHLabel.Updater
-
- Enclosing class:
- GHLabel
@BetaApi @Deprecated public static class GHLabel.Updater extends Object
Deprecated.AGHLabelBuilderthat allows multiple properties to be updated per request. Consumer must calldone()to commit changes.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.kohsuke.github.Requesterrequesterprotected booleanupdateInPlace
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Scolor(String value)Deprecated.protected ScontinueOrDone()Deprecated.Sdescription(String value)Deprecated.Rdone()Deprecated.Sname(String value)Deprecated.protected Swith(String name, Object value)Deprecated.
-
-
-
Field Detail
-
requester
@Nonnull protected final org.kohsuke.github.Requester requester
-
updateInPlace
protected boolean updateInPlace
-
-
Method Detail
-
name
@Nonnull @BetaApi @Deprecated public S name(String value) throws IOException
Deprecated.- Throws:
IOException
-
color
@Nonnull @BetaApi @Deprecated public S color(String value) throws IOException
Deprecated.- Throws:
IOException
-
description
@Nonnull @BetaApi @Deprecated public S description(String value) throws IOException
Deprecated.- Throws:
IOException
-
done
@Nonnull @BetaApi @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 @BetaApi @Deprecated protected S with(@Nonnull String name, Object value) throws IOException
Deprecated.Applies a value to a name for this builder. IfAbstractBuilderis the same asAbstractBuilder, this method will commit changes after the first value change and return aAbstractBuilderfromdone(). IfAbstractBuilderis not the same asAbstractBuilder, this method will return anAbstractBuilderand letting the caller batch together multiple changes and calldone()when they are ready.- Parameters:
name- the name of the fieldvalue- 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 @Deprecated protected S continueOrDone() throws IOException
Deprecated.Chooses whether to return a continuing builder or an updated data record IfAbstractBuilderis the same asAbstractBuilder, this method will commit changes after the first value change and return aAbstractBuilderfromdone(). IfAbstractBuilderis not the same asAbstractBuilder, this method will return anAbstractBuilderand letting the caller batch together multiple changes and calldone()when they are ready.- Returns:
- either a continuing builder or an updated data record
- Throws:
IOException- if an I/O error occurs
-
-