X Tutup
Skip to content

Commit fd1dc0c

Browse files
missmoodebsideup
andauthored
Add SwarmNodeStatus#address field (#1405)
* Add SwarmNodeInfo address field * Update docker-java-api/src/main/java/com/github/dockerjava/api/model/SwarmNodeStatus.java Co-authored-by: Amy Harris <42555115+amelinya@users.noreply.github.com> Co-authored-by: Sergei Egorov <bsideup@gmail.com>
1 parent ee2b249 commit fd1dc0c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docker-java-api/src/main/java/com/github/dockerjava/api/model/SwarmNodeStatus.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ public class SwarmNodeStatus implements Serializable {
2222
@JsonProperty("State")
2323
private SwarmNodeState state;
2424

25+
/**
26+
* @since 1.25
27+
*/
28+
@JsonProperty("Addr")
29+
private String address;
30+
2531
/**
2632
* @see #state
2733
*/
@@ -37,4 +43,20 @@ public SwarmNodeStatus withState(SwarmNodeState state) {
3743
this.state = state;
3844
return this;
3945
}
46+
47+
/**
48+
* @see #address
49+
*/
50+
@CheckForNull
51+
public String getAddress() {
52+
return address;
53+
}
54+
55+
/**
56+
* @see #address
57+
*/
58+
public SwarmNodeStatus withAddress(String address) {
59+
this.address = address;
60+
return this;
61+
}
4062
}

0 commit comments

Comments
 (0)
X Tutup