Class GitPushPlanPatch.Builder
java.lang.Object
io.skipcheck.tm1.client.model.GitPlanPatch.Builder
io.skipcheck.tm1.client.model.GitPushPlanPatch.Builder
- Enclosing class:
GitPushPlanPatch
Builds a
GitPushPlanPatch; each setter replaces what an earlier call set.-
Method Summary
Modifier and TypeMethodDescriptionSetsBranch: The name of the remote branch.build()The patch, with what's been set so far.SetsForce: A flag which is used to evaluate preconditions.SetsID: The ID of the plan.SetsNewBranch: The name of the new branch to which the source to be pushed.newCommit(@Nullable GitCommitPatch newCommit) SetsNewCommit: The commit that contains the source generated for the push.parentCommit(@Nullable GitCommitPatch parentCommit) SetsParentCommit: The parent commit of the new commit.sourceFiles(@Nullable List<String> sourceFiles) SetsSourceFiles: A collection of the sources files in the commit.
-
Method Details
-
id
SetsID: The ID of the plan.- Overrides:
idin classGitPlanPatch.Builder- Parameters:
id- the value;nullsends an explicitnull- Returns:
- this builder
-
branch
SetsBranch: The name of the remote branch.- Overrides:
branchin classGitPlanPatch.Builder- Parameters:
branch- the value;nullsends an explicitnull- Returns:
- this builder
-
force
SetsForce: A flag which is used to evaluate preconditions.- Overrides:
forcein classGitPlanPatch.Builder- Parameters:
force- the value;nullsends an explicitnull- Returns:
- this builder
-
newBranch
SetsNewBranch: The name of the new branch to which the source to be pushed.- Parameters:
newBranch- the value;nullsends an explicitnull- Returns:
- this builder
-
newCommit
SetsNewCommit: The commit that contains the source generated for the push.- Parameters:
newCommit- the value;nullsends an explicitnull- Returns:
- this builder
-
parentCommit
SetsParentCommit: The parent commit of the new commit.- Parameters:
parentCommit- the value;nullsends an explicitnull- Returns:
- this builder
-
sourceFiles
SetsSourceFiles: A collection of the sources files in the commit.- Parameters:
sourceFiles- the value;nullsends an explicitnull- Returns:
- this builder
-
build
The patch, with what's been set so far.- Overrides:
buildin classGitPlanPatch.Builder- Returns:
- the patch
-