Class GitPushPlanPatch.Builder

java.lang.Object
io.skipcheck.tm1.client.model.GitPlanPatch.Builder
io.skipcheck.tm1.client.model.GitPushPlanPatch.Builder
Enclosing class:
GitPushPlanPatch

public static final class GitPushPlanPatch.Builder extends GitPlanPatch.Builder
Builds a GitPushPlanPatch; each setter replaces what an earlier call set.
  • Method Details

    • id

      public GitPushPlanPatch.Builder id(@Nullable String id)
      Sets ID: The ID of the plan.
      Overrides:
      id in class GitPlanPatch.Builder
      Parameters:
      id - the value; null sends an explicit null
      Returns:
      this builder
    • branch

      public GitPushPlanPatch.Builder branch(@Nullable String branch)
      Sets Branch: The name of the remote branch.
      Overrides:
      branch in class GitPlanPatch.Builder
      Parameters:
      branch - the value; null sends an explicit null
      Returns:
      this builder
    • force

      public GitPushPlanPatch.Builder force(@Nullable Boolean force)
      Sets Force: A flag which is used to evaluate preconditions.
      Overrides:
      force in class GitPlanPatch.Builder
      Parameters:
      force - the value; null sends an explicit null
      Returns:
      this builder
    • newBranch

      public GitPushPlanPatch.Builder newBranch(@Nullable String newBranch)
      Sets NewBranch: The name of the new branch to which the source to be pushed.
      Parameters:
      newBranch - the value; null sends an explicit null
      Returns:
      this builder
    • newCommit

      public GitPushPlanPatch.Builder newCommit(@Nullable GitCommitPatch newCommit)
      Sets NewCommit: The commit that contains the source generated for the push.
      Parameters:
      newCommit - the value; null sends an explicit null
      Returns:
      this builder
    • parentCommit

      public GitPushPlanPatch.Builder parentCommit(@Nullable GitCommitPatch parentCommit)
      Sets ParentCommit: The parent commit of the new commit.
      Parameters:
      parentCommit - the value; null sends an explicit null
      Returns:
      this builder
    • sourceFiles

      public GitPushPlanPatch.Builder sourceFiles(@Nullable List<String> sourceFiles)
      Sets SourceFiles: A collection of the sources files in the commit.
      Parameters:
      sourceFiles - the value; null sends an explicit null
      Returns:
      this builder
    • build

      public GitPushPlanPatch build()
      The patch, with what's been set so far.
      Overrides:
      build in class GitPlanPatch.Builder
      Returns:
      the patch