/** * <p> * Sort to use for grouping faces in the response. Use <code>TIMESTAMP</code> to group faces by the time that they * are recognized. Use <code>INDEX</code> to sort by recognized faces. * </p> * * @param sortBy * Sort to use for grouping faces in the response. Use <code>TIMESTAMP</code> to group faces by the time that * they are recognized. Use <code>INDEX</code> to sort by recognized faces. * @return Returns a reference to this object so that method calls can be chained together. * @see FaceSearchSortBy */ public GetFaceSearchRequest withSortBy(FaceSearchSortBy sortBy) { this.sortBy = sortBy.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return FaceSearchSortBy corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static FaceSearchSortBy fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (FaceSearchSortBy enumEntry : FaceSearchSortBy.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * Sort to use for grouping faces in the response. Use * <code>TIMESTAMP</code> to group faces by the time that they are * recognized. Use <code>INDEX</code> to sort by recognized faces. * </p> * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>INDEX, TIMESTAMP * * @param sortBy <p> * Sort to use for grouping faces in the response. Use * <code>TIMESTAMP</code> to group faces by the time that they * are recognized. Use <code>INDEX</code> to sort by recognized * faces. * </p> * @see FaceSearchSortBy */ public void setSortBy(FaceSearchSortBy sortBy) { this.sortBy = sortBy.toString(); }
/** * <p> * Sort to use for grouping faces in the response. Use * <code>TIMESTAMP</code> to group faces by the time that they are * recognized. Use <code>INDEX</code> to sort by recognized faces. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>INDEX, TIMESTAMP * * @param sortBy <p> * Sort to use for grouping faces in the response. Use * <code>TIMESTAMP</code> to group faces by the time that they * are recognized. Use <code>INDEX</code> to sort by recognized * faces. * </p> * @return A reference to this updated object so that method calls can be * chained together. * @see FaceSearchSortBy */ public GetFaceSearchRequest withSortBy(FaceSearchSortBy sortBy) { this.sortBy = sortBy.toString(); return this; }