@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Transcript == false) return false; Transcript other = (Transcript) obj; if (other.getTranscriptFileUri() == null ^ this.getTranscriptFileUri() == null) return false; if (other.getTranscriptFileUri() != null && other.getTranscriptFileUri().equals(this.getTranscriptFileUri()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTranscriptFileUri() == null) ? 0 : getTranscriptFileUri().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 (getTranscriptFileUri() != null) sb.append("TranscriptFileUri: ").append(getTranscriptFileUri()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(Transcript transcript, ProtocolMarshaller protocolMarshaller) { if (transcript == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(transcript.getTranscriptFileUri(), TRANSCRIPTFILEURI_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 + ((getTranscriptFileUri() == null) ? 0 : getTranscriptFileUri().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Transcript == false) return false; Transcript other = (Transcript) obj; if (other.getTranscriptFileUri() == null ^ this.getTranscriptFileUri() == null) return false; if (other.getTranscriptFileUri() != null && other.getTranscriptFileUri().equals(this.getTranscriptFileUri()) == false) return false; return true; } }
/** * 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 (getTranscriptFileUri() != null) sb.append("TranscriptFileUri: " + getTranscriptFileUri()); sb.append("}"); return sb.toString(); }
public void marshall(Transcript transcript, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (transcript.getTranscriptFileUri() != null) { String transcriptFileUri = transcript.getTranscriptFileUri(); jsonWriter.name("TranscriptFileUri"); jsonWriter.value(transcriptFileUri); } jsonWriter.endObject(); }