2 * Copyright (C) The Arvados Authors. All rights reserved.
4 * SPDX-License-Identifier: AGPL-3.0 OR Apache-2.0
8 package org.arvados.client.api.model.argument;
10 import com.fasterxml.jackson.annotation.JsonInclude;
11 import com.fasterxml.jackson.annotation.JsonProperty;
12 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
14 import java.util.List;
16 @JsonInclude(JsonInclude.Include.NON_NULL)
17 @JsonPropertyOrder({ "limit", "offset", "filters", "order", "select", "distinct", "count", "exclude_home_project", "include_old_versions", "include_trash" })
18 public class ListArgument extends Argument {
20 @JsonProperty("limit")
21 private Integer limit;
23 @JsonProperty("offset")
24 private Integer offset;
26 @JsonProperty("filters")
27 private List<Filter> filters;
29 @JsonProperty("order")
30 private List<String> order;
32 @JsonProperty("select")
33 private List<String> select;
35 @JsonProperty("distinct")
36 private Boolean distinct;
38 @JsonProperty("count")
41 @JsonProperty("exclude_home_project")
42 private Boolean excludeHomeProject;
44 @JsonProperty("include_old_versions")
45 private Boolean includeOldVersions;
47 @JsonProperty("include_trash")
48 private Boolean includeTrash;
51 Integer limit, Integer offset, List<Filter> filters, List<String> order, List<String> select,
52 Boolean distinct, Count count, Boolean excludeHomeProject, Boolean includeOldVersions,
57 this.filters = filters;
60 this.distinct = distinct;
62 this.excludeHomeProject = excludeHomeProject;
63 this.includeOldVersions = includeOldVersions;
64 this.includeTrash = includeTrash;
67 public static ListArgumentBuilder builder() {
68 return new ListArgumentBuilder();
73 @JsonProperty("exact")
80 public static class ListArgumentBuilder {
81 private Integer limit;
82 private Integer offset;
83 private List<Filter> filters;
84 private List<String> order;
85 private List<String> select;
86 private Boolean distinct;
88 private Boolean excludeHomeProject;
89 private Boolean includeOldVersions;
90 private Boolean includeTrash;
92 ListArgumentBuilder() {
95 public ListArgumentBuilder limit(Integer limit) {
100 public ListArgumentBuilder offset(Integer offset) {
101 this.offset = offset;
105 public ListArgumentBuilder filters(List<Filter> filters) {
106 this.filters = filters;
110 public ListArgumentBuilder order(List<String> order) {
115 public ListArgumentBuilder select(List<String> select) {
116 this.select = select;
120 public ListArgumentBuilder distinct(Boolean distinct) {
121 this.distinct = distinct;
125 public ListArgumentBuilder count(Count count) {
130 public ListArgument.ListArgumentBuilder excludeHomeProject(Boolean excludeHomeProject) {
131 this.excludeHomeProject = excludeHomeProject;
135 public ListArgument.ListArgumentBuilder includeOldVersions(Boolean includeOldVersions) {
136 this.includeOldVersions = includeOldVersions;
140 public ListArgument.ListArgumentBuilder includeTrash(Boolean includeTrash) {
141 this.includeTrash = includeTrash;
145 public ListArgument build() {
146 return new ListArgument(limit, offset, filters, order, select, distinct, count, excludeHomeProject, includeOldVersions, includeTrash);
149 public String toString() {
150 return "ListArgument.ListArgumentBuilder(limit=" + this.limit +
151 ", offset=" + this.offset + ", filters=" + this.filters +
152 ", order=" + this.order + ", select=" + this.select +
153 ", distinct=" + this.distinct + ", count=" + this.count +
154 ", excludeHomeProject=" + this.excludeHomeProject +
155 ", includeOldVersions=" + this.includeOldVersions +
156 ", includeTrash=" + this.includeTrash +