/** * <p> * The ID of a collection that contains faces that you want to search for. * </p> * * @param collectionId * The ID of a collection that contains faces that you want to search for. * @return Returns a reference to this object so that method calls can be chained together. */ public FaceSearchSettings withCollectionId(String collectionId) { setCollectionId(collectionId); return this; }
if (context.testExpression("CollectionId", targetDepth)) { context.nextToken(); faceSearchSettings.setCollectionId(context.getUnmarshaller(String.class).unmarshall(context));
public FaceSearchSettings unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } FaceSearchSettings faceSearchSettings = new FaceSearchSettings(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CollectionId")) { faceSearchSettings.setCollectionId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceMatchThreshold")) { faceSearchSettings.setFaceMatchThreshold(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return faceSearchSettings; }