/** * <p> * An array of the persons detected in the video and the time(s) their path was tracked throughout the video. An * array element will exist for each time a person's path is tracked. * </p> * * @param persons * An array of the persons detected in the video and the time(s) their path was tracked throughout the video. * An array element will exist for each time a person's path is tracked. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPersonTrackingResult withPersons(java.util.Collection<PersonDetection> persons) { setPersons(persons); return this; }
/** * <p> * An array of the persons detected in the video and the time(s) their path was tracked throughout the video. An * array element will exist for each time a person's path is tracked. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setPersons(java.util.Collection)} or {@link #withPersons(java.util.Collection)} if you want to override * the existing values. * </p> * * @param persons * An array of the persons detected in the video and the time(s) their path was tracked throughout the video. * An array element will exist for each time a person's path is tracked. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPersonTrackingResult withPersons(PersonDetection... persons) { if (this.persons == null) { setPersons(new java.util.ArrayList<PersonDetection>(persons.length)); } for (PersonDetection ele : persons) { this.persons.add(ele); } return this; }
context.nextToken(); getPersonTrackingResult .setPersons(new ListUnmarshaller<PersonDetection>(PersonDetectionJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * An array of the persons detected in the video and the times they are * tracked throughout the video. An array element will exist for each time * the person is tracked. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param persons <p> * An array of the persons detected in the video and the times * they are tracked throughout the video. An array element will * exist for each time the person is tracked. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GetPersonTrackingResult withPersons(java.util.Collection<PersonDetection> persons) { setPersons(persons); return this; }
.unmarshall(context)); } else if (name.equals("Persons")) { getPersonTrackingResult.setPersons(new ListUnmarshaller<PersonDetection>( PersonDetectionJsonUnmarshaller.getInstance()