* The run's ARN. *
*/ private String arn; /** ** The run's ID. *
*/ private String id; /** ** The run's status. *
*/ private String status; /** ** The run's workflow ID. *
*/ private String workflowId; /** ** The run's workflow type. *
*/ private String workflowType; /** ** The run's ID. *
*/ private String runId; /** ** The run's service role ARN. *
*/ private String roleArn; /** ** The run's name. *
*/ private String name; /** ** The run's group ID. *
*/ private String runGroupId; /** ** The run's priority. *
*/ private Integer priority; /** ** The run's definition. *
*/ private String definition; /** ** The run's digest. *
*/ private String digest; /** ** The run's storage capacity in gigabytes. *
*/ private Integer storageCapacity; /** ** The run's output URI. *
*/ private String outputUri; /** ** The run's log level. *
*/ private String logLevel; /** ** The run's resource digests. *
*/ private java.util.Map* Who started the run. *
*/ private String startedBy; /** ** When the run was created. *
*/ private java.util.Date creationTime; /** ** When the run started. *
*/ private java.util.Date startTime; /** ** The run's stop time. *
*/ private java.util.Date stopTime; /** ** The run's status message. *
*/ private String statusMessage; /** ** The run's tags. *
*/ private java.util.Map* The computational accelerator used to run the workflow. *
*/ private String accelerators; /** ** The run's ARN. *
* * @param arn * The run's ARN. */ public void setArn(String arn) { this.arn = arn; } /** ** The run's ARN. *
* * @return The run's ARN. */ public String getArn() { return this.arn; } /** ** The run's ARN. *
* * @param arn * The run's ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withArn(String arn) { setArn(arn); return this; } /** ** The run's ID. *
* * @param id * The run's ID. */ public void setId(String id) { this.id = id; } /** ** The run's ID. *
* * @return The run's ID. */ public String getId() { return this.id; } /** ** The run's ID. *
* * @param id * The run's ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withId(String id) { setId(id); return this; } /** ** The run's status. *
* * @param status * The run's status. * @see RunStatus */ public void setStatus(String status) { this.status = status; } /** ** The run's status. *
* * @return The run's status. * @see RunStatus */ public String getStatus() { return this.status; } /** ** The run's status. *
* * @param status * The run's status. * @return Returns a reference to this object so that method calls can be chained together. * @see RunStatus */ public GetRunResult withStatus(String status) { setStatus(status); return this; } /** ** The run's status. *
* * @param status * The run's status. * @return Returns a reference to this object so that method calls can be chained together. * @see RunStatus */ public GetRunResult withStatus(RunStatus status) { this.status = status.toString(); return this; } /** ** The run's workflow ID. *
* * @param workflowId * The run's workflow ID. */ public void setWorkflowId(String workflowId) { this.workflowId = workflowId; } /** ** The run's workflow ID. *
* * @return The run's workflow ID. */ public String getWorkflowId() { return this.workflowId; } /** ** The run's workflow ID. *
* * @param workflowId * The run's workflow ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withWorkflowId(String workflowId) { setWorkflowId(workflowId); return this; } /** ** The run's workflow type. *
* * @param workflowType * The run's workflow type. * @see WorkflowType */ public void setWorkflowType(String workflowType) { this.workflowType = workflowType; } /** ** The run's workflow type. *
* * @return The run's workflow type. * @see WorkflowType */ public String getWorkflowType() { return this.workflowType; } /** ** The run's workflow type. *
* * @param workflowType * The run's workflow type. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowType */ public GetRunResult withWorkflowType(String workflowType) { setWorkflowType(workflowType); return this; } /** ** The run's workflow type. *
* * @param workflowType * The run's workflow type. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowType */ public GetRunResult withWorkflowType(WorkflowType workflowType) { this.workflowType = workflowType.toString(); return this; } /** ** The run's ID. *
* * @param runId * The run's ID. */ public void setRunId(String runId) { this.runId = runId; } /** ** The run's ID. *
* * @return The run's ID. */ public String getRunId() { return this.runId; } /** ** The run's ID. *
* * @param runId * The run's ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withRunId(String runId) { setRunId(runId); return this; } /** ** The run's service role ARN. *
* * @param roleArn * The run's service role ARN. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The run's service role ARN. *
* * @return The run's service role ARN. */ public String getRoleArn() { return this.roleArn; } /** ** The run's service role ARN. *
* * @param roleArn * The run's service role ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** The run's name. *
* * @param name * The run's name. */ public void setName(String name) { this.name = name; } /** ** The run's name. *
* * @return The run's name. */ public String getName() { return this.name; } /** ** The run's name. *
* * @param name * The run's name. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withName(String name) { setName(name); return this; } /** ** The run's group ID. *
* * @param runGroupId * The run's group ID. */ public void setRunGroupId(String runGroupId) { this.runGroupId = runGroupId; } /** ** The run's group ID. *
* * @return The run's group ID. */ public String getRunGroupId() { return this.runGroupId; } /** ** The run's group ID. *
* * @param runGroupId * The run's group ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withRunGroupId(String runGroupId) { setRunGroupId(runGroupId); return this; } /** ** The run's priority. *
* * @param priority * The run's priority. */ public void setPriority(Integer priority) { this.priority = priority; } /** ** The run's priority. *
* * @return The run's priority. */ public Integer getPriority() { return this.priority; } /** ** The run's priority. *
* * @param priority * The run's priority. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withPriority(Integer priority) { setPriority(priority); return this; } /** ** The run's definition. *
* * @param definition * The run's definition. */ public void setDefinition(String definition) { this.definition = definition; } /** ** The run's definition. *
* * @return The run's definition. */ public String getDefinition() { return this.definition; } /** ** The run's definition. *
* * @param definition * The run's definition. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withDefinition(String definition) { setDefinition(definition); return this; } /** ** The run's digest. *
* * @param digest * The run's digest. */ public void setDigest(String digest) { this.digest = digest; } /** ** The run's digest. *
* * @return The run's digest. */ public String getDigest() { return this.digest; } /** ** The run's digest. *
* * @param digest * The run's digest. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withDigest(String digest) { setDigest(digest); return this; } /** ** The run's storage capacity in gigabytes. *
* * @param storageCapacity * The run's storage capacity in gigabytes. */ public void setStorageCapacity(Integer storageCapacity) { this.storageCapacity = storageCapacity; } /** ** The run's storage capacity in gigabytes. *
* * @return The run's storage capacity in gigabytes. */ public Integer getStorageCapacity() { return this.storageCapacity; } /** ** The run's storage capacity in gigabytes. *
* * @param storageCapacity * The run's storage capacity in gigabytes. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withStorageCapacity(Integer storageCapacity) { setStorageCapacity(storageCapacity); return this; } /** ** The run's output URI. *
* * @param outputUri * The run's output URI. */ public void setOutputUri(String outputUri) { this.outputUri = outputUri; } /** ** The run's output URI. *
* * @return The run's output URI. */ public String getOutputUri() { return this.outputUri; } /** ** The run's output URI. *
* * @param outputUri * The run's output URI. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withOutputUri(String outputUri) { setOutputUri(outputUri); return this; } /** ** The run's log level. *
* * @param logLevel * The run's log level. * @see RunLogLevel */ public void setLogLevel(String logLevel) { this.logLevel = logLevel; } /** ** The run's log level. *
* * @return The run's log level. * @see RunLogLevel */ public String getLogLevel() { return this.logLevel; } /** ** The run's log level. *
* * @param logLevel * The run's log level. * @return Returns a reference to this object so that method calls can be chained together. * @see RunLogLevel */ public GetRunResult withLogLevel(String logLevel) { setLogLevel(logLevel); return this; } /** ** The run's log level. *
* * @param logLevel * The run's log level. * @return Returns a reference to this object so that method calls can be chained together. * @see RunLogLevel */ public GetRunResult withLogLevel(RunLogLevel logLevel) { this.logLevel = logLevel.toString(); return this; } /** ** The run's resource digests. *
* * @return The run's resource digests. */ public java.util.Map* The run's resource digests. *
* * @param resourceDigests * The run's resource digests. */ public void setResourceDigests(java.util.Map* The run's resource digests. *
* * @param resourceDigests * The run's resource digests. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withResourceDigests(java.util.Map* Who started the run. *
* * @param startedBy * Who started the run. */ public void setStartedBy(String startedBy) { this.startedBy = startedBy; } /** ** Who started the run. *
* * @return Who started the run. */ public String getStartedBy() { return this.startedBy; } /** ** Who started the run. *
* * @param startedBy * Who started the run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withStartedBy(String startedBy) { setStartedBy(startedBy); return this; } /** ** When the run was created. *
* * @param creationTime * When the run was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** When the run was created. *
* * @return When the run was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** When the run was created. *
* * @param creationTime * When the run was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** When the run started. *
* * @param startTime * When the run started. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** When the run started. *
* * @return When the run started. */ public java.util.Date getStartTime() { return this.startTime; } /** ** When the run started. *
* * @param startTime * When the run started. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** The run's stop time. *
* * @param stopTime * The run's stop time. */ public void setStopTime(java.util.Date stopTime) { this.stopTime = stopTime; } /** ** The run's stop time. *
* * @return The run's stop time. */ public java.util.Date getStopTime() { return this.stopTime; } /** ** The run's stop time. *
* * @param stopTime * The run's stop time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withStopTime(java.util.Date stopTime) { setStopTime(stopTime); return this; } /** ** The run's status message. *
* * @param statusMessage * The run's status message. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** The run's status message. *
* * @return The run's status message. */ public String getStatusMessage() { return this.statusMessage; } /** ** The run's status message. *
* * @param statusMessage * The run's status message. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** ** The run's tags. *
* * @return The run's tags. */ public java.util.Map* The run's tags. *
* * @param tags * The run's tags. */ public void setTags(java.util.Map* The run's tags. *
* * @param tags * The run's tags. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRunResult withTags(java.util.Map* The computational accelerator used to run the workflow. *
* * @param accelerators * The computational accelerator used to run the workflow. * @see Accelerators */ public void setAccelerators(String accelerators) { this.accelerators = accelerators; } /** ** The computational accelerator used to run the workflow. *
* * @return The computational accelerator used to run the workflow. * @see Accelerators */ public String getAccelerators() { return this.accelerators; } /** ** The computational accelerator used to run the workflow. *
* * @param accelerators * The computational accelerator used to run the workflow. * @return Returns a reference to this object so that method calls can be chained together. * @see Accelerators */ public GetRunResult withAccelerators(String accelerators) { setAccelerators(accelerators); return this; } /** ** The computational accelerator used to run the workflow. *
* * @param accelerators * The computational accelerator used to run the workflow. * @return Returns a reference to this object so that method calls can be chained together. * @see Accelerators */ public GetRunResult 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 (getWorkflowId() != null) sb.append("WorkflowId: ").append(getWorkflowId()).append(","); if (getWorkflowType() != null) sb.append("WorkflowType: ").append(getWorkflowType()).append(","); if (getRunId() != null) sb.append("RunId: ").append(getRunId()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRunGroupId() != null) sb.append("RunGroupId: ").append(getRunGroupId()).append(","); if (getPriority() != null) sb.append("Priority: ").append(getPriority()).append(","); if (getDefinition() != null) sb.append("Definition: ").append(getDefinition()).append(","); if (getDigest() != null) sb.append("Digest: ").append(getDigest()).append(","); if (getStorageCapacity() != null) sb.append("StorageCapacity: ").append(getStorageCapacity()).append(","); if (getOutputUri() != null) sb.append("OutputUri: ").append(getOutputUri()).append(","); if (getLogLevel() != null) sb.append("LogLevel: ").append(getLogLevel()).append(","); if (getResourceDigests() != null) sb.append("ResourceDigests: ").append(getResourceDigests()).append(","); if (getStartedBy() != null) sb.append("StartedBy: ").append(getStartedBy()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getStopTime() != null) sb.append("StopTime: ").append(getStopTime()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).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 GetRunResult == false) return false; GetRunResult other = (GetRunResult) 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.getWorkflowId() == null ^ this.getWorkflowId() == null) return false; if (other.getWorkflowId() != null && other.getWorkflowId().equals(this.getWorkflowId()) == false) return false; if (other.getWorkflowType() == null ^ this.getWorkflowType() == null) return false; if (other.getWorkflowType() != null && other.getWorkflowType().equals(this.getWorkflowType()) == false) return false; if (other.getRunId() == null ^ this.getRunId() == null) return false; if (other.getRunId() != null && other.getRunId().equals(this.getRunId()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == 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.getRunGroupId() == null ^ this.getRunGroupId() == null) return false; if (other.getRunGroupId() != null && other.getRunGroupId().equals(this.getRunGroupId()) == false) return false; if (other.getPriority() == null ^ this.getPriority() == null) return false; if (other.getPriority() != null && other.getPriority().equals(this.getPriority()) == 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.getDigest() == null ^ this.getDigest() == null) return false; if (other.getDigest() != null && other.getDigest().equals(this.getDigest()) == 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.getOutputUri() == null ^ this.getOutputUri() == null) return false; if (other.getOutputUri() != null && other.getOutputUri().equals(this.getOutputUri()) == false) return false; if (other.getLogLevel() == null ^ this.getLogLevel() == null) return false; if (other.getLogLevel() != null && other.getLogLevel().equals(this.getLogLevel()) == false) return false; if (other.getResourceDigests() == null ^ this.getResourceDigests() == null) return false; if (other.getResourceDigests() != null && other.getResourceDigests().equals(this.getResourceDigests()) == false) return false; if (other.getStartedBy() == null ^ this.getStartedBy() == null) return false; if (other.getStartedBy() != null && other.getStartedBy().equals(this.getStartedBy()) == 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.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getStopTime() == null ^ this.getStopTime() == null) return false; if (other.getStopTime() != null && other.getStopTime().equals(this.getStopTime()) == 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.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 + ((getWorkflowId() == null) ? 0 : getWorkflowId().hashCode()); hashCode = prime * hashCode + ((getWorkflowType() == null) ? 0 : getWorkflowType().hashCode()); hashCode = prime * hashCode + ((getRunId() == null) ? 0 : getRunId().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRunGroupId() == null) ? 0 : getRunGroupId().hashCode()); hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode()); hashCode = prime * hashCode + ((getDefinition() == null) ? 0 : getDefinition().hashCode()); hashCode = prime * hashCode + ((getDigest() == null) ? 0 : getDigest().hashCode()); hashCode = prime * hashCode + ((getStorageCapacity() == null) ? 0 : getStorageCapacity().hashCode()); hashCode = prime * hashCode + ((getOutputUri() == null) ? 0 : getOutputUri().hashCode()); hashCode = prime * hashCode + ((getLogLevel() == null) ? 0 : getLogLevel().hashCode()); hashCode = prime * hashCode + ((getResourceDigests() == null) ? 0 : getResourceDigests().hashCode()); hashCode = prime * hashCode + ((getStartedBy() == null) ? 0 : getStartedBy().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getStopTime() == null) ? 0 : getStopTime().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getAccelerators() == null) ? 0 : getAccelerators().hashCode()); return hashCode; } @Override public GetRunResult clone() { try { return (GetRunResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }