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;
10 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
11 import com.fasterxml.jackson.annotation.JsonInclude;
12 import com.fasterxml.jackson.annotation.JsonProperty;
13 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
15 import java.time.LocalDateTime;
16 import java.util.List;
18 @JsonInclude(JsonInclude.Include.NON_NULL)
19 @JsonIgnoreProperties(ignoreUnknown = true)
20 @JsonPropertyOrder({ "command", "container_count", "container_count_max", "container_image", "container_uuid", "cwd", "environment", "expires_at",
21 "filters", "log_uuid", "mounts", "output_name", "output_path", "output_uuid", "output_ttl", "priority", "properties", "requesting_container_uuid",
22 "runtime_constraints", "scheduling_parameters", "state", "use_existing" })
23 public class Group extends Item {
27 @JsonProperty("group_class")
28 private String groupClass;
29 @JsonProperty("description")
30 private String description;
31 @JsonProperty("writable_by")
32 private List<String> writableBy;
33 @JsonProperty("delete_at")
34 private LocalDateTime deleteAt;
35 @JsonProperty("trash_at")
36 private LocalDateTime trashAt;
37 @JsonProperty("is_trashed")
38 private Boolean isTrashed;
39 @JsonProperty("command")
40 private List<String> command;
41 @JsonProperty("container_count")
42 private Integer containerCount;
43 @JsonProperty("container_count_max")
44 private Integer containerCountMax;
45 @JsonProperty("container_image")
46 private String containerImage;
47 @JsonProperty("container_uuid")
48 private String containerUuid;
51 @JsonProperty("environment")
52 private Object environment;
53 @JsonProperty("expires_at")
54 private LocalDateTime expiresAt;
55 @JsonProperty("filters")
56 private List<String> filters;
57 @JsonProperty("log_uuid")
58 private String logUuid;
59 @JsonProperty("mounts")
60 private Object mounts;
61 @JsonProperty("output_name")
62 private String outputName;
63 @JsonProperty("output_path")
64 private String outputPath;
65 @JsonProperty("output_uuid")
66 private String outputUuid;
67 @JsonProperty("output_ttl")
68 private Integer outputTtl;
69 @JsonProperty("priority")
70 private Integer priority;
71 @JsonProperty("properties")
72 private Object properties;
73 @JsonProperty("requesting_container_uuid")
74 private String requestingContainerUuid;
75 @JsonProperty("runtime_constraints")
76 private RuntimeConstraints runtimeConstraints;
77 @JsonProperty("scheduling_parameters")
78 private Object schedulingParameters;
79 @JsonProperty("state")
81 @JsonProperty("use_existing")
82 private Boolean useExisting;
84 public String getName() {
88 public String getGroupClass() {
89 return this.groupClass;
92 public String getDescription() {
93 return this.description;
96 public List<String> getWritableBy() {
97 return this.writableBy;
100 public LocalDateTime getDeleteAt() {
101 return this.deleteAt;
104 public LocalDateTime getTrashAt() {
108 public Boolean getIsTrashed() {
109 return this.isTrashed;
112 public List<String> getCommand() {
116 public Integer getContainerCount() {
117 return this.containerCount;
120 public Integer getContainerCountMax() {
121 return this.containerCountMax;
124 public String getContainerImage() {
125 return this.containerImage;
128 public String getContainerUuid() {
129 return this.containerUuid;
132 public String getCwd() {
136 public Object getEnvironment() {
137 return this.environment;
140 public LocalDateTime getExpiresAt() {
141 return this.expiresAt;
144 public List<String> getFilters() {
148 public String getLogUuid() {
152 public Object getMounts() {
156 public String getOutputName() {
157 return this.outputName;
160 public String getOutputPath() {
161 return this.outputPath;
164 public String getOutputUuid() {
165 return this.outputUuid;
168 public Integer getOutputTtl() {
169 return this.outputTtl;
172 public Integer getPriority() {
173 return this.priority;
176 public Object getProperties() {
177 return this.properties;
180 public String getRequestingContainerUuid() {
181 return this.requestingContainerUuid;
184 public RuntimeConstraints getRuntimeConstraints() {
185 return this.runtimeConstraints;
188 public Object getSchedulingParameters() {
189 return this.schedulingParameters;
192 public String getState() {
196 public Boolean getUseExisting() {
197 return this.useExisting;
200 public void setName(String name) {
204 public void setGroupClass(String groupClass) {
205 this.groupClass = groupClass;
208 public void setDescription(String description) {
209 this.description = description;
212 public void setWritableBy(List<String> writableBy) {
213 this.writableBy = writableBy;
216 public void setDeleteAt(LocalDateTime deleteAt) {
217 this.deleteAt = deleteAt;
220 public void setTrashAt(LocalDateTime trashAt) {
221 this.trashAt = trashAt;
224 public void setIsTrashed(Boolean isTrashed) {
225 this.isTrashed = isTrashed;
228 public void setCommand(List<String> command) {
229 this.command = command;
232 public void setContainerCount(Integer containerCount) {
233 this.containerCount = containerCount;
236 public void setContainerCountMax(Integer containerCountMax) {
237 this.containerCountMax = containerCountMax;
240 public void setContainerImage(String containerImage) {
241 this.containerImage = containerImage;
244 public void setContainerUuid(String containerUuid) {
245 this.containerUuid = containerUuid;
248 public void setCwd(String cwd) {
252 public void setEnvironment(Object environment) {
253 this.environment = environment;
256 public void setExpiresAt(LocalDateTime expiresAt) {
257 this.expiresAt = expiresAt;
260 public void setFilters(List<String> filters) {
261 this.filters = filters;
264 public void setLogUuid(String logUuid) {
265 this.logUuid = logUuid;
268 public void setMounts(Object mounts) {
269 this.mounts = mounts;
272 public void setOutputName(String outputName) {
273 this.outputName = outputName;
276 public void setOutputPath(String outputPath) {
277 this.outputPath = outputPath;
280 public void setOutputUuid(String outputUuid) {
281 this.outputUuid = outputUuid;
284 public void setOutputTtl(Integer outputTtl) {
285 this.outputTtl = outputTtl;
288 public void setPriority(Integer priority) {
289 this.priority = priority;
292 public void setProperties(Object properties) {
293 this.properties = properties;
296 public void setRequestingContainerUuid(String requestingContainerUuid) {
297 this.requestingContainerUuid = requestingContainerUuid;
300 public void setRuntimeConstraints(RuntimeConstraints runtimeConstraints) {
301 this.runtimeConstraints = runtimeConstraints;
304 public void setSchedulingParameters(Object schedulingParameters) {
305 this.schedulingParameters = schedulingParameters;
308 public void setState(String state) {
312 public void setUseExisting(Boolean useExisting) {
313 this.useExisting = useExisting;
316 public String toString() {
317 return "Group(name=" + this.getName() + ", groupClass=" + this.getGroupClass() + ", description=" + this.getDescription() + ", writableBy=" + this.getWritableBy() + ", deleteAt=" + this.getDeleteAt() + ", trashAt=" + this.getTrashAt() + ", isTrashed=" + this.getIsTrashed() + ", command=" + this.getCommand() + ", containerCount=" + this.getContainerCount() + ", containerCountMax=" + this.getContainerCountMax() + ", containerImage=" + this.getContainerImage() + ", containerUuid=" + this.getContainerUuid() + ", cwd=" + this.getCwd() + ", environment=" + this.getEnvironment() + ", expiresAt=" + this.getExpiresAt() + ", filters=" + this.getFilters() + ", logUuid=" + this.getLogUuid() + ", mounts=" + this.getMounts() + ", outputName=" + this.getOutputName() + ", outputPath=" + this.getOutputPath() + ", outputUuid=" + this.getOutputUuid() + ", outputTtl=" + this.getOutputTtl() + ", priority=" + this.getPriority() + ", properties=" + this.getProperties() + ", requestingContainerUuid=" + this.getRequestingContainerUuid() + ", runtimeConstraints=" + this.getRuntimeConstraints() + ", schedulingParameters=" + this.getSchedulingParameters() + ", state=" + this.getState() + ", useExisting=" + this.getUseExisting() + ")";