/** * <p> * The bounding box around the face in the input image that Amazon Rekognition used for the search. * </p> * * @param searchedFaceBoundingBox * The bounding box around the face in the input image that Amazon Rekognition used for the search. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchFacesByImageResult withSearchedFaceBoundingBox(BoundingBox searchedFaceBoundingBox) { setSearchedFaceBoundingBox(searchedFaceBoundingBox); return this; }
if (context.testExpression("SearchedFaceBoundingBox", targetDepth)) { context.nextToken(); searchFacesByImageResult.setSearchedFaceBoundingBox(BoundingBoxJsonUnmarshaller.getInstance().unmarshall(context));
public SearchFacesByImageResult unmarshall(JsonUnmarshallerContext context) throws Exception { SearchFacesByImageResult searchFacesByImageResult = new SearchFacesByImageResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("SearchedFaceBoundingBox")) { searchFacesByImageResult.setSearchedFaceBoundingBox(BoundingBoxJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("SearchedFaceConfidence")) { searchFacesByImageResult.setSearchedFaceConfidence(FloatJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("FaceMatches")) { searchFacesByImageResult.setFaceMatches(new ListUnmarshaller<FaceMatch>( FaceMatchJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("FaceModelVersion")) { searchFacesByImageResult.setFaceModelVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return searchFacesByImageResult; }