/** * <p> * Value representing brightness of the face. The service returns a value between 0 and 100 (inclusive). A higher * value indicates a brighter face image. * </p> * * @param brightness * Value representing brightness of the face. The service returns a value between 0 and 100 (inclusive). A * higher value indicates a brighter face image. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageQuality withBrightness(Float brightness) { setBrightness(brightness); return this; }
if (context.testExpression("Brightness", targetDepth)) { context.nextToken(); imageQuality.setBrightness(context.getUnmarshaller(Float.class).unmarshall(context));
public ImageQuality unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ImageQuality imageQuality = new ImageQuality(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Brightness")) { imageQuality.setBrightness(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Sharpness")) { imageQuality.setSharpness(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return imageQuality; }