java.lang.Object
org.kohsuke.github.GHRepositoryVariableBuilder<GHRepositoryVariable>
org.kohsuke.github.GHRepositoryVariable.Setter
- All Implemented Interfaces:
GitHubRequestBuilderDone<GHRepositoryVariable>
- Enclosing class:
- GHRepositoryVariable
@BetaApi
public static class GHRepositoryVariable.Setter
extends GHRepositoryVariableBuilder<GHRepositoryVariable>
A
GHRepositoryVariableBuilder that updates a single property per request
GitHubRequestBuilderDone.done() is called automatically after the property is set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.kohsuke.github.RequesterThe requester.protected booleanThe update in place. -
Method Summary
Modifier and TypeMethodDescriptionprotected GHRepositoryVariableChooses 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 aAbstractBuilderfromGitHubRequestBuilderDone.done().done()Finishes a create or update request, committing changes.protected GHRepositoryVariableApplies a value to a name for this builder.Methods inherited from class org.kohsuke.github.GHRepositoryVariableBuilder
name, value
-
Field Details
-
requester
@Nonnull protected final org.kohsuke.github.Requester requesterThe requester. -
updateInPlace
protected boolean updateInPlaceThe update in place.
-
-
Method Details
-
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<R>- Returns:
- an instance with updated current data
- Throws:
IOException- if there is an I/O Exception
-
with
@Nonnull @BetaApi protected GHRepositoryVariable 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 aAbstractBuilderfromGitHubRequestBuilderDone.done(). IfAbstractBuilderis not the same asAbstractBuilder, this method will return anAbstractBuilderand 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 IfAbstractBuilderis the same asAbstractBuilder, this method will commit changes after the first value change and return aAbstractBuilderfromGitHubRequestBuilderDone.done(). IfAbstractBuilderis not the same asAbstractBuilder, this method will return anAbstractBuilderand 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
-