public class ImageSearchResponseBuilder extends Object implements io.vrap.rmf.base.client.Builder<ImageSearchResponse>
ImageSearchResponse imageSearchResponse = ImageSearchResponse.builder()
.count(0.3)
.offset(0.3)
.total(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
| Constructor and Description |
|---|
ImageSearchResponseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ImageSearchResponse |
build() |
ImageSearchResponse |
buildUnchecked()
builds ImageSearchResponse without checking for non null required values
|
ImageSearchResponseBuilder |
count(Integer count)
The maximum number of results to return from a query.
|
Integer |
getCount() |
Double |
getOffset() |
List<ResultItem> |
getResults() |
Integer |
getTotal() |
static ImageSearchResponseBuilder |
of() |
static ImageSearchResponseBuilder |
of(ImageSearchResponse template) |
ImageSearchResponseBuilder |
offset(Double offset)
Number of elements skipped.
|
ImageSearchResponseBuilder |
plusResults(Function<ResultItemBuilder,ResultItemBuilder> builder)
An array of image URLs of images that are similar to the query image.
|
ImageSearchResponseBuilder |
plusResults(ResultItem... results)
An array of image URLs of images that are similar to the query image.
|
ImageSearchResponseBuilder |
results(List<ResultItem> results)
An array of image URLs of images that are similar to the query image.
|
ImageSearchResponseBuilder |
results(ResultItem... results)
An array of image URLs of images that are similar to the query image.
|
ImageSearchResponseBuilder |
total(Integer total)
The total number of product images that were have been analyzed.
|
ImageSearchResponseBuilder |
withResults(Function<ResultItemBuilder,ResultItemBuilder> builder)
An array of image URLs of images that are similar to the query image.
|
public ImageSearchResponseBuilder()
public ImageSearchResponseBuilder count(Integer count)
The maximum number of results to return from a query.
public ImageSearchResponseBuilder offset(Double offset)
Number of elements skipped.
public ImageSearchResponseBuilder total(Integer total)
The total number of product images that were have been analyzed.
public ImageSearchResponseBuilder results(ResultItem... results)
An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.
public ImageSearchResponseBuilder results(List<ResultItem> results)
An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.
public ImageSearchResponseBuilder plusResults(ResultItem... results)
An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.
public ImageSearchResponseBuilder plusResults(Function<ResultItemBuilder,ResultItemBuilder> builder)
An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.
public ImageSearchResponseBuilder withResults(Function<ResultItemBuilder,ResultItemBuilder> builder)
An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.
public List<ResultItem> getResults()
public ImageSearchResponse build()
build in interface io.vrap.rmf.base.client.Builder<ImageSearchResponse>public ImageSearchResponse buildUnchecked()
public static ImageSearchResponseBuilder of()
public static ImageSearchResponseBuilder of(ImageSearchResponse template)