if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn());
@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.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == 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.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null)
jsonWriter.value(createdAt); if (streamInfo.getLastUpdatedAt() != null) { java.util.Date lastUpdatedAt = streamInfo.getLastUpdatedAt(); jsonWriter.name("lastUpdatedAt"); jsonWriter.value(lastUpdatedAt);
if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn());
@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.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null)
&& other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == 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(createdAt); if (streamInfo.getLastUpdatedAt() != null) { java.util.Date lastUpdatedAt = streamInfo.getLastUpdatedAt(); jsonWriter.name("lastUpdatedAt"); jsonWriter.value(lastUpdatedAt);