Package org.projectnessie.model
Interface CommitResponse
-
@Immutable public interface CommitResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCommitResponse.AddedContent
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static 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.java.util.List<CommitResponse.AddedContent>getAddedContents()@NotNull @NotNull BranchgetTargetBranch()Returns updated information about the branch where the commit was applied.default java.util.Map<ContentKey,java.lang.String>toAddedContentsMap()
-
-
-
Method Detail
-
builder
static org.projectnessie.model.ImmutableCommitResponse.Builder builder()
-
getTargetBranch
@NotNull @NotNull @NotNull @NotNull Branch 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
@Nullable @Nullable java.util.List<CommitResponse.AddedContent> getAddedContents()
-
toAddedContentsMap
@NonAttribute default java.util.Map<ContentKey,java.lang.String> toAddedContentsMap()
-
contentWithAssignedId
default <T extends Content> T contentWithAssignedId(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.Returns the
contentparameter value, if no content for the givenkeyhas been added.Note: This convenience function only works for REST API v2.
-
-