Interface VersionLineageMetadata.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<VersionLineageMetadata.Builder,,VersionLineageMetadata> SdkBuilder<VersionLineageMetadata.Builder,,VersionLineageMetadata> SdkPojo
- Enclosing class:
VersionLineageMetadata
-
Method Summary
Modifier and TypeMethodDescriptionbranchName(String branchName) The branch name for this version.commitMessage(String commitMessage) A commit message describing the changes in this version.default VersionLineageMetadata.BuildercreatedBy(Consumer<VersionCreatedBySource.Builder> createdBy) The source that created this version.createdBy(VersionCreatedBySource createdBy) The source that created this version.parentVersionIds(String... parentVersionIds) A list of parent version identifiers.parentVersionIds(Collection<String> parentVersionIds) A list of parent version identifiers.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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 tomainline.- 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
default VersionLineageMetadata.Builder createdBy(Consumer<VersionCreatedBySource.Builder> createdBy) The source that created this version.
This is a convenience method that creates an instance of theVersionCreatedBySource.Builderavoiding the need to create one manually viaVersionCreatedBySource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreatedBy(VersionCreatedBySource).- Parameters:
createdBy- a consumer that will call methods onVersionCreatedBySource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-