if (getThingArn() != null) sb.append("ThingArn: ").append(getThingArn()).append(","); if (getQueuedAt() != null) sb.append("QueuedAt: ").append(getQueuedAt()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getForceCanceled() == null) ? 0 : getForceCanceled().hashCode()); hashCode = prime * hashCode + ((getStatusDetails() == null) ? 0 : getStatusDetails().hashCode()); hashCode = prime * hashCode + ((getThingArn() == null) ? 0 : getThingArn().hashCode()); hashCode = prime * hashCode + ((getQueuedAt() == null) ? 0 : getQueuedAt().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getExecutionNumber() == null) ? 0 : getExecutionNumber().hashCode()); hashCode = prime * hashCode + ((getVersionNumber() == null) ? 0 : getVersionNumber().hashCode()); hashCode = prime * hashCode + ((getApproximateSecondsBeforeTimedOut() == null) ? 0 : getApproximateSecondsBeforeTimedOut().hashCode()); return hashCode; }
if (other.getThingArn() != null && other.getThingArn().equals(this.getThingArn()) == false) return false; if (other.getQueuedAt() == null ^ this.getQueuedAt() == null) return false; if (other.getQueuedAt() != null && other.getQueuedAt().equals(this.getQueuedAt()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null)
/** * Marshall the given parameter object. */ public void marshall(JobExecution jobExecution, ProtocolMarshaller protocolMarshaller) { if (jobExecution == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(jobExecution.getJobId(), JOBID_BINDING); protocolMarshaller.marshall(jobExecution.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(jobExecution.getForceCanceled(), FORCECANCELED_BINDING); protocolMarshaller.marshall(jobExecution.getStatusDetails(), STATUSDETAILS_BINDING); protocolMarshaller.marshall(jobExecution.getThingArn(), THINGARN_BINDING); protocolMarshaller.marshall(jobExecution.getQueuedAt(), QUEUEDAT_BINDING); protocolMarshaller.marshall(jobExecution.getStartedAt(), STARTEDAT_BINDING); protocolMarshaller.marshall(jobExecution.getLastUpdatedAt(), LASTUPDATEDAT_BINDING); protocolMarshaller.marshall(jobExecution.getExecutionNumber(), EXECUTIONNUMBER_BINDING); protocolMarshaller.marshall(jobExecution.getVersionNumber(), VERSIONNUMBER_BINDING); protocolMarshaller.marshall(jobExecution.getApproximateSecondsBeforeTimedOut(), APPROXIMATESECONDSBEFORETIMEDOUT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getThingArn() != null) sb.append("thingArn: " + getThingArn() + ","); if (getQueuedAt() != null) sb.append("queuedAt: " + getQueuedAt() + ","); if (getStartedAt() != null) sb.append("startedAt: " + getStartedAt() + ",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getForceCanceled() == null) ? 0 : getForceCanceled().hashCode()); hashCode = prime * hashCode + ((getStatusDetails() == null) ? 0 : getStatusDetails().hashCode()); hashCode = prime * hashCode + ((getThingArn() == null) ? 0 : getThingArn().hashCode()); hashCode = prime * hashCode + ((getQueuedAt() == null) ? 0 : getQueuedAt().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getExecutionNumber() == null) ? 0 : getExecutionNumber().hashCode()); hashCode = prime * hashCode + ((getVersionNumber() == null) ? 0 : getVersionNumber().hashCode()); hashCode = prime * hashCode + ((getApproximateSecondsBeforeTimedOut() == null) ? 0 : getApproximateSecondsBeforeTimedOut().hashCode()); return hashCode; }
if (other.getThingArn() != null && other.getThingArn().equals(this.getThingArn()) == false) return false; if (other.getQueuedAt() == null ^ this.getQueuedAt() == null) return false; if (other.getQueuedAt() != null && other.getQueuedAt().equals(this.getQueuedAt()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null)
jsonWriter.value(thingArn); if (jobExecution.getQueuedAt() != null) { java.util.Date queuedAt = jobExecution.getQueuedAt(); jsonWriter.name("queuedAt"); jsonWriter.value(queuedAt);
if (getThingArn() != null) sb.append("ThingArn: ").append(getThingArn()).append(","); if (getQueuedAt() != null) sb.append("QueuedAt: ").append(getQueuedAt()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getForceCanceled() == null) ? 0 : getForceCanceled().hashCode()); hashCode = prime * hashCode + ((getStatusDetails() == null) ? 0 : getStatusDetails().hashCode()); hashCode = prime * hashCode + ((getThingArn() == null) ? 0 : getThingArn().hashCode()); hashCode = prime * hashCode + ((getQueuedAt() == null) ? 0 : getQueuedAt().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getExecutionNumber() == null) ? 0 : getExecutionNumber().hashCode()); hashCode = prime * hashCode + ((getVersionNumber() == null) ? 0 : getVersionNumber().hashCode()); hashCode = prime * hashCode + ((getApproximateSecondsBeforeTimedOut() == null) ? 0 : getApproximateSecondsBeforeTimedOut().hashCode()); return hashCode; }
if (getThingArn() != null) sb.append("thingArn: " + getThingArn() + ","); if (getQueuedAt() != null) sb.append("queuedAt: " + getQueuedAt() + ","); if (getStartedAt() != null) sb.append("startedAt: " + getStartedAt() + ",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getForceCanceled() == null) ? 0 : getForceCanceled().hashCode()); hashCode = prime * hashCode + ((getStatusDetails() == null) ? 0 : getStatusDetails().hashCode()); hashCode = prime * hashCode + ((getThingArn() == null) ? 0 : getThingArn().hashCode()); hashCode = prime * hashCode + ((getQueuedAt() == null) ? 0 : getQueuedAt().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getExecutionNumber() == null) ? 0 : getExecutionNumber().hashCode()); hashCode = prime * hashCode + ((getVersionNumber() == null) ? 0 : getVersionNumber().hashCode()); hashCode = prime * hashCode + ((getApproximateSecondsBeforeTimedOut() == null) ? 0 : getApproximateSecondsBeforeTimedOut().hashCode()); return hashCode; }
if (other.getThingArn() != null && other.getThingArn().equals(this.getThingArn()) == false) return false; if (other.getQueuedAt() == null ^ this.getQueuedAt() == null) return false; if (other.getQueuedAt() != null && other.getQueuedAt().equals(this.getQueuedAt()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null)
if (other.getThingArn() != null && other.getThingArn().equals(this.getThingArn()) == false) return false; if (other.getQueuedAt() == null ^ this.getQueuedAt() == null) return false; if (other.getQueuedAt() != null && other.getQueuedAt().equals(this.getQueuedAt()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null)
/** * Marshall the given parameter object. */ public void marshall(JobExecution jobExecution, ProtocolMarshaller protocolMarshaller) { if (jobExecution == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(jobExecution.getJobId(), JOBID_BINDING); protocolMarshaller.marshall(jobExecution.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(jobExecution.getForceCanceled(), FORCECANCELED_BINDING); protocolMarshaller.marshall(jobExecution.getStatusDetails(), STATUSDETAILS_BINDING); protocolMarshaller.marshall(jobExecution.getThingArn(), THINGARN_BINDING); protocolMarshaller.marshall(jobExecution.getQueuedAt(), QUEUEDAT_BINDING); protocolMarshaller.marshall(jobExecution.getStartedAt(), STARTEDAT_BINDING); protocolMarshaller.marshall(jobExecution.getLastUpdatedAt(), LASTUPDATEDAT_BINDING); protocolMarshaller.marshall(jobExecution.getExecutionNumber(), EXECUTIONNUMBER_BINDING); protocolMarshaller.marshall(jobExecution.getVersionNumber(), VERSIONNUMBER_BINDING); protocolMarshaller.marshall(jobExecution.getApproximateSecondsBeforeTimedOut(), APPROXIMATESECONDSBEFORETIMEDOUT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
jsonWriter.value(thingArn); if (jobExecution.getQueuedAt() != null) { java.util.Date queuedAt = jobExecution.getQueuedAt(); jsonWriter.name("queuedAt"); jsonWriter.value(queuedAt);