@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FileLocation == false) return false; FileLocation other = (FileLocation) obj; if (other.getStream() == null ^ this.getStream() == null) return false; if (other.getStream() != null && other.getStream().equals(this.getStream()) == false) return false; if (other.getS3Location() == null ^ this.getS3Location() == null) return false; if (other.getS3Location() != null && other.getS3Location().equals(this.getS3Location()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); hashCode = prime * hashCode + ((getFileVersion() == null) ? 0 : getFileVersion().hashCode()); hashCode = prime * hashCode + ((getFileLocation() == null) ? 0 : getFileLocation().hashCode()); hashCode = prime * hashCode + ((getCodeSigning() == null) ? 0 : getCodeSigning().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }
/** * <p> * The location of the updated firmware in S3. * </p> * * @param s3Location * The location of the updated firmware in S3. * @return Returns a reference to this object so that method calls can be chained together. */ public FileLocation withS3Location(S3Location s3Location) { setS3Location(s3Location); return this; }
public FileLocation unmarshall(JsonUnmarshallerContext context) throws Exception { FileLocation fileLocation = new FileLocation(); if (context.testExpression("stream", targetDepth)) { context.nextToken(); fileLocation.setStream(StreamJsonUnmarshaller.getInstance().unmarshall(context)); fileLocation.setS3Location(S3LocationJsonUnmarshaller.getInstance().unmarshall(context));
if (other.getFileLocation() == null ^ this.getFileLocation() == null) return false; if (other.getFileLocation() != null && other.getFileLocation().equals(this.getFileLocation()) == false) return false; if (other.getCodeSigning() == null ^ this.getCodeSigning() == null)
/** * <p> * The stream that contains the OTA update. * </p> * * @param stream * The stream that contains the OTA update. * @return Returns a reference to this object so that method calls can be chained together. */ public FileLocation withStream(Stream stream) { setStream(stream); return this; }
public FileLocation unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } FileLocation fileLocation = new FileLocation(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("stream")) { fileLocation.setStream(StreamJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("s3Location")) { fileLocation.setS3Location(S3LocationJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return fileLocation; }
return false; if (other.getFileLocation() != null && other.getFileLocation().equals(this.getFileLocation()) == false) return false; if (other.getCodeSigning() == null ^ this.getCodeSigning() == null)
/** * <p> * The stream that contains the OTA update. * </p> * * @param stream * The stream that contains the OTA update. * @return Returns a reference to this object so that method calls can be chained together. */ public FileLocation withStream(Stream stream) { setStream(stream); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStream() == null) ? 0 : getStream().hashCode()); hashCode = prime * hashCode + ((getS3Location() == null) ? 0 : getS3Location().hashCode()); return hashCode; }
public FileLocation unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } FileLocation fileLocation = new FileLocation(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("stream")) { fileLocation.setStream(StreamJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("s3Location")) { fileLocation.setS3Location(S3LocationJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return fileLocation; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); hashCode = prime * hashCode + ((getFileVersion() == null) ? 0 : getFileVersion().hashCode()); hashCode = prime * hashCode + ((getFileLocation() == null) ? 0 : getFileLocation().hashCode()); hashCode = prime * hashCode + ((getCodeSigning() == null) ? 0 : getCodeSigning().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }
if (other.getFileLocation() == null ^ this.getFileLocation() == null) return false; if (other.getFileLocation() != null && other.getFileLocation().equals(this.getFileLocation()) == false) return false; if (other.getCodeSigning() == null ^ this.getCodeSigning() == null)
/** * <p> * The location of the updated firmware in S3. * </p> * * @param s3Location * The location of the updated firmware in S3. * @return Returns a reference to this object so that method calls can be chained together. */ public FileLocation withS3Location(S3Location s3Location) { setS3Location(s3Location); 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 (getStream() != null) sb.append("Stream: ").append(getStream()).append(","); if (getS3Location() != null) sb.append("S3Location: ").append(getS3Location()); sb.append("}"); return sb.toString(); }
public FileLocation unmarshall(JsonUnmarshallerContext context) throws Exception { FileLocation fileLocation = new FileLocation(); if (context.testExpression("stream", targetDepth)) { context.nextToken(); fileLocation.setStream(StreamJsonUnmarshaller.getInstance().unmarshall(context)); fileLocation.setS3Location(S3LocationJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); hashCode = prime * hashCode + ((getFileVersion() == null) ? 0 : getFileVersion().hashCode()); hashCode = prime * hashCode + ((getFileLocation() == null) ? 0 : getFileLocation().hashCode()); hashCode = prime * hashCode + ((getCodeSigning() == null) ? 0 : getCodeSigning().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }
return false; if (other.getFileLocation() != null && other.getFileLocation().equals(this.getFileLocation()) == false) return false; if (other.getCodeSigning() == null ^ this.getCodeSigning() == null)
/** * Marshall the given parameter object. */ public void marshall(FileLocation fileLocation, ProtocolMarshaller protocolMarshaller) { if (fileLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(fileLocation.getStream(), STREAM_BINDING); protocolMarshaller.marshall(fileLocation.getS3Location(), S3LOCATION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); hashCode = prime * hashCode + ((getFileVersion() == null) ? 0 : getFileVersion().hashCode()); hashCode = prime * hashCode + ((getFileLocation() == null) ? 0 : getFileLocation().hashCode()); hashCode = prime * hashCode + ((getCodeSigning() == null) ? 0 : getCodeSigning().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }