if (getTargetSelection() != null) sb.append("TargetSelection: ").append(getTargetSelection()).append(","); if (getOtaUpdateFiles() != null) sb.append("OtaUpdateFiles: ").append(getOtaUpdateFiles()).append(","); if (getOtaUpdateStatus() != null) sb.append("OtaUpdateStatus: ").append(getOtaUpdateStatus()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOtaUpdateId() == null) ? 0 : getOtaUpdateId().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateArn() == null) ? 0 : getOtaUpdateArn().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getTargets() == null) ? 0 : getTargets().hashCode()); hashCode = prime * hashCode + ((getAwsJobExecutionsRolloutConfig() == null) ? 0 : getAwsJobExecutionsRolloutConfig().hashCode()); hashCode = prime * hashCode + ((getTargetSelection() == null) ? 0 : getTargetSelection().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateFiles() == null) ? 0 : getOtaUpdateFiles().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateStatus() == null) ? 0 : getOtaUpdateStatus().hashCode()); hashCode = prime * hashCode + ((getAwsIotJobId() == null) ? 0 : getAwsIotJobId().hashCode()); hashCode = prime * hashCode + ((getAwsIotJobArn() == null) ? 0 : getAwsIotJobArn().hashCode()); hashCode = prime * hashCode + ((getErrorInfo() == null) ? 0 : getErrorInfo().hashCode()); hashCode = prime * hashCode + ((getAdditionalParameters() == null) ? 0 : getAdditionalParameters().hashCode()); return hashCode; }
if (other.getTargetSelection() != null && other.getTargetSelection().equals(this.getTargetSelection()) == false) return false; if (other.getOtaUpdateFiles() == null ^ this.getOtaUpdateFiles() == null) return false; if (other.getOtaUpdateFiles() != null && other.getOtaUpdateFiles().equals(this.getOtaUpdateFiles()) == false) return false; if (other.getOtaUpdateStatus() == null ^ this.getOtaUpdateStatus() == null)
/** * Marshall the given parameter object. */ public void marshall(OTAUpdateInfo oTAUpdateInfo, ProtocolMarshaller protocolMarshaller) { if (oTAUpdateInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateId(), OTAUPDATEID_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateArn(), OTAUPDATEARN_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getCreationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getTargets(), TARGETS_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getAwsJobExecutionsRolloutConfig(), AWSJOBEXECUTIONSROLLOUTCONFIG_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getTargetSelection(), TARGETSELECTION_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateFiles(), OTAUPDATEFILES_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateStatus(), OTAUPDATESTATUS_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getAwsIotJobId(), AWSIOTJOBID_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getAwsIotJobArn(), AWSIOTJOBARN_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getErrorInfo(), ERRORINFO_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getAdditionalParameters(), ADDITIONALPARAMETERS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * <p> * A list of files associated with the OTA update. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param otaUpdateFiles <p> * A list of files associated with the OTA update. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public OTAUpdateInfo withOtaUpdateFiles(OTAUpdateFile... otaUpdateFiles) { if (getOtaUpdateFiles() == null) { this.otaUpdateFiles = new java.util.ArrayList<OTAUpdateFile>(otaUpdateFiles.length); } for (OTAUpdateFile value : otaUpdateFiles) { this.otaUpdateFiles.add(value); } return this; }
if (getTargetSelection() != null) sb.append("targetSelection: " + getTargetSelection() + ","); if (getOtaUpdateFiles() != null) sb.append("otaUpdateFiles: " + getOtaUpdateFiles() + ","); if (getOtaUpdateStatus() != null) sb.append("otaUpdateStatus: " + getOtaUpdateStatus() + ",");
+ ((getTargetSelection() == null) ? 0 : getTargetSelection().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateFiles() == null) ? 0 : getOtaUpdateFiles().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateStatus() == null) ? 0 : getOtaUpdateStatus().hashCode());
&& other.getTargetSelection().equals(this.getTargetSelection()) == false) return false; if (other.getOtaUpdateFiles() == null ^ this.getOtaUpdateFiles() == null) return false; if (other.getOtaUpdateFiles() != null && other.getOtaUpdateFiles().equals(this.getOtaUpdateFiles()) == false) return false; if (other.getOtaUpdateStatus() == null ^ this.getOtaUpdateStatus() == null)
/** * <p> * A list of files associated with the OTA update. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param otaUpdateFiles <p> * A list of files associated with the OTA update. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public OTAUpdateInfo withOtaUpdateFiles(OTAUpdateFile... otaUpdateFiles) { if (getOtaUpdateFiles() == null) { this.otaUpdateFiles = new java.util.ArrayList<OTAUpdateFile>(otaUpdateFiles.length); } for (OTAUpdateFile value : otaUpdateFiles) { this.otaUpdateFiles.add(value); } return this; }
jsonWriter.value(targetSelection); if (oTAUpdateInfo.getOtaUpdateFiles() != null) { java.util.List<OTAUpdateFile> otaUpdateFiles = oTAUpdateInfo.getOtaUpdateFiles(); jsonWriter.name("otaUpdateFiles"); jsonWriter.beginArray();
if (getTargetSelection() != null) sb.append("TargetSelection: ").append(getTargetSelection()).append(","); if (getOtaUpdateFiles() != null) sb.append("OtaUpdateFiles: ").append(getOtaUpdateFiles()).append(","); if (getOtaUpdateStatus() != null) sb.append("OtaUpdateStatus: ").append(getOtaUpdateStatus()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOtaUpdateId() == null) ? 0 : getOtaUpdateId().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateArn() == null) ? 0 : getOtaUpdateArn().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getTargets() == null) ? 0 : getTargets().hashCode()); hashCode = prime * hashCode + ((getAwsJobExecutionsRolloutConfig() == null) ? 0 : getAwsJobExecutionsRolloutConfig().hashCode()); hashCode = prime * hashCode + ((getTargetSelection() == null) ? 0 : getTargetSelection().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateFiles() == null) ? 0 : getOtaUpdateFiles().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateStatus() == null) ? 0 : getOtaUpdateStatus().hashCode()); hashCode = prime * hashCode + ((getAwsIotJobId() == null) ? 0 : getAwsIotJobId().hashCode()); hashCode = prime * hashCode + ((getAwsIotJobArn() == null) ? 0 : getAwsIotJobArn().hashCode()); hashCode = prime * hashCode + ((getErrorInfo() == null) ? 0 : getErrorInfo().hashCode()); hashCode = prime * hashCode + ((getAdditionalParameters() == null) ? 0 : getAdditionalParameters().hashCode()); return hashCode; }
if (getTargetSelection() != null) sb.append("targetSelection: " + getTargetSelection() + ","); if (getOtaUpdateFiles() != null) sb.append("otaUpdateFiles: " + getOtaUpdateFiles() + ","); if (getOtaUpdateStatus() != null) sb.append("otaUpdateStatus: " + getOtaUpdateStatus() + ",");
+ ((getTargetSelection() == null) ? 0 : getTargetSelection().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateFiles() == null) ? 0 : getOtaUpdateFiles().hashCode()); hashCode = prime * hashCode + ((getOtaUpdateStatus() == null) ? 0 : getOtaUpdateStatus().hashCode());
if (other.getTargetSelection() != null && other.getTargetSelection().equals(this.getTargetSelection()) == false) return false; if (other.getOtaUpdateFiles() == null ^ this.getOtaUpdateFiles() == null) return false; if (other.getOtaUpdateFiles() != null && other.getOtaUpdateFiles().equals(this.getOtaUpdateFiles()) == false) return false; if (other.getOtaUpdateStatus() == null ^ this.getOtaUpdateStatus() == null)
&& other.getTargetSelection().equals(this.getTargetSelection()) == false) return false; if (other.getOtaUpdateFiles() == null ^ this.getOtaUpdateFiles() == null) return false; if (other.getOtaUpdateFiles() != null && other.getOtaUpdateFiles().equals(this.getOtaUpdateFiles()) == false) return false; if (other.getOtaUpdateStatus() == null ^ this.getOtaUpdateStatus() == null)
/** * Marshall the given parameter object. */ public void marshall(OTAUpdateInfo oTAUpdateInfo, ProtocolMarshaller protocolMarshaller) { if (oTAUpdateInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateId(), OTAUPDATEID_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateArn(), OTAUPDATEARN_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getCreationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getTargets(), TARGETS_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getAwsJobExecutionsRolloutConfig(), AWSJOBEXECUTIONSROLLOUTCONFIG_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getTargetSelection(), TARGETSELECTION_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateFiles(), OTAUPDATEFILES_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateStatus(), OTAUPDATESTATUS_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getAwsIotJobId(), AWSIOTJOBID_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getAwsIotJobArn(), AWSIOTJOBARN_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getErrorInfo(), ERRORINFO_BINDING); protocolMarshaller.marshall(oTAUpdateInfo.getAdditionalParameters(), ADDITIONALPARAMETERS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
jsonWriter.value(targetSelection); if (oTAUpdateInfo.getOtaUpdateFiles() != null) { java.util.List<OTAUpdateFile> otaUpdateFiles = oTAUpdateInfo.getOtaUpdateFiles(); jsonWriter.name("otaUpdateFiles"); jsonWriter.beginArray();