Skip to content

Commit c0b9e4b

Browse files
committed
Merge pull request #498 from KostyaSha/issue493
Update image inspect response.
2 parents 3ddda35 + 8703cf6 commit c0b9e4b

File tree

6 files changed

+953
-55
lines changed

6 files changed

+953
-55
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
package com.github.dockerjava.api.command;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import org.apache.commons.lang.builder.EqualsBuilder;
5+
import org.apache.commons.lang.builder.HashCodeBuilder;
6+
import org.apache.commons.lang.builder.ToStringBuilder;
7+
8+
import javax.annotation.CheckForNull;
9+
10+
/**
11+
* Part of {@link InspectImageResponse}
12+
*
13+
* @author Kanstantsin Shautsou
14+
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
15+
*/
16+
public class GraphDriver {
17+
/**
18+
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
19+
*/
20+
@JsonProperty("Name")
21+
private String name;
22+
23+
/**
24+
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
25+
*/
26+
@JsonProperty("Data")
27+
private String data;
28+
29+
30+
/**
31+
* @see #data
32+
*/
33+
@CheckForNull
34+
public String getData() {
35+
return data;
36+
}
37+
38+
/**
39+
* @see #data
40+
*/
41+
public GraphDriver withData(String data) {
42+
this.data = data;
43+
return this;
44+
}
45+
46+
/**
47+
* @see #name
48+
*/
49+
@CheckForNull
50+
public String getName() {
51+
return name;
52+
}
53+
54+
/**
55+
* @see #name
56+
*/
57+
public GraphDriver withName(String name) {
58+
this.name = name;
59+
return this;
60+
}
61+
62+
@Override
63+
public String toString() {
64+
return ToStringBuilder.reflectionToString(this);
65+
}
66+
67+
@Override
68+
public boolean equals(Object o) {
69+
return EqualsBuilder.reflectionEquals(this, o);
70+
}
71+
72+
@Override
73+
public int hashCode() {
74+
return HashCodeBuilder.reflectionHashCode(this);
75+
}
76+
}

0 commit comments

Comments
 (0)