Package org.projectnessie.model
Interface CommitResponse
@Immutable
public interface CommitResponse
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic org.projectnessie.model.ImmutableCommitResponse.Builderbuilder()default <T extends Content>
TcontentWithAssignedId(ContentKey key, T content) If new content has been added to Nessie for the givenkey, updates thecontent IDof the givencontentwith the content ID returned by Nessie.@NotNull @NotNull BranchReturns updated information about the branch where the commit was applied.default Map<ContentKey, String>
-
Method Details
-
builder
static org.projectnessie.model.ImmutableCommitResponse.Builder builder() -
getTargetBranch
Returns updated information about the branch where the commit was applied.Specifically, the hash of the
Branchwill be the hash of the applied commit. -
getAddedContents
-
toAddedContentsMap
-
contentWithAssignedId
If new content has been added to Nessie for the givenkey, updates thecontent IDof the givencontentwith the content ID returned by Nessie.Returns the
contentparameter value, if no content for the givenkeyhas been added.Note: This convenience function only works for REST API v2.
-