@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamId() == null) ? 0 : getStreamId().hashCode()); hashCode = prime * hashCode + ((getFileId() == null) ? 0 : getFileId().hashCode()); return hashCode; }
@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; }
/** * <p> * The ID of a file associated with a stream. * </p> * * @param fileId * The ID of a file associated with a stream. * @return Returns a reference to this object so that method calls can be chained together. */ public Stream withFileId(Integer fileId) { setFileId(fileId); return this; }
public Stream unmarshall(JsonUnmarshallerContext context) throws Exception { Stream stream = new Stream(); if (context.testExpression("streamId", targetDepth)) { context.nextToken(); stream.setStreamId(context.getUnmarshaller(String.class).unmarshall(context)); stream.setFileId(context.getUnmarshaller(Integer.class).unmarshall(context));
@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; }
/** * <p> * The stream ID. * </p> * * @param streamId * The stream ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Stream withStreamId(String streamId) { setStreamId(streamId); return this; }
public Stream unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Stream stream = new Stream(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("streamId")) { stream.setStreamId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("fileId")) { stream.setFileId(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return stream; }
@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; } }
/** * <p> * The stream ID. * </p> * * @param streamId * The stream ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Stream withStreamId(String streamId) { setStreamId(streamId); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Stream == false) return false; Stream other = (Stream) obj; if (other.getStreamId() == null ^ this.getStreamId() == null) return false; if (other.getStreamId() != null && other.getStreamId().equals(this.getStreamId()) == false) return false; if (other.getFileId() == null ^ this.getFileId() == null) return false; if (other.getFileId() != null && other.getFileId().equals(this.getFileId()) == false) return false; return true; }
public Stream unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Stream stream = new Stream(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("streamId")) { stream.setStreamId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("fileId")) { stream.setFileId(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return stream; }
@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; }
@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; }
/** * <p> * The ID of a file associated with a stream. * </p> * * @param fileId * The ID of a file associated with a stream. * @return Returns a reference to this object so that method calls can be chained together. */ public Stream withFileId(Integer fileId) { setFileId(fileId); 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 (getStreamId() != null) sb.append("StreamId: ").append(getStreamId()).append(","); if (getFileId() != null) sb.append("FileId: ").append(getFileId()); sb.append("}"); return sb.toString(); }
public Stream unmarshall(JsonUnmarshallerContext context) throws Exception { Stream stream = new Stream(); if (context.testExpression("streamId", targetDepth)) { context.nextToken(); stream.setStreamId(context.getUnmarshaller(String.class).unmarshall(context)); stream.setFileId(context.getUnmarshaller(Integer.class).unmarshall(context));
@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; }
@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; } }
/** * Marshall the given parameter object. */ public void marshall(Stream stream, ProtocolMarshaller protocolMarshaller) { if (stream == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(stream.getStreamId(), STREAMID_BINDING); protocolMarshaller.marshall(stream.getFileId(), FILEID_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 + ((getStream() == null) ? 0 : getStream().hashCode()); hashCode = prime * hashCode + ((getS3Location() == null) ? 0 : getS3Location().hashCode()); return hashCode; }