Add 'sdk/java-v2/' from commit '55f103e336ca9fb8bf1720d2ef4ee8dd4e221118'
[arvados.git] / sdk / java-v2 / src / main / java / org / arvados / client / api / model / RuntimeConstraints.java
1 /*
2  * Copyright (C) The Arvados Authors. All rights reserved.
3  *
4  * SPDX-License-Identifier: AGPL-3.0 OR Apache-2.0
5  *
6  */
7
8 package org.arvados.client.api.model;
9
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;
14
15 @JsonInclude(JsonInclude.Include.NON_NULL)
16 @JsonIgnoreProperties(ignoreUnknown = true)
17 @JsonPropertyOrder({ "API", "vcpus", "ram", "keep_cache_ram" })
18 public class RuntimeConstraints {
19
20     @JsonProperty("API")
21     private Boolean api;
22     @JsonProperty("vcpus")
23     private Integer vcpus;
24     @JsonProperty("ram")
25     private Long ram;
26     @JsonProperty("keep_cache_ram")
27     private Long keepCacheRam;
28
29     public Boolean getApi() {
30         return this.api;
31     }
32
33     public Integer getVcpus() {
34         return this.vcpus;
35     }
36
37     public Long getRam() {
38         return this.ram;
39     }
40
41     public Long getKeepCacheRam() {
42         return this.keepCacheRam;
43     }
44
45     public void setApi(Boolean api) {
46         this.api = api;
47     }
48
49     public void setVcpus(Integer vcpus) {
50         this.vcpus = vcpus;
51     }
52
53     public void setRam(Long ram) {
54         this.ram = ram;
55     }
56
57     public void setKeepCacheRam(Long keepCacheRam) {
58         this.keepCacheRam = keepCacheRam;
59     }
60 }