if (getStreamArn() != null) sb.append("StreamArn: ").append(getStreamArn()).append(","); if (getStreamVersion() != null) sb.append("StreamVersion: ").append(getStreamVersion()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamId() == null) ? 0 : getStreamId().hashCode()); hashCode = prime * hashCode + ((getStreamArn() == null) ? 0 : getStreamArn().hashCode()); hashCode = prime * hashCode + ((getStreamVersion() == null) ? 0 : getStreamVersion().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getFiles() == null) ? 0 : getFiles().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); return hashCode; }
if (other.getStreamArn() != null && other.getStreamArn().equals(this.getStreamArn()) == false) return false; if (other.getStreamVersion() == null ^ this.getStreamVersion() == null) return false; if (other.getStreamVersion() != null && other.getStreamVersion().equals(this.getStreamVersion()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null)
/** * Marshall the given parameter object. */ public void marshall(StreamInfo streamInfo, ProtocolMarshaller protocolMarshaller) { if (streamInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(streamInfo.getStreamId(), STREAMID_BINDING); protocolMarshaller.marshall(streamInfo.getStreamArn(), STREAMARN_BINDING); protocolMarshaller.marshall(streamInfo.getStreamVersion(), STREAMVERSION_BINDING); protocolMarshaller.marshall(streamInfo.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(streamInfo.getFiles(), FILES_BINDING); protocolMarshaller.marshall(streamInfo.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(streamInfo.getLastUpdatedAt(), LASTUPDATEDAT_BINDING); protocolMarshaller.marshall(streamInfo.getRoleArn(), ROLEARN_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 + ((getStreamId() == null) ? 0 : getStreamId().hashCode()); hashCode = prime * hashCode + ((getStreamArn() == null) ? 0 : getStreamArn().hashCode()); hashCode = prime * hashCode + ((getStreamVersion() == null) ? 0 : getStreamVersion().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getFiles() == null) ? 0 : getFiles().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().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 (getStreamId() != null) sb.append("streamId: " + getStreamId() + ","); if (getStreamArn() != null) sb.append("streamArn: " + getStreamArn() + ","); if (getStreamVersion() != null) sb.append("streamVersion: " + getStreamVersion() + ","); if (getDescription() != null) sb.append("description: " + getDescription() + ","); if (getFiles() != null) sb.append("files: " + getFiles() + ","); if (getCreatedAt() != null) sb.append("createdAt: " + getCreatedAt() + ","); if (getLastUpdatedAt() != null) sb.append("lastUpdatedAt: " + getLastUpdatedAt() + ","); if (getRoleArn() != null) sb.append("roleArn: " + getRoleArn()); sb.append("}"); return sb.toString(); }
&& other.getStreamArn().equals(this.getStreamArn()) == false) return false; if (other.getStreamVersion() == null ^ this.getStreamVersion() == null) return false; if (other.getStreamVersion() != null && other.getStreamVersion().equals(this.getStreamVersion()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null)
jsonWriter.value(streamArn); if (streamInfo.getStreamVersion() != null) { Integer streamVersion = streamInfo.getStreamVersion(); jsonWriter.name("streamVersion"); jsonWriter.value(streamVersion);
if (getStreamArn() != null) sb.append("StreamArn: ").append(getStreamArn()).append(","); if (getStreamVersion() != null) sb.append("StreamVersion: ").append(getStreamVersion()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamId() == null) ? 0 : getStreamId().hashCode()); hashCode = prime * hashCode + ((getStreamArn() == null) ? 0 : getStreamArn().hashCode()); hashCode = prime * hashCode + ((getStreamVersion() == null) ? 0 : getStreamVersion().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getFiles() == null) ? 0 : getFiles().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamId() == null) ? 0 : getStreamId().hashCode()); hashCode = prime * hashCode + ((getStreamArn() == null) ? 0 : getStreamArn().hashCode()); hashCode = prime * hashCode + ((getStreamVersion() == null) ? 0 : getStreamVersion().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getFiles() == null) ? 0 : getFiles().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().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 (getStreamId() != null) sb.append("streamId: " + getStreamId() + ","); if (getStreamArn() != null) sb.append("streamArn: " + getStreamArn() + ","); if (getStreamVersion() != null) sb.append("streamVersion: " + getStreamVersion() + ","); if (getDescription() != null) sb.append("description: " + getDescription() + ","); if (getFiles() != null) sb.append("files: " + getFiles() + ","); if (getCreatedAt() != null) sb.append("createdAt: " + getCreatedAt() + ","); if (getLastUpdatedAt() != null) sb.append("lastUpdatedAt: " + getLastUpdatedAt() + ","); if (getRoleArn() != null) sb.append("roleArn: " + getRoleArn()); sb.append("}"); return sb.toString(); }
if (other.getStreamArn() != null && other.getStreamArn().equals(this.getStreamArn()) == false) return false; if (other.getStreamVersion() == null ^ this.getStreamVersion() == null) return false; if (other.getStreamVersion() != null && other.getStreamVersion().equals(this.getStreamVersion()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null)
&& other.getStreamArn().equals(this.getStreamArn()) == false) return false; if (other.getStreamVersion() == null ^ this.getStreamVersion() == null) return false; if (other.getStreamVersion() != null && other.getStreamVersion().equals(this.getStreamVersion()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null)
/** * Marshall the given parameter object. */ public void marshall(StreamInfo streamInfo, ProtocolMarshaller protocolMarshaller) { if (streamInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(streamInfo.getStreamId(), STREAMID_BINDING); protocolMarshaller.marshall(streamInfo.getStreamArn(), STREAMARN_BINDING); protocolMarshaller.marshall(streamInfo.getStreamVersion(), STREAMVERSION_BINDING); protocolMarshaller.marshall(streamInfo.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(streamInfo.getFiles(), FILES_BINDING); protocolMarshaller.marshall(streamInfo.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(streamInfo.getLastUpdatedAt(), LASTUPDATEDAT_BINDING); protocolMarshaller.marshall(streamInfo.getRoleArn(), ROLEARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
jsonWriter.value(streamArn); if (streamInfo.getStreamVersion() != null) { Integer streamVersion = streamInfo.getStreamVersion(); jsonWriter.name("streamVersion"); jsonWriter.value(streamVersion);