/** * <p> * An array of collection IDs. * </p> * * @param collectionIds * An array of collection IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCollectionsResult withCollectionIds(java.util.Collection<String> collectionIds) { setCollectionIds(collectionIds); return this; }
/** * <p> * An array of collection IDs. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCollectionIds(java.util.Collection)} or {@link #withCollectionIds(java.util.Collection)} if you want * to override the existing values. * </p> * * @param collectionIds * An array of collection IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCollectionsResult withCollectionIds(String... collectionIds) { if (this.collectionIds == null) { setCollectionIds(new java.util.ArrayList<String>(collectionIds.length)); } for (String ele : collectionIds) { this.collectionIds.add(ele); } return this; }
if (context.testExpression("CollectionIds", targetDepth)) { context.nextToken(); listCollectionsResult.setCollectionIds(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * An array of collection IDs. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param collectionIds <p> * An array of collection IDs. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListCollectionsResult withCollectionIds(java.util.Collection<String> collectionIds) { setCollectionIds(collectionIds); return this; }
public ListCollectionsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListCollectionsResult listCollectionsResult = new ListCollectionsResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CollectionIds")) { listCollectionsResult.setCollectionIds(new ListUnmarshaller<String>( StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextToken")) { listCollectionsResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceModelVersions")) { listCollectionsResult.setFaceModelVersions(new ListUnmarshaller<String>( StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listCollectionsResult; }