Package org.kohsuke.github
Class GHDiscussion.Creator
java.lang.Object
org.kohsuke.github.GHDiscussion.Creator
- Enclosing class:
- GHDiscussion
-
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.CreatorChooses 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().done()Finishes an update, committing changes.getRoot()Deprecated.private_(boolean value) Sets whether this discussion is private to this team.Title for this discussion.protected GHDiscussion.CreatorApplies a value to a name for this builder.
-
Field Details
-
requester
The requester. -
updateInPlace
protected boolean updateInPlaceThe update in place.
-
-
Method Details
-
private_
Sets whether this discussion is private to this team.- Parameters:
value- privacy of this discussion- Returns:
- either a continuing builder or an updated
GHDiscussion - 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
-
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 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 GHDiscussion.Creator with(@Nonnull String name, Object value) throws IOException 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
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
-
getRoot
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
GitHubinstance, use a local copy instead of pulling it out of objects.