/** * <p> * Value representing the face rotation on the pitch axis. * </p> * * @param pitch * Value representing the face rotation on the pitch axis. * @return Returns a reference to this object so that method calls can be chained together. */ public Pose withPitch(Float pitch) { setPitch(pitch); return this; }
pose.setPitch(context.getUnmarshaller(Float.class).unmarshall(context));
public Pose unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Pose pose = new Pose(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Roll")) { pose.setRoll(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Yaw")) { pose.setYaw(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Pitch")) { pose.setPitch(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return pose; }