@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; }
/** * <p> * If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent * request to retrieve the next set of stream processors. * </p> * * @param nextToken * If the response is truncated, Amazon Rekognition Video returns this token that you can use in the * subsequent request to retrieve the next set of stream processors. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStreamProcessorsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * List of stream processors that you have created. * </p> * * @param streamProcessors * List of stream processors that you have created. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStreamProcessorsResult withStreamProcessors(java.util.Collection<StreamProcessor> streamProcessors) { setStreamProcessors(streamProcessors); return this; }
public ListStreamProcessorsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListStreamProcessorsResult listStreamProcessorsResult = new ListStreamProcessorsResult(); if (context.testExpression("NextToken", targetDepth)) { context.nextToken(); listStreamProcessorsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context)); listStreamProcessorsResult.setStreamProcessors(new ListUnmarshaller<StreamProcessor>(StreamProcessorJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * <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; }
public ListStreamProcessorsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListStreamProcessorsResult listStreamProcessorsResult = new ListStreamProcessorsResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("NextToken")) { listStreamProcessorsResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("StreamProcessors")) { listStreamProcessorsResult .setStreamProcessors(new ListUnmarshaller<StreamProcessor>( StreamProcessorJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listStreamProcessorsResult; }
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; } }
@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> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setStreamProcessors(java.util.Collection)} or {@link #withStreamProcessors(java.util.Collection)} if you * want to override the existing values. * </p> * * @param streamProcessors * List of stream processors that you have created. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStreamProcessorsResult withStreamProcessors(StreamProcessor... streamProcessors) { if (this.streamProcessors == null) { setStreamProcessors(new java.util.ArrayList<StreamProcessor>(streamProcessors.length)); } for (StreamProcessor ele : streamProcessors) { this.streamProcessors.add(ele); } 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 (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getStreamProcessors() != null) sb.append("StreamProcessors: ").append(getStreamProcessors()); sb.append("}"); return sb.toString(); }
/** * <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( java.util.Collection<StreamProcessor> streamProcessors) { setStreamProcessors(streamProcessors); 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; }
@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; } }
/** * 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(); }