/** * <p> * Version number of the face detection model associated with the collection you are creating. * </p> * * @param faceModelVersion * Version number of the face detection model associated with the collection you are creating. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCollectionResult withFaceModelVersion(String faceModelVersion) { setFaceModelVersion(faceModelVersion); return this; }
createCollectionResult.setFaceModelVersion(context.getUnmarshaller(String.class).unmarshall(context));
public CreateCollectionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateCollectionResult createCollectionResult = new CreateCollectionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("StatusCode")) { createCollectionResult.setStatusCode(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("CollectionArn")) { createCollectionResult.setCollectionArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceModelVersion")) { createCollectionResult.setFaceModelVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createCollectionResult; }