@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCodec() == null) ? 0 : getCodec().hashCode()); hashCode = prime * hashCode + ((getDurationMillis() == null) ? 0 : getDurationMillis().hashCode()); hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode()); hashCode = prime * hashCode + ((getFrameRate() == null) ? 0 : getFrameRate().hashCode()); hashCode = prime * hashCode + ((getFrameHeight() == null) ? 0 : getFrameHeight().hashCode()); hashCode = prime * hashCode + ((getFrameWidth() == null) ? 0 : getFrameWidth().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getCelebrities() == null) ? 0 : getCelebrities().hashCode()); return hashCode; }
/** * <p> * Type of compression used in the analyzed video. * </p> * * @param codec * Type of compression used in the analyzed video. * @return Returns a reference to this object so that method calls can be chained together. */ public VideoMetadata withCodec(String codec) { setCodec(codec); return this; }
public VideoMetadata unmarshall(JsonUnmarshallerContext context) throws Exception { VideoMetadata videoMetadata = new VideoMetadata(); if (context.testExpression("Codec", targetDepth)) { context.nextToken(); videoMetadata.setCodec(context.getUnmarshaller(String.class).unmarshall(context)); videoMetadata.setDurationMillis(context.getUnmarshaller(Long.class).unmarshall(context)); videoMetadata.setFormat(context.getUnmarshaller(String.class).unmarshall(context)); videoMetadata.setFrameRate(context.getUnmarshaller(Float.class).unmarshall(context)); videoMetadata.setFrameHeight(context.getUnmarshaller(Long.class).unmarshall(context)); videoMetadata.setFrameWidth(context.getUnmarshaller(Long.class).unmarshall(context));
if (other.getVideoMetadata() == null ^ this.getVideoMetadata() == null) return false; if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getModerationLabels() == null ^ this.getModerationLabels() == null)
return null; VideoMetadata videoMetadata = new VideoMetadata(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Codec")) { videoMetadata.setCodec(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("DurationMillis")) { videoMetadata.setDurationMillis(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Format")) { videoMetadata.setFormat(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FrameRate")) { videoMetadata.setFrameRate(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FrameHeight")) { videoMetadata.setFrameHeight(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FrameWidth")) { videoMetadata.setFrameWidth(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Rotation")) { videoMetadata.setRotation(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else {
if (other.getVideoMetadata() == null ^ this.getVideoMetadata() == null) return false; if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null)
return false; VideoMetadata other = (VideoMetadata) obj; if (other.getCodec() == null ^ this.getCodec() == null) return false; if (other.getCodec() != null && other.getCodec().equals(this.getCodec()) == false) return false; if (other.getDurationMillis() == null ^ this.getDurationMillis() == null) return false; if (other.getDurationMillis() != null && other.getDurationMillis().equals(this.getDurationMillis()) == false) return false; if (other.getFormat() == null ^ this.getFormat() == null) return false; if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false) return false; if (other.getFrameRate() == null ^ this.getFrameRate() == null) return false; if (other.getFrameRate() != null && other.getFrameRate().equals(this.getFrameRate()) == false) return false; if (other.getFrameHeight() == null ^ this.getFrameHeight() == null) return false; if (other.getFrameHeight() != null && other.getFrameHeight().equals(this.getFrameHeight()) == false) return false; if (other.getFrameWidth() == null ^ this.getFrameWidth() == null) return false; if (other.getFrameWidth() != null && other.getFrameWidth().equals(this.getFrameWidth()) == false) return false; return true;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getFaces() == null) ? 0 : getFaces().hashCode()); return hashCode; }
if (other.getVideoMetadata() == null ^ this.getVideoMetadata() == null) return false; if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null)
/** * 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 (getCodec() != null) sb.append("Codec: ").append(getCodec()).append(","); if (getDurationMillis() != null) sb.append("DurationMillis: ").append(getDurationMillis()).append(","); if (getFormat() != null) sb.append("Format: ").append(getFormat()).append(","); if (getFrameRate() != null) sb.append("FrameRate: ").append(getFrameRate()).append(","); if (getFrameHeight() != null) sb.append("FrameHeight: ").append(getFrameHeight()).append(","); if (getFrameWidth() != null) sb.append("FrameWidth: ").append(getFrameWidth()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getPersons() == null) ? 0 : getPersons().hashCode()); return hashCode; }
if (other.getVideoMetadata() == null ^ this.getVideoMetadata() == null) return false; if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getPersons() == null ^ this.getPersons() == null)
/** * Marshall the given parameter object. */ public void marshall(VideoMetadata videoMetadata, ProtocolMarshaller protocolMarshaller) { if (videoMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(videoMetadata.getCodec(), CODEC_BINDING); protocolMarshaller.marshall(videoMetadata.getDurationMillis(), DURATIONMILLIS_BINDING); protocolMarshaller.marshall(videoMetadata.getFormat(), FORMAT_BINDING); protocolMarshaller.marshall(videoMetadata.getFrameRate(), FRAMERATE_BINDING); protocolMarshaller.marshall(videoMetadata.getFrameHeight(), FRAMEHEIGHT_BINDING); protocolMarshaller.marshall(videoMetadata.getFrameWidth(), FRAMEWIDTH_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 + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getModerationLabels() == null) ? 0 : getModerationLabels().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
if (other.getVideoMetadata() == null ^ this.getVideoMetadata() == null) return false; if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null)
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCodec() == null) ? 0 : getCodec().hashCode()); hashCode = prime * hashCode + ((getDurationMillis() == null) ? 0 : getDurationMillis().hashCode()); hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode()); hashCode = prime * hashCode + ((getFrameRate() == null) ? 0 : getFrameRate().hashCode()); hashCode = prime * hashCode + ((getFrameHeight() == null) ? 0 : getFrameHeight().hashCode()); hashCode = prime * hashCode + ((getFrameWidth() == null) ? 0 : getFrameWidth().hashCode()); hashCode = prime * hashCode + ((getRotation() == null) ? 0 : getRotation().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getPersons() == null) ? 0 : getPersons().hashCode()); return hashCode; }
if (other.getVideoMetadata() == null ^ this.getVideoMetadata() == null) return false; if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null)
if (other.getCodec() == null ^ this.getCodec() == null) return false; if (other.getCodec() != null && other.getCodec().equals(this.getCodec()) == false) return false; if (other.getDurationMillis() == null ^ this.getDurationMillis() == null) return false; if (other.getDurationMillis() != null && other.getDurationMillis().equals(this.getDurationMillis()) == false) return false; if (other.getFormat() == null ^ this.getFormat() == null) return false; if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false) return false; if (other.getFrameRate() == null ^ this.getFrameRate() == null) return false; if (other.getFrameRate() != null && other.getFrameRate().equals(this.getFrameRate()) == false) return false; if (other.getFrameHeight() == null ^ this.getFrameHeight() == null) return false; if (other.getFrameHeight() != null && other.getFrameHeight().equals(this.getFrameHeight()) == false) return false; if (other.getFrameWidth() == null ^ this.getFrameWidth() == null) return false; if (other.getFrameWidth() != null && other.getFrameWidth().equals(this.getFrameWidth()) == false) return false; if (other.getRotation() == null ^ this.getRotation() == null)