forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeviceRequest.java
More file actions
75 lines (57 loc) · 1.64 KB
/
Copy pathDeviceRequest.java
File metadata and controls
75 lines (57 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
@EqualsAndHashCode
@ToString
public class DeviceRequest implements Serializable {
public static final long serialVersionUID = 1L;
@JsonProperty("Driver")
private String driver;
@JsonProperty("Count")
private Integer count;
@JsonProperty("DeviceIDs")
private List<String> deviceIds;
@JsonProperty("Capabilities")
private List<List<String>> capabilities;
@JsonProperty("Options")
private Map<String, String> options;
public String getDriver() {
return driver;
}
public DeviceRequest withDriver(String driver) {
this.driver = driver;
return this;
}
public Integer getCount() {
return count;
}
public DeviceRequest withCount(Integer count) {
this.count = count;
return this;
}
public List<String> getDeviceIds() {
return deviceIds;
}
public DeviceRequest withDeviceIds(List<String> deviceIds) {
this.deviceIds = deviceIds;
return this;
}
public List<List<String>> getCapabilities() {
return capabilities;
}
public DeviceRequest withCapabilities(List<List<String>> capabilities) {
this.capabilities = capabilities;
return this;
}
public Map<String, String> getOptions() {
return options;
}
public DeviceRequest withOptions(Map<String, String> options) {
this.options = options;
return this;
}
}