/** * <p> * Version numbers of the face detection models associated with the collections in the array * <code>CollectionIds</code>. For example, the value of <code>FaceModelVersions[2]</code> is the version number for * the face detection model used by the collection in <code>CollectionId[2]</code>. * </p> * * @param faceModelVersions * Version numbers of the face detection models associated with the collections in the array * <code>CollectionIds</code>. For example, the value of <code>FaceModelVersions[2]</code> is the version * number for the face detection model used by the collection in <code>CollectionId[2]</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCollectionsResult withFaceModelVersions(java.util.Collection<String> faceModelVersions) { setFaceModelVersions(faceModelVersions); return this; }
/** * <p> * Version numbers of the face detection models associated with the collections in the array * <code>CollectionIds</code>. For example, the value of <code>FaceModelVersions[2]</code> is the version number for * the face detection model used by the collection in <code>CollectionId[2]</code>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setFaceModelVersions(java.util.Collection)} or {@link #withFaceModelVersions(java.util.Collection)} if * you want to override the existing values. * </p> * * @param faceModelVersions * Version numbers of the face detection models associated with the collections in the array * <code>CollectionIds</code>. For example, the value of <code>FaceModelVersions[2]</code> is the version * number for the face detection model used by the collection in <code>CollectionId[2]</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCollectionsResult withFaceModelVersions(String... faceModelVersions) { if (this.faceModelVersions == null) { setFaceModelVersions(new java.util.ArrayList<String>(faceModelVersions.length)); } for (String ele : faceModelVersions) { this.faceModelVersions.add(ele); } return this; }
listCollectionsResult.setFaceModelVersions(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * Version numbers of the face detection models associated with the * collections in the array <code>CollectionIds</code>. For example, the * value of <code>FaceModelVersions[2]</code> is the version number for the * face detection model used by the collection in * <code>CollectionId[2]</code>. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param faceModelVersions <p> * Version numbers of the face detection models associated with * the collections in the array <code>CollectionIds</code>. For * example, the value of <code>FaceModelVersions[2]</code> is the * version number for the face detection model used by the * collection in <code>CollectionId[2]</code>. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListCollectionsResult withFaceModelVersions( java.util.Collection<String> faceModelVersions) { setFaceModelVersions(faceModelVersions); 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; }