/** * <p> * The names of the streams that are associated with the AWS account making the <code>ListStreams</code> request. * </p> * * @param streamNames * The names of the streams that are associated with the AWS account making the <code>ListStreams</code> * request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStreamsResult withStreamNames(java.util.Collection<String> streamNames) { setStreamNames(streamNames); return this; }
/** * <p> * The names of the streams that are associated with the AWS account making the <code>ListStreams</code> request. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setStreamNames(java.util.Collection)} or {@link #withStreamNames(java.util.Collection)} if you want to * override the existing values. * </p> * * @param streamNames * The names of the streams that are associated with the AWS account making the <code>ListStreams</code> * request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStreamsResult withStreamNames(String... streamNames) { if (this.streamNames == null) { setStreamNames(new com.amazonaws.internal.SdkInternalList<String>(streamNames.length)); } for (String ele : streamNames) { this.streamNames.add(ele); } return this; }
if (context.testExpression("StreamNames", targetDepth)) { context.nextToken(); listStreamsResult.setStreamNames(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * The names of the streams that are associated with the AWS account making * the <code>ListStreams</code> request. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param streamNames <p> * The names of the streams that are associated with the AWS * account making the <code>ListStreams</code> request. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListStreamsResult withStreamNames(java.util.Collection<String> streamNames) { setStreamNames(streamNames); return this; }
public ListStreamsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListStreamsResult listStreamsResult = new ListStreamsResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("StreamNames")) { listStreamsResult.setStreamNames(new ListUnmarshaller<String>( StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("HasMoreStreams")) { listStreamsResult.setHasMoreStreams(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listStreamsResult; }
/** * <p> * The names of the streams that are associated with the AWS account making the <code>ListStreams</code> request. * </p> * * @param streamNames * The names of the streams that are associated with the AWS account making the <code>ListStreams</code> * request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStreamsResult withStreamNames(java.util.Collection<String> streamNames) { setStreamNames(streamNames); return this; }
/** * <p> * The names of the streams that are associated with the AWS account making the <code>ListStreams</code> request. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setStreamNames(java.util.Collection)} or {@link #withStreamNames(java.util.Collection)} if you want to * override the existing values. * </p> * * @param streamNames * The names of the streams that are associated with the AWS account making the <code>ListStreams</code> * request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStreamsResult withStreamNames(String... streamNames) { if (this.streamNames == null) { setStreamNames(new com.amazonaws.internal.SdkInternalList<String>(streamNames.length)); } for (String ele : streamNames) { this.streamNames.add(ele); } return this; }
if (context.testExpression("StreamNames", targetDepth)) { context.nextToken(); listStreamsResult.setStreamNames(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));