if (getVersionNumber() != null) sb.append("VersionNumber: ").append(getVersionNumber()).append(","); if (getApproximateSecondsBeforeTimedOut() != null) sb.append("ApproximateSecondsBeforeTimedOut: ").append(getApproximateSecondsBeforeTimedOut()); sb.append("}"); return sb.toString();
@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.getVersionNumber() != null && other.getVersionNumber().equals(this.getVersionNumber()) == false) return false; if (other.getApproximateSecondsBeforeTimedOut() == null ^ this.getApproximateSecondsBeforeTimedOut() == null) return false; if (other.getApproximateSecondsBeforeTimedOut() != null && other.getApproximateSecondsBeforeTimedOut().equals(this.getApproximateSecondsBeforeTimedOut()) == false) return false; return true;
/** * 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 (getVersionNumber() != null) sb.append("versionNumber: " + getVersionNumber() + ","); if (getApproximateSecondsBeforeTimedOut() != null) sb.append("approximateSecondsBeforeTimedOut: " + getApproximateSecondsBeforeTimedOut()); sb.append("}"); return sb.toString();
@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; }
&& other.getVersionNumber().equals(this.getVersionNumber()) == false) return false; if (other.getApproximateSecondsBeforeTimedOut() == null ^ this.getApproximateSecondsBeforeTimedOut() == null) return false; if (other.getApproximateSecondsBeforeTimedOut() != null && other.getApproximateSecondsBeforeTimedOut().equals( this.getApproximateSecondsBeforeTimedOut()) == false) return false; return true;
jsonWriter.value(versionNumber); if (jobExecution.getApproximateSecondsBeforeTimedOut() != null) { Long approximateSecondsBeforeTimedOut = jobExecution .getApproximateSecondsBeforeTimedOut(); jsonWriter.name("approximateSecondsBeforeTimedOut"); jsonWriter.value(approximateSecondsBeforeTimedOut);
if (getVersionNumber() != null) sb.append("VersionNumber: ").append(getVersionNumber()).append(","); if (getApproximateSecondsBeforeTimedOut() != null) sb.append("ApproximateSecondsBeforeTimedOut: ").append(getApproximateSecondsBeforeTimedOut()); sb.append("}"); return sb.toString();
@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 (getVersionNumber() != null) sb.append("versionNumber: " + getVersionNumber() + ","); if (getApproximateSecondsBeforeTimedOut() != null) sb.append("approximateSecondsBeforeTimedOut: " + getApproximateSecondsBeforeTimedOut()); sb.append("}"); return sb.toString();
@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.getVersionNumber() != null && other.getVersionNumber().equals(this.getVersionNumber()) == false) return false; if (other.getApproximateSecondsBeforeTimedOut() == null ^ this.getApproximateSecondsBeforeTimedOut() == null) return false; if (other.getApproximateSecondsBeforeTimedOut() != null && other.getApproximateSecondsBeforeTimedOut().equals(this.getApproximateSecondsBeforeTimedOut()) == false) return false; return true;
&& other.getVersionNumber().equals(this.getVersionNumber()) == false) return false; if (other.getApproximateSecondsBeforeTimedOut() == null ^ this.getApproximateSecondsBeforeTimedOut() == null) return false; if (other.getApproximateSecondsBeforeTimedOut() != null && other.getApproximateSecondsBeforeTimedOut().equals( this.getApproximateSecondsBeforeTimedOut()) == false) return false; return true;
/** * 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(versionNumber); if (jobExecution.getApproximateSecondsBeforeTimedOut() != null) { Long approximateSecondsBeforeTimedOut = jobExecution .getApproximateSecondsBeforeTimedOut(); jsonWriter.name("approximateSecondsBeforeTimedOut"); jsonWriter.value(approximateSecondsBeforeTimedOut);