* Contains metadata about the conflicts found in the merge. *
*/ private ConflictMetadata conflictMetadata; /** ** A list of merge hunks of the differences between the files or lines. *
*/ private java.util.List* An enumeration token that can be used in a request to return the next batch of the results. *
*/ private String nextToken; /** ** The commit ID of the destination commit specifier that was used in the merge evaluation. *
*/ private String destinationCommitId; /** ** The commit ID of the source commit specifier that was used in the merge evaluation. *
*/ private String sourceCommitId; /** ** The commit ID of the merge base. *
*/ private String baseCommitId; /** ** Contains metadata about the conflicts found in the merge. *
* * @param conflictMetadata * Contains metadata about the conflicts found in the merge. */ public void setConflictMetadata(ConflictMetadata conflictMetadata) { this.conflictMetadata = conflictMetadata; } /** ** Contains metadata about the conflicts found in the merge. *
* * @return Contains metadata about the conflicts found in the merge. */ public ConflictMetadata getConflictMetadata() { return this.conflictMetadata; } /** ** Contains metadata about the conflicts found in the merge. *
* * @param conflictMetadata * Contains metadata about the conflicts found in the merge. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMergeConflictsResult withConflictMetadata(ConflictMetadata conflictMetadata) { setConflictMetadata(conflictMetadata); return this; } /** ** A list of merge hunks of the differences between the files or lines. *
* * @return A list of merge hunks of the differences between the files or lines. */ public java.util.List* A list of merge hunks of the differences between the files or lines. *
* * @param mergeHunks * A list of merge hunks of the differences between the files or lines. */ public void setMergeHunks(java.util.Collection* A list of merge hunks of the differences between the files or lines. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMergeHunks(java.util.Collection)} or {@link #withMergeHunks(java.util.Collection)} if you want to * override the existing values. *
* * @param mergeHunks * A list of merge hunks of the differences between the files or lines. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMergeConflictsResult withMergeHunks(MergeHunk... mergeHunks) { if (this.mergeHunks == null) { setMergeHunks(new java.util.ArrayList* A list of merge hunks of the differences between the files or lines. *
* * @param mergeHunks * A list of merge hunks of the differences between the files or lines. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMergeConflictsResult withMergeHunks(java.util.Collection* An enumeration token that can be used in a request to return the next batch of the results. *
* * @param nextToken * An enumeration token that can be used in a request to return the next batch of the results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** An enumeration token that can be used in a request to return the next batch of the results. *
* * @return An enumeration token that can be used in a request to return the next batch of the results. */ public String getNextToken() { return this.nextToken; } /** ** An enumeration token that can be used in a request to return the next batch of the results. *
* * @param nextToken * An enumeration token that can be used in a request to return the next batch of the results. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMergeConflictsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** The commit ID of the destination commit specifier that was used in the merge evaluation. *
* * @param destinationCommitId * The commit ID of the destination commit specifier that was used in the merge evaluation. */ public void setDestinationCommitId(String destinationCommitId) { this.destinationCommitId = destinationCommitId; } /** ** The commit ID of the destination commit specifier that was used in the merge evaluation. *
* * @return The commit ID of the destination commit specifier that was used in the merge evaluation. */ public String getDestinationCommitId() { return this.destinationCommitId; } /** ** The commit ID of the destination commit specifier that was used in the merge evaluation. *
* * @param destinationCommitId * The commit ID of the destination commit specifier that was used in the merge evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMergeConflictsResult withDestinationCommitId(String destinationCommitId) { setDestinationCommitId(destinationCommitId); return this; } /** ** The commit ID of the source commit specifier that was used in the merge evaluation. *
* * @param sourceCommitId * The commit ID of the source commit specifier that was used in the merge evaluation. */ public void setSourceCommitId(String sourceCommitId) { this.sourceCommitId = sourceCommitId; } /** ** The commit ID of the source commit specifier that was used in the merge evaluation. *
* * @return The commit ID of the source commit specifier that was used in the merge evaluation. */ public String getSourceCommitId() { return this.sourceCommitId; } /** ** The commit ID of the source commit specifier that was used in the merge evaluation. *
* * @param sourceCommitId * The commit ID of the source commit specifier that was used in the merge evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMergeConflictsResult withSourceCommitId(String sourceCommitId) { setSourceCommitId(sourceCommitId); return this; } /** ** The commit ID of the merge base. *
* * @param baseCommitId * The commit ID of the merge base. */ public void setBaseCommitId(String baseCommitId) { this.baseCommitId = baseCommitId; } /** ** The commit ID of the merge base. *
* * @return The commit ID of the merge base. */ public String getBaseCommitId() { return this.baseCommitId; } /** ** The commit ID of the merge base. *
* * @param baseCommitId * The commit ID of the merge base. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMergeConflictsResult withBaseCommitId(String baseCommitId) { setBaseCommitId(baseCommitId); 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 (getConflictMetadata() != null) sb.append("ConflictMetadata: ").append(getConflictMetadata()).append(","); if (getMergeHunks() != null) sb.append("MergeHunks: ").append(getMergeHunks()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getDestinationCommitId() != null) sb.append("DestinationCommitId: ").append(getDestinationCommitId()).append(","); if (getSourceCommitId() != null) sb.append("SourceCommitId: ").append(getSourceCommitId()).append(","); if (getBaseCommitId() != null) sb.append("BaseCommitId: ").append(getBaseCommitId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeMergeConflictsResult == false) return false; DescribeMergeConflictsResult other = (DescribeMergeConflictsResult) obj; if (other.getConflictMetadata() == null ^ this.getConflictMetadata() == null) return false; if (other.getConflictMetadata() != null && other.getConflictMetadata().equals(this.getConflictMetadata()) == false) return false; if (other.getMergeHunks() == null ^ this.getMergeHunks() == null) return false; if (other.getMergeHunks() != null && other.getMergeHunks().equals(this.getMergeHunks()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getDestinationCommitId() == null ^ this.getDestinationCommitId() == null) return false; if (other.getDestinationCommitId() != null && other.getDestinationCommitId().equals(this.getDestinationCommitId()) == false) return false; if (other.getSourceCommitId() == null ^ this.getSourceCommitId() == null) return false; if (other.getSourceCommitId() != null && other.getSourceCommitId().equals(this.getSourceCommitId()) == false) return false; if (other.getBaseCommitId() == null ^ this.getBaseCommitId() == null) return false; if (other.getBaseCommitId() != null && other.getBaseCommitId().equals(this.getBaseCommitId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConflictMetadata() == null) ? 0 : getConflictMetadata().hashCode()); hashCode = prime * hashCode + ((getMergeHunks() == null) ? 0 : getMergeHunks().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getDestinationCommitId() == null) ? 0 : getDestinationCommitId().hashCode()); hashCode = prime * hashCode + ((getSourceCommitId() == null) ? 0 : getSourceCommitId().hashCode()); hashCode = prime * hashCode + ((getBaseCommitId() == null) ? 0 : getBaseCommitId().hashCode()); return hashCode; } @Override public DescribeMergeConflictsResult clone() { try { return (DescribeMergeConflictsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }