Package org.projectnessie.client.builder
Class BaseCreateReferenceBuilder
- java.lang.Object
-
- org.projectnessie.client.builder.BaseCreateReferenceBuilder
-
- All Implemented Interfaces:
CreateReferenceBuilder
- Direct Known Subclasses:
HttpCreateReference
public abstract class BaseCreateReferenceBuilder extends java.lang.Object implements CreateReferenceBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected org.projectnessie.model.Referencereferenceprotected java.lang.StringsourceRefName
-
Constructor Summary
Constructors Constructor Description BaseCreateReferenceBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateReferenceBuilderreference(org.projectnessie.model.Reference reference)Sets the name and hash of the reference-to-be-created.CreateReferenceBuildersourceRefName(java.lang.String sourceRefName)Sets the name of the reference that contains the hash of the reference-to-be-created.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projectnessie.client.api.CreateReferenceBuilder
create
-
-
-
-
Method Detail
-
sourceRefName
public CreateReferenceBuilder sourceRefName(java.lang.String sourceRefName)
Description copied from interface:CreateReferenceBuilderSets the name of the reference that contains the hash of the reference-to-be-created.If not explicitly set, the default branch
NessieApiV1.getDefaultBranch()will be used as the source reference name.The name and hash of the reference to be created is set via
CreateReferenceBuilder.reference(Reference).- Specified by:
sourceRefNamein interfaceCreateReferenceBuilder- Parameters:
sourceRefName- is the name of the reference that contains the hash of the reference-to-be-created.
-
reference
public CreateReferenceBuilder reference(org.projectnessie.model.Reference reference)
Description copied from interface:CreateReferenceBuilderSets the name and hash of the reference-to-be-created.For creating a
Tag, hash cannot be null.For creating a
Branch, If the hash is not specified, hash will be set to reference the beginning of time (aka NO_ANCESTOR hash).If the hash is specified, it should be on the
CreateReferenceBuilder.sourceRefName(String)- Specified by:
referencein interfaceCreateReferenceBuilder- Parameters:
reference- isBranchorTagdefining the name and hash for the new reference-to-be-created.
-
-