@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Video == false) return false; Video other = (Video) obj; if (other.getS3Object() == null ^ this.getS3Object() == null) return false; if (other.getS3Object() != null && other.getS3Object().equals(this.getS3Object()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Object() == null) ? 0 : getS3Object().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 (getS3Object() != null) sb.append("S3Object: ").append(getS3Object()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(Video video, ProtocolMarshaller protocolMarshaller) { if (video == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(video.getS3Object(), S3OBJECT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Video == false) return false; Video other = (Video) obj; if (other.getS3Object() == null ^ this.getS3Object() == null) return false; if (other.getS3Object() != null && other.getS3Object().equals(this.getS3Object()) == false) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Object() == null) ? 0 : getS3Object().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 (getS3Object() != null) sb.append("S3Object: " + getS3Object()); sb.append("}"); return sb.toString(); }
public void marshall(Video video, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (video.getS3Object() != null) { S3Object s3Object = video.getS3Object(); jsonWriter.name("S3Object"); S3ObjectJsonMarshaller.getInstance().marshall(s3Object, jsonWriter); } jsonWriter.endObject(); }