java.lang.Object
org.kohsuke.github.GHLabel.Updater
- All Implemented Interfaces:
GitHubRequestBuilderDone<GHLabel>
- Enclosing class:
- GHLabel
A
GHLabelBuilder
that allows multiple properties to be updated per request.
Consumer must call GitHubRequestBuilderDone.done()
to commit changes.-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.kohsuke.github.Requester
The requester.protected boolean
The update in place. -
Method Summary
Modifier and TypeMethodDescriptionColor.protected GHLabel.Updater
Chooses whether to return a continuing builder or an updated data record IfAbstractBuilder
is the same asAbstractBuilder
, this method will commit changes after the first value change and return aAbstractBuilder
fromGitHubRequestBuilderDone.done()
.description
(String value) Description.done()
Finishes a create or update request, committing changes.Name.protected GHLabel.Updater
Applies a value to a name for this builder.
-
Field Details
-
requester
@Nonnull protected final org.kohsuke.github.Requester requesterThe requester. -
updateInPlace
protected boolean updateInPlaceThe update in place.
-
-
Method Details
-
name
Name.- Parameters:
value
- the value- Returns:
- the s
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
color
Color.- Parameters:
value
- the value- Returns:
- the s
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
description
Description.- Parameters:
value
- the value- Returns:
- the s
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
done
Finishes a create or update request, committing changes. This method may update-in-place or not. Either way it returns the resulting instance.- Specified by:
done
in interfaceGitHubRequestBuilderDone<R>
- Returns:
- an instance with updated current data
- Throws:
IOException
- if there is an I/O Exception
-
with
@Nonnull @BetaApi protected GHLabel.Updater with(@Nonnull String name, Object value) throws IOException Applies a value to a name for this builder. IfAbstractBuilder
is the same asAbstractBuilder
, this method will commit changes after the first value change and return aAbstractBuilder
fromGitHubRequestBuilderDone.done()
. IfAbstractBuilder
is not the same asAbstractBuilder
, this method will return anAbstractBuilder
and letting the caller batch together multiple changes and callGitHubRequestBuilderDone.done()
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
Chooses whether to return a continuing builder or an updated data record IfAbstractBuilder
is the same asAbstractBuilder
, this method will commit changes after the first value change and return aAbstractBuilder
fromGitHubRequestBuilderDone.done()
. IfAbstractBuilder
is not the same asAbstractBuilder
, this method will return anAbstractBuilder
and letting the caller batch together multiple changes and callGitHubRequestBuilderDone.done()
when they are ready.- Returns:
- either a continuing builder or an updated data record
- Throws:
IOException
- if an I/O error occurs
-