@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getStreamProcessors() == null) ? 0 : getStreamProcessors().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 (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getStreamProcessors() != null) sb.append("StreamProcessors: ").append(getStreamProcessors()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListStreamProcessorsResult == false) return false; ListStreamProcessorsResult other = (ListStreamProcessorsResult) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getStreamProcessors() == null ^ this.getStreamProcessors() == null) return false; if (other.getStreamProcessors() != null && other.getStreamProcessors().equals(this.getStreamProcessors()) == false) return false; return true; }
/** * <p> * List of stream processors that you have created. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param streamProcessors <p> * List of stream processors that you have created. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListStreamProcessorsResult withStreamProcessors(StreamProcessor... streamProcessors) { if (getStreamProcessors() == null) { this.streamProcessors = new java.util.ArrayList<StreamProcessor>( streamProcessors.length); } for (StreamProcessor value : streamProcessors) { this.streamProcessors.add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getStreamProcessors() == null) ? 0 : getStreamProcessors().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 (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getStreamProcessors() != null) sb.append("StreamProcessors: " + getStreamProcessors()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListStreamProcessorsResult == false) return false; ListStreamProcessorsResult other = (ListStreamProcessorsResult) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getStreamProcessors() == null ^ this.getStreamProcessors() == null) return false; if (other.getStreamProcessors() != null && other.getStreamProcessors().equals(this.getStreamProcessors()) == false) return false; return true; } }
public ListStreamProcessorsResult listStreamProcessor() { final ListStreamProcessorsResult listStreamProcessorsResult = rekognitionClient.listStreamProcessors(new ListStreamProcessorsRequest().withMaxResults(100)); for (final StreamProcessor streamProcessor : listStreamProcessorsResult.getStreamProcessors()) { log.info("StreamProcessor name {} ", streamProcessor.getName()); log.info("Status {} ", streamProcessor.getStatus()); } return listStreamProcessorsResult; } }