java.lang.Object
org.kohsuke.github.GHDiscussion.Updater
- All Implemented Interfaces:
GitHubRequestBuilderDone<GHDiscussion>
- Enclosing class:
- GHDiscussion
A
GHLabelBuilder that allows multiple properties to be updated per request.
Consumer must call AbstractBuilder.done() to commit changes.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.kohsuke.github.RequesterThe requester.protected booleanThe update in place. -
Method Summary
Modifier and TypeMethodDescriptionBody content for this discussion.protected GHDiscussion.UpdaterChooses whether to return a continuing builder or an updated data record IfSis the same asR, this method will commit changes after the first value change and return aRfromGitHubRequestBuilderDone.done().done()Finishes a create or update request, committing changes.Title for this discussion.protected GHDiscussion.UpdaterApplies 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
-
body
Body content for this discussion.- Parameters:
value- body of discussion*- Returns:
- either a continuing builder or an updated
GHDiscussion - Throws:
IOException- if there is an I/O Exception
-
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:
donein interfaceGitHubRequestBuilderDone<S>- Returns:
- an instance with updated current data
- Throws:
IOException- if there is an I/O Exception
-
title
Title for this discussion.- Parameters:
value- title of discussion- Returns:
- either a continuing builder or an updated
GHDiscussion - Throws:
IOException- if there is an I/O Exception
-
continueOrDone
Chooses whether to return a continuing builder or an updated data record IfSis the same asR, this method will commit changes after the first value change and return aRfromGitHubRequestBuilderDone.done(). IfSis not the same asR, this method will return anSand 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
-
with
@Nonnull @BetaApi protected GHDiscussion.Updater with(@Nonnull String name, Object value) throws IOException Applies a value to a name for this builder. IfSis the same asR, this method will commit changes after the first value change and return aRfromGitHubRequestBuilderDone.done(). IfSis not the same asR, this method will return anSand 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
-