* The Python script generated from the DAG. *
*/ private String pythonScript; /** ** The Scala code generated from the DAG. *
*/ private String scalaCode; /** ** The Python script generated from the DAG. *
* * @param pythonScript * The Python script generated from the DAG. */ public void setPythonScript(String pythonScript) { this.pythonScript = pythonScript; } /** ** The Python script generated from the DAG. *
* * @return The Python script generated from the DAG. */ public String getPythonScript() { return this.pythonScript; } /** ** The Python script generated from the DAG. *
* * @param pythonScript * The Python script generated from the DAG. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateScriptResult withPythonScript(String pythonScript) { setPythonScript(pythonScript); return this; } /** ** The Scala code generated from the DAG. *
* * @param scalaCode * The Scala code generated from the DAG. */ public void setScalaCode(String scalaCode) { this.scalaCode = scalaCode; } /** ** The Scala code generated from the DAG. *
* * @return The Scala code generated from the DAG. */ public String getScalaCode() { return this.scalaCode; } /** ** The Scala code generated from the DAG. *
* * @param scalaCode * The Scala code generated from the DAG. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateScriptResult withScalaCode(String scalaCode) { setScalaCode(scalaCode); 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 (getPythonScript() != null) sb.append("PythonScript: ").append(getPythonScript()).append(","); if (getScalaCode() != null) sb.append("ScalaCode: ").append(getScalaCode()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateScriptResult == false) return false; CreateScriptResult other = (CreateScriptResult) obj; if (other.getPythonScript() == null ^ this.getPythonScript() == null) return false; if (other.getPythonScript() != null && other.getPythonScript().equals(this.getPythonScript()) == false) return false; if (other.getScalaCode() == null ^ this.getScalaCode() == null) return false; if (other.getScalaCode() != null && other.getScalaCode().equals(this.getScalaCode()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPythonScript() == null) ? 0 : getPythonScript().hashCode()); hashCode = prime * hashCode + ((getScalaCode() == null) ? 0 : getScalaCode().hashCode()); return hashCode; } @Override public CreateScriptResult clone() { try { return (CreateScriptResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }