Interface VersionLineageMetadata.Builder

  • Method Details

    • parentVersionIds

      VersionLineageMetadata.Builder parentVersionIds(Collection<String> parentVersionIds)

      A list of parent version identifiers. Regular commits have 0-1 parents. Merge commits have 2 parents: the target branch parent and the source branch parent. The first parent represents the primary lineage.

      Parameters:
      parentVersionIds - A list of parent version identifiers. Regular commits have 0-1 parents. Merge commits have 2 parents: the target branch parent and the source branch parent. The first parent represents the primary lineage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parentVersionIds

      VersionLineageMetadata.Builder parentVersionIds(String... parentVersionIds)

      A list of parent version identifiers. Regular commits have 0-1 parents. Merge commits have 2 parents: the target branch parent and the source branch parent. The first parent represents the primary lineage.

      Parameters:
      parentVersionIds - A list of parent version identifiers. Regular commits have 0-1 parents. Merge commits have 2 parents: the target branch parent and the source branch parent. The first parent represents the primary lineage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branchName

      VersionLineageMetadata.Builder branchName(String branchName)

      The branch name for this version. If not specified, inherits the parent's branch or defaults to mainline.

      Parameters:
      branchName - The branch name for this version. If not specified, inherits the parent's branch or defaults to mainline.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdBy

      The source that created this version.

      Parameters:
      createdBy - The source that created this version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdBy

      The source that created this version.

      This is a convenience method that creates an instance of the VersionCreatedBySource.Builder avoiding the need to create one manually via VersionCreatedBySource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to createdBy(VersionCreatedBySource).

      Parameters:
      createdBy - a consumer that will call methods on VersionCreatedBySource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • commitMessage

      VersionLineageMetadata.Builder commitMessage(String commitMessage)

      A commit message describing the changes in this version.

      Parameters:
      commitMessage - A commit message describing the changes in this version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.