* The merge option or strategy used to merge the code. *
*/ private java.util.List* The commit ID of the source commit specifier that was used in the merge evaluation. *
*/ private String sourceCommitId; /** ** The commit ID of the destination commit specifier that was used in the merge evaluation. *
*/ private String destinationCommitId; /** ** The commit ID of the merge base. *
*/ private String baseCommitId; /** ** The merge option or strategy used to merge the code. *
* * @return The merge option or strategy used to merge the code. * @see MergeOptionTypeEnum */ public java.util.List* The merge option or strategy used to merge the code. *
* * @param mergeOptions * The merge option or strategy used to merge the code. * @see MergeOptionTypeEnum */ public void setMergeOptions(java.util.Collection* The merge option or strategy used to merge the code. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMergeOptions(java.util.Collection)} or {@link #withMergeOptions(java.util.Collection)} if you want to * override the existing values. *
* * @param mergeOptions * The merge option or strategy used to merge the code. * @return Returns a reference to this object so that method calls can be chained together. * @see MergeOptionTypeEnum */ public GetMergeOptionsResult withMergeOptions(String... mergeOptions) { if (this.mergeOptions == null) { setMergeOptions(new java.util.ArrayList* The merge option or strategy used to merge the code. *
* * @param mergeOptions * The merge option or strategy used to merge the code. * @return Returns a reference to this object so that method calls can be chained together. * @see MergeOptionTypeEnum */ public GetMergeOptionsResult withMergeOptions(java.util.Collection* The merge option or strategy used to merge the code. *
* * @param mergeOptions * The merge option or strategy used to merge the code. * @return Returns a reference to this object so that method calls can be chained together. * @see MergeOptionTypeEnum */ public GetMergeOptionsResult withMergeOptions(MergeOptionTypeEnum... mergeOptions) { java.util.ArrayList* 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 GetMergeOptionsResult withSourceCommitId(String sourceCommitId) { setSourceCommitId(sourceCommitId); 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 GetMergeOptionsResult withDestinationCommitId(String destinationCommitId) { setDestinationCommitId(destinationCommitId); 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 GetMergeOptionsResult 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 (getMergeOptions() != null) sb.append("MergeOptions: ").append(getMergeOptions()).append(","); if (getSourceCommitId() != null) sb.append("SourceCommitId: ").append(getSourceCommitId()).append(","); if (getDestinationCommitId() != null) sb.append("DestinationCommitId: ").append(getDestinationCommitId()).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 GetMergeOptionsResult == false) return false; GetMergeOptionsResult other = (GetMergeOptionsResult) obj; if (other.getMergeOptions() == null ^ this.getMergeOptions() == null) return false; if (other.getMergeOptions() != null && other.getMergeOptions().equals(this.getMergeOptions()) == 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.getDestinationCommitId() == null ^ this.getDestinationCommitId() == null) return false; if (other.getDestinationCommitId() != null && other.getDestinationCommitId().equals(this.getDestinationCommitId()) == 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 + ((getMergeOptions() == null) ? 0 : getMergeOptions().hashCode()); hashCode = prime * hashCode + ((getSourceCommitId() == null) ? 0 : getSourceCommitId().hashCode()); hashCode = prime * hashCode + ((getDestinationCommitId() == null) ? 0 : getDestinationCommitId().hashCode()); hashCode = prime * hashCode + ((getBaseCommitId() == null) ? 0 : getBaseCommitId().hashCode()); return hashCode; } @Override public GetMergeOptionsResult clone() { try { return (GetMergeOptionsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }