* The commit ID of the merge in the destination or target branch. *
*/ private String commitId; /** ** The tree ID of the merge in the destination or target branch. *
*/ private String treeId; /** ** The commit ID of the merge in the destination or target branch. *
* * @param commitId * The commit ID of the merge in the destination or target branch. */ public void setCommitId(String commitId) { this.commitId = commitId; } /** ** The commit ID of the merge in the destination or target branch. *
* * @return The commit ID of the merge in the destination or target branch. */ public String getCommitId() { return this.commitId; } /** ** The commit ID of the merge in the destination or target branch. *
* * @param commitId * The commit ID of the merge in the destination or target branch. * @return Returns a reference to this object so that method calls can be chained together. */ public MergeBranchesByFastForwardResult withCommitId(String commitId) { setCommitId(commitId); return this; } /** ** The tree ID of the merge in the destination or target branch. *
* * @param treeId * The tree ID of the merge in the destination or target branch. */ public void setTreeId(String treeId) { this.treeId = treeId; } /** ** The tree ID of the merge in the destination or target branch. *
* * @return The tree ID of the merge in the destination or target branch. */ public String getTreeId() { return this.treeId; } /** ** The tree ID of the merge in the destination or target branch. *
* * @param treeId * The tree ID of the merge in the destination or target branch. * @return Returns a reference to this object so that method calls can be chained together. */ public MergeBranchesByFastForwardResult withTreeId(String treeId) { setTreeId(treeId); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCommitId() != null) sb.append("CommitId: ").append(getCommitId()).append(","); if (getTreeId() != null) sb.append("TreeId: ").append(getTreeId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MergeBranchesByFastForwardResult == false) return false; MergeBranchesByFastForwardResult other = (MergeBranchesByFastForwardResult) obj; if (other.getCommitId() == null ^ this.getCommitId() == null) return false; if (other.getCommitId() != null && other.getCommitId().equals(this.getCommitId()) == false) return false; if (other.getTreeId() == null ^ this.getTreeId() == null) return false; if (other.getTreeId() != null && other.getTreeId().equals(this.getTreeId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCommitId() == null) ? 0 : getCommitId().hashCode()); hashCode = prime * hashCode + ((getTreeId() == null) ? 0 : getTreeId().hashCode()); return hashCode; } @Override public MergeBranchesByFastForwardResult clone() { try { return (MergeBranchesByFastForwardResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }