@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; }
/** * 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(); }
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)
/** * 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 + ((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; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getCodec() + ","); if (getDurationMillis() != null) sb.append("DurationMillis: " + getDurationMillis() + ","); if (getFormat() != null) sb.append("Format: " + getFormat() + ","); if (getFrameRate() != null) sb.append("FrameRate: " + getFrameRate() + ","); if (getFrameHeight() != null) sb.append("FrameHeight: " + getFrameHeight() + ","); if (getFrameWidth() != null) sb.append("FrameWidth: " + getFrameWidth() + ","); if (getRotation() != null) sb.append("Rotation: " + getRotation()); sb.append("}"); return sb.toString(); }
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)
jsonWriter.value(format); if (videoMetadata.getFrameRate() != null) { Float frameRate = videoMetadata.getFrameRate(); jsonWriter.name("FrameRate"); jsonWriter.value(frameRate);