* The workflow's ARN. *
*/ private String arn; /** ** The workflow's ID. *
*/ private String id; /** ** The workflow's status. *
*/ private String status; /** ** The workflow's type. *
*/ private String type; /** ** The workflow's name. *
*/ private String name; /** ** The workflow's description. *
*/ private String description; /** ** The workflow's engine. *
*/ private String engine; /** ** The workflow's definition. *
*/ private String definition; /** ** The path of the main definition file for the workflow. *
*/ private String main; /** ** The workflow's digest. *
*/ private String digest; /** ** The workflow's parameter template. *
*/ private java.util.Map* The workflow's storage capacity in gigabytes. *
*/ private Integer storageCapacity; /** ** When the workflow was created. *
*/ private java.util.Date creationTime; /** ** The workflow's status message. *
*/ private String statusMessage; /** ** The workflow's tags. *
*/ private java.util.Map* Gets metadata for workflow. *
*/ private java.util.Map* The computational accelerator specified to run the workflow. *
*/ private String accelerators; /** ** The workflow's ARN. *
* * @param arn * The workflow's ARN. */ public void setArn(String arn) { this.arn = arn; } /** ** The workflow's ARN. *
* * @return The workflow's ARN. */ public String getArn() { return this.arn; } /** ** The workflow's ARN. *
* * @param arn * The workflow's ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withArn(String arn) { setArn(arn); return this; } /** ** The workflow's ID. *
* * @param id * The workflow's ID. */ public void setId(String id) { this.id = id; } /** ** The workflow's ID. *
* * @return The workflow's ID. */ public String getId() { return this.id; } /** ** The workflow's ID. *
* * @param id * The workflow's ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withId(String id) { setId(id); return this; } /** ** The workflow's status. *
* * @param status * The workflow's status. * @see WorkflowStatus */ public void setStatus(String status) { this.status = status; } /** ** The workflow's status. *
* * @return The workflow's status. * @see WorkflowStatus */ public String getStatus() { return this.status; } /** ** The workflow's status. *
* * @param status * The workflow's status. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowStatus */ public GetWorkflowResult withStatus(String status) { setStatus(status); return this; } /** ** The workflow's status. *
* * @param status * The workflow's status. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowStatus */ public GetWorkflowResult withStatus(WorkflowStatus status) { this.status = status.toString(); return this; } /** ** The workflow's type. *
* * @param type * The workflow's type. * @see WorkflowType */ public void setType(String type) { this.type = type; } /** ** The workflow's type. *
* * @return The workflow's type. * @see WorkflowType */ public String getType() { return this.type; } /** ** The workflow's type. *
* * @param type * The workflow's type. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowType */ public GetWorkflowResult withType(String type) { setType(type); return this; } /** ** The workflow's type. *
* * @param type * The workflow's type. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowType */ public GetWorkflowResult withType(WorkflowType type) { this.type = type.toString(); return this; } /** ** The workflow's name. *
* * @param name * The workflow's name. */ public void setName(String name) { this.name = name; } /** ** The workflow's name. *
* * @return The workflow's name. */ public String getName() { return this.name; } /** ** The workflow's name. *
* * @param name * The workflow's name. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withName(String name) { setName(name); return this; } /** ** The workflow's description. *
* * @param description * The workflow's description. */ public void setDescription(String description) { this.description = description; } /** ** The workflow's description. *
* * @return The workflow's description. */ public String getDescription() { return this.description; } /** ** The workflow's description. *
* * @param description * The workflow's description. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withDescription(String description) { setDescription(description); return this; } /** ** The workflow's engine. *
* * @param engine * The workflow's engine. * @see WorkflowEngine */ public void setEngine(String engine) { this.engine = engine; } /** ** The workflow's engine. *
* * @return The workflow's engine. * @see WorkflowEngine */ public String getEngine() { return this.engine; } /** ** The workflow's engine. *
* * @param engine * The workflow's engine. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowEngine */ public GetWorkflowResult withEngine(String engine) { setEngine(engine); return this; } /** ** The workflow's engine. *
* * @param engine * The workflow's engine. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowEngine */ public GetWorkflowResult withEngine(WorkflowEngine engine) { this.engine = engine.toString(); return this; } /** ** The workflow's definition. *
* * @param definition * The workflow's definition. */ public void setDefinition(String definition) { this.definition = definition; } /** ** The workflow's definition. *
* * @return The workflow's definition. */ public String getDefinition() { return this.definition; } /** ** The workflow's definition. *
* * @param definition * The workflow's definition. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withDefinition(String definition) { setDefinition(definition); return this; } /** ** The path of the main definition file for the workflow. *
* * @param main * The path of the main definition file for the workflow. */ public void setMain(String main) { this.main = main; } /** ** The path of the main definition file for the workflow. *
* * @return The path of the main definition file for the workflow. */ public String getMain() { return this.main; } /** ** The path of the main definition file for the workflow. *
* * @param main * The path of the main definition file for the workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withMain(String main) { setMain(main); return this; } /** ** The workflow's digest. *
* * @param digest * The workflow's digest. */ public void setDigest(String digest) { this.digest = digest; } /** ** The workflow's digest. *
* * @return The workflow's digest. */ public String getDigest() { return this.digest; } /** ** The workflow's digest. *
* * @param digest * The workflow's digest. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withDigest(String digest) { setDigest(digest); return this; } /** ** The workflow's parameter template. *
* * @return The workflow's parameter template. */ public java.util.Map* The workflow's parameter template. *
* * @param parameterTemplate * The workflow's parameter template. */ public void setParameterTemplate(java.util.Map* The workflow's parameter template. *
* * @param parameterTemplate * The workflow's parameter template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withParameterTemplate(java.util.Map* The workflow's storage capacity in gigabytes. *
* * @param storageCapacity * The workflow's storage capacity in gigabytes. */ public void setStorageCapacity(Integer storageCapacity) { this.storageCapacity = storageCapacity; } /** ** The workflow's storage capacity in gigabytes. *
* * @return The workflow's storage capacity in gigabytes. */ public Integer getStorageCapacity() { return this.storageCapacity; } /** ** The workflow's storage capacity in gigabytes. *
* * @param storageCapacity * The workflow's storage capacity in gigabytes. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withStorageCapacity(Integer storageCapacity) { setStorageCapacity(storageCapacity); return this; } /** ** When the workflow was created. *
* * @param creationTime * When the workflow was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** When the workflow was created. *
* * @return When the workflow was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** When the workflow was created. *
* * @param creationTime * When the workflow was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The workflow's status message. *
* * @param statusMessage * The workflow's status message. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** The workflow's status message. *
* * @return The workflow's status message. */ public String getStatusMessage() { return this.statusMessage; } /** ** The workflow's status message. *
* * @param statusMessage * The workflow's status message. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** ** The workflow's tags. *
* * @return The workflow's tags. */ public java.util.Map* The workflow's tags. *
* * @param tags * The workflow's tags. */ public void setTags(java.util.Map* The workflow's tags. *
* * @param tags * The workflow's tags. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withTags(java.util.Map* Gets metadata for workflow. *
* * @return Gets metadata for workflow. */ public java.util.Map* Gets metadata for workflow. *
* * @param metadata * Gets metadata for workflow. */ public void setMetadata(java.util.Map* Gets metadata for workflow. *
* * @param metadata * Gets metadata for workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowResult withMetadata(java.util.Map* The computational accelerator specified to run the workflow. *
* * @param accelerators * The computational accelerator specified to run the workflow. * @see Accelerators */ public void setAccelerators(String accelerators) { this.accelerators = accelerators; } /** ** The computational accelerator specified to run the workflow. *
* * @return The computational accelerator specified to run the workflow. * @see Accelerators */ public String getAccelerators() { return this.accelerators; } /** ** The computational accelerator specified to run the workflow. *
* * @param accelerators * The computational accelerator specified to run the workflow. * @return Returns a reference to this object so that method calls can be chained together. * @see Accelerators */ public GetWorkflowResult withAccelerators(String accelerators) { setAccelerators(accelerators); return this; } /** ** The computational accelerator specified to run the workflow. *
* * @param accelerators * The computational accelerator specified to run the workflow. * @return Returns a reference to this object so that method calls can be chained together. * @see Accelerators */ public GetWorkflowResult withAccelerators(Accelerators accelerators) { this.accelerators = accelerators.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getDefinition() != null) sb.append("Definition: ").append(getDefinition()).append(","); if (getMain() != null) sb.append("Main: ").append(getMain()).append(","); if (getDigest() != null) sb.append("Digest: ").append(getDigest()).append(","); if (getParameterTemplate() != null) sb.append("ParameterTemplate: ").append(getParameterTemplate()).append(","); if (getStorageCapacity() != null) sb.append("StorageCapacity: ").append(getStorageCapacity()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()).append(","); if (getAccelerators() != null) sb.append("Accelerators: ").append(getAccelerators()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetWorkflowResult == false) return false; GetWorkflowResult other = (GetWorkflowResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEngine() == null ^ this.getEngine() == null) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false) return false; if (other.getDefinition() == null ^ this.getDefinition() == null) return false; if (other.getDefinition() != null && other.getDefinition().equals(this.getDefinition()) == false) return false; if (other.getMain() == null ^ this.getMain() == null) return false; if (other.getMain() != null && other.getMain().equals(this.getMain()) == false) return false; if (other.getDigest() == null ^ this.getDigest() == null) return false; if (other.getDigest() != null && other.getDigest().equals(this.getDigest()) == false) return false; if (other.getParameterTemplate() == null ^ this.getParameterTemplate() == null) return false; if (other.getParameterTemplate() != null && other.getParameterTemplate().equals(this.getParameterTemplate()) == false) return false; if (other.getStorageCapacity() == null ^ this.getStorageCapacity() == null) return false; if (other.getStorageCapacity() != null && other.getStorageCapacity().equals(this.getStorageCapacity()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getAccelerators() == null ^ this.getAccelerators() == null) return false; if (other.getAccelerators() != null && other.getAccelerators().equals(this.getAccelerators()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getDefinition() == null) ? 0 : getDefinition().hashCode()); hashCode = prime * hashCode + ((getMain() == null) ? 0 : getMain().hashCode()); hashCode = prime * hashCode + ((getDigest() == null) ? 0 : getDigest().hashCode()); hashCode = prime * hashCode + ((getParameterTemplate() == null) ? 0 : getParameterTemplate().hashCode()); hashCode = prime * hashCode + ((getStorageCapacity() == null) ? 0 : getStorageCapacity().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getAccelerators() == null) ? 0 : getAccelerators().hashCode()); return hashCode; } @Override public GetWorkflowResult clone() { try { return (GetWorkflowResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }