* The ID of the execution. *
*/ private String executionId; /** ** When the status of the execution was last updated. *
*/ private java.util.Date lastUpdatedAt; /** ** The ID of the managed device that the task is being executed on. *
*/ private String managedDeviceId; /** ** When the execution began. *
*/ private java.util.Date startedAt; /** ** The current state of the execution. *
*/ private String state; /** ** The ID of the task being executed on the device. *
*/ private String taskId; /** ** The ID of the execution. *
* * @param executionId * The ID of the execution. */ public void setExecutionId(String executionId) { this.executionId = executionId; } /** ** The ID of the execution. *
* * @return The ID of the execution. */ public String getExecutionId() { return this.executionId; } /** ** The ID of the execution. *
* * @param executionId * The ID of the execution. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeExecutionResult withExecutionId(String executionId) { setExecutionId(executionId); return this; } /** ** When the status of the execution was last updated. *
* * @param lastUpdatedAt * When the status of the execution was last updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** ** When the status of the execution was last updated. *
* * @return When the status of the execution was last updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** ** When the status of the execution was last updated. *
* * @param lastUpdatedAt * When the status of the execution was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeExecutionResult withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** ** The ID of the managed device that the task is being executed on. *
* * @param managedDeviceId * The ID of the managed device that the task is being executed on. */ public void setManagedDeviceId(String managedDeviceId) { this.managedDeviceId = managedDeviceId; } /** ** The ID of the managed device that the task is being executed on. *
* * @return The ID of the managed device that the task is being executed on. */ public String getManagedDeviceId() { return this.managedDeviceId; } /** ** The ID of the managed device that the task is being executed on. *
* * @param managedDeviceId * The ID of the managed device that the task is being executed on. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeExecutionResult withManagedDeviceId(String managedDeviceId) { setManagedDeviceId(managedDeviceId); return this; } /** ** When the execution began. *
* * @param startedAt * When the execution began. */ public void setStartedAt(java.util.Date startedAt) { this.startedAt = startedAt; } /** ** When the execution began. *
* * @return When the execution began. */ public java.util.Date getStartedAt() { return this.startedAt; } /** ** When the execution began. *
* * @param startedAt * When the execution began. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeExecutionResult withStartedAt(java.util.Date startedAt) { setStartedAt(startedAt); return this; } /** ** The current state of the execution. *
* * @param state * The current state of the execution. * @see ExecutionState */ public void setState(String state) { this.state = state; } /** ** The current state of the execution. *
* * @return The current state of the execution. * @see ExecutionState */ public String getState() { return this.state; } /** ** The current state of the execution. *
* * @param state * The current state of the execution. * @return Returns a reference to this object so that method calls can be chained together. * @see ExecutionState */ public DescribeExecutionResult withState(String state) { setState(state); return this; } /** ** The current state of the execution. *
* * @param state * The current state of the execution. * @return Returns a reference to this object so that method calls can be chained together. * @see ExecutionState */ public DescribeExecutionResult withState(ExecutionState state) { this.state = state.toString(); return this; } /** ** The ID of the task being executed on the device. *
* * @param taskId * The ID of the task being executed on the device. */ public void setTaskId(String taskId) { this.taskId = taskId; } /** ** The ID of the task being executed on the device. *
* * @return The ID of the task being executed on the device. */ public String getTaskId() { return this.taskId; } /** ** The ID of the task being executed on the device. *
* * @param taskId * The ID of the task being executed on the device. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeExecutionResult withTaskId(String taskId) { setTaskId(taskId); 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 (getExecutionId() != null) sb.append("ExecutionId: ").append(getExecutionId()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getManagedDeviceId() != null) sb.append("ManagedDeviceId: ").append(getManagedDeviceId()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getTaskId() != null) sb.append("TaskId: ").append(getTaskId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeExecutionResult == false) return false; DescribeExecutionResult other = (DescribeExecutionResult) obj; if (other.getExecutionId() == null ^ this.getExecutionId() == null) return false; if (other.getExecutionId() != null && other.getExecutionId().equals(this.getExecutionId()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getManagedDeviceId() == null ^ this.getManagedDeviceId() == null) return false; if (other.getManagedDeviceId() != null && other.getManagedDeviceId().equals(this.getManagedDeviceId()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null) return false; if (other.getStartedAt() != null && other.getStartedAt().equals(this.getStartedAt()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getTaskId() == null ^ this.getTaskId() == null) return false; if (other.getTaskId() != null && other.getTaskId().equals(this.getTaskId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExecutionId() == null) ? 0 : getExecutionId().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getManagedDeviceId() == null) ? 0 : getManagedDeviceId().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getTaskId() == null) ? 0 : getTaskId().hashCode()); return hashCode; } @Override public DescribeExecutionResult clone() { try { return (DescribeExecutionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }