/** * <p> * Version number of the face detection model associated with the input collection (<code>CollectionId</code>). * </p> * * @param faceModelVersion * Version number of the face detection model associated with the input collection (<code>CollectionId</code> * ). * @return Returns a reference to this object so that method calls can be chained together. */ public SearchFacesResult withFaceModelVersion(String faceModelVersion) { setFaceModelVersion(faceModelVersion); return this; }
searchFacesResult.setFaceModelVersion(context.getUnmarshaller(String.class).unmarshall(context));
public SearchFacesResult unmarshall(JsonUnmarshallerContext context) throws Exception { SearchFacesResult searchFacesResult = new SearchFacesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("SearchedFaceId")) { searchFacesResult.setSearchedFaceId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceMatches")) { searchFacesResult.setFaceMatches(new ListUnmarshaller<FaceMatch>( FaceMatchJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("FaceModelVersion")) { searchFacesResult.setFaceModelVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return searchFacesResult; }