/** * <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; }
/** * <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; }
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( java.util.Collection<StreamProcessor> streamProcessors) { setStreamProcessors(streamProcessors); 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; }