Package org.projectnessie.client.builder
Class BaseCreateReferenceBuilder
java.lang.Object
org.projectnessie.client.builder.BaseCreateReferenceBuilder
- All Implemented Interfaces:
CreateReferenceBuilder
- Direct Known Subclasses:
HttpCreateReference
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreference(org.projectnessie.model.Reference reference) Sets the name and hash of the reference-to-be-created.sourceRefName(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, waitMethods inherited from interface org.projectnessie.client.api.CreateReferenceBuilder
create
-
Field Details
-
reference
protected org.projectnessie.model.Reference reference -
sourceRefName
-
-
Constructor Details
-
BaseCreateReferenceBuilder
public BaseCreateReferenceBuilder()
-
-
Method Details
-
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
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.
-