forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerMount.java
More file actions
151 lines (127 loc) · 2.56 KB
/
Copy pathContainerMount.java
File metadata and controls
151 lines (127 loc) · 2.56 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.annotation.CheckForNull;
import java.io.Serializable;
/**
* @author Yuting Liu
* @see Container
*/
@EqualsAndHashCode
@ToString
public class ContainerMount implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty("Name")
String name;
@JsonProperty("Source")
String source;
@JsonProperty("Destination")
String destination;
@JsonProperty("Driver")
String driver;
@JsonProperty("Mode")
String mode;
@JsonProperty("RW")
boolean rw;
@JsonProperty("Propagation")
String propagation;
/**
* @see #name
*/
@CheckForNull
public String getName() {
return name;
}
/**
* @see #name
*/
public ContainerMount withName(String name) {
this.name = name;
return this;
}
/**
* @see #source
*/
@CheckForNull
public String getSource() {
return source;
}
/**
* @see #source
*/
public ContainerMount withSource(String source) {
this.source = source;
return this;
}
/**
* @see #destination
*/
@CheckForNull
public String getDestination() {
return destination;
}
/**
* @see #destination
*/
public ContainerMount withDestination(String destination) {
this.destination = destination;
return this;
}
/**
* @see #driver
*/
@CheckForNull
public String getDriver() {
return driver;
}
/**
* @see #driver
*/
public ContainerMount withDriver(String driver) {
this.driver = driver;
return this;
}
/**
* @see #mode
*/
@CheckForNull
public String getMode() {
return driver;
}
/**
* @see #mode
*/
public ContainerMount withMode(String mode) {
this.mode = mode;
return this;
}
/**
* @see #rw
*/
@CheckForNull
public Boolean getRw() {
return rw;
}
/**
* @see #rw
*/
public ContainerMount withRw(Boolean rw) {
this.rw = rw;
return this;
}
/**
* @see #propagation
*/
@CheckForNull
public String getPropagation() {
return propagation;
}
/**
* @see #propagation
*/
public ContainerMount withPropagation(String propagation) {
this.propagation = propagation;
return this;
}
}