1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.logging.log4j.docker.model;
18
19 import com.fasterxml.jackson.annotation.JsonProperty;
20
21
22
23
24 public class PortDefinition {
25
26 @JsonProperty("IP")
27 private String ip;
28
29 @JsonProperty("PrivatePort")
30 private Integer privatePort;
31
32 @JsonProperty("PublicPort")
33 private Integer publicPort;
34
35 @JsonProperty("Type")
36 private String type;
37
38 public String getIp() {
39 return ip;
40 }
41
42 public void setIp(String ip) {
43 this.ip = ip;
44 }
45
46 public Integer getPrivatePort() {
47 return privatePort;
48 }
49
50 public void setPrivatePort(Integer privatePort) {
51 this.privatePort = privatePort;
52 }
53
54 public Integer getPublicPort() {
55 return publicPort;
56 }
57
58 public void setPublicPort(Integer publicPort) {
59 this.publicPort = publicPort;
60 }
61
62 public String getType() {
63 return type;
64 }
65
66 public void setType(String type) {
67 this.type = type;
68 }
69 }