/** * <p> * An array of <code>Face</code> objects. * </p> * * @param faces * An array of <code>Face</code> objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListFacesResult withFaces(java.util.Collection<Face> faces) { setFaces(faces); return this; }
/** * <p> * An array of <code>Face</code> objects. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setFaces(java.util.Collection)} or {@link #withFaces(java.util.Collection)} if you want to override the * existing values. * </p> * * @param faces * An array of <code>Face</code> objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListFacesResult withFaces(Face... faces) { if (this.faces == null) { setFaces(new java.util.ArrayList<Face>(faces.length)); } for (Face ele : faces) { this.faces.add(ele); } return this; }
if (context.testExpression("Faces", targetDepth)) { context.nextToken(); listFacesResult.setFaces(new ListUnmarshaller<Face>(FaceJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * An array of <code>Face</code> objects. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param faces <p> * An array of <code>Face</code> objects. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListFacesResult withFaces(java.util.Collection<Face> faces) { setFaces(faces); return this; }
public ListFacesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListFacesResult listFacesResult = new ListFacesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Faces")) { listFacesResult.setFaces(new ListUnmarshaller<Face>(FaceJsonUnmarshaller .getInstance() ) .unmarshall(context)); } else if (name.equals("NextToken")) { listFacesResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceModelVersion")) { listFacesResult.setFaceModelVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listFacesResult; }