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 java.util.List;
20 import java.util.Map;
21
22 import com.fasterxml.jackson.annotation.JsonProperty;
23
24
25
26
27 public class Container {
28 @JsonProperty("Id")
29 private String id;
30
31 @JsonProperty("Names")
32 private List<String> names;
33
34 @JsonProperty("Path")
35 private String path;
36
37 @JsonProperty("Args")
38 private String[] args;
39
40 @JsonProperty("Image")
41 private String image;
42
43 @JsonProperty("ImageID")
44 private String imageId;
45
46 @JsonProperty("Command")
47 private String command;
48
49 @JsonProperty("Created")
50 private Long created;
51
52 @JsonProperty("Ports")
53 private List<PortDefinition> ports;
54
55 @JsonProperty("Labels")
56 private Map<String, String> labels;
57
58 @JsonProperty("State")
59 private String state;
60
61 @JsonProperty("Status")
62 private String status;
63
64 @JsonProperty("HostConfig")
65 private HostConfig hostConfig;
66
67 @JsonProperty("NetworkSettings")
68 private NetworkSettings networkSettings;
69
70 @JsonProperty("Mounts")
71 private List<Mount> mounts;
72
73 public String getId() {
74 return id;
75 }
76
77 public void setId(String id) {
78 this.id = id;
79 }
80
81 public List<String> getNames() {
82 return names;
83 }
84
85 public void setNames(List<String> names) {
86 this.names = names;
87 }
88
89 public String getImage() {
90 return image;
91 }
92
93 public void setImage(String image) {
94 this.image = image;
95 }
96
97 public String getImageId() {
98 return imageId;
99 }
100
101 public void setImageId(String imageId) {
102 this.imageId = imageId;
103 }
104
105 public String getCommand() {
106 return command;
107 }
108
109 public void setCommand(String command) {
110 this.command = command;
111 }
112
113 public Long getCreated() {
114 return created;
115 }
116
117 public void setCreated(Long created) {
118 this.created = created;
119 }
120
121 public List<PortDefinition> getPorts() {
122 return ports;
123 }
124
125 public void setPorts(List<PortDefinition> ports) {
126 this.ports = ports;
127 }
128
129 public Map<String, String> getLabels() {
130 return labels;
131 }
132
133 public void setLabels(Map<String, String> labels) {
134 this.labels = labels;
135 }
136
137 public String getState() {
138 return state;
139 }
140
141 public void setState(String state) {
142 this.state = state;
143 }
144
145 public String getStatus() {
146 return status;
147 }
148
149 public void setStatus(String status) {
150 this.status = status;
151 }
152
153 public HostConfig getHostConfig() {
154 return hostConfig;
155 }
156
157 public void setHostConfig(HostConfig hostConfig) {
158 this.hostConfig = hostConfig;
159 }
160
161 public NetworkSettings getNetworkSettings() {
162 return networkSettings;
163 }
164
165 public void setNetworkSettings(NetworkSettings networkSettings) {
166 this.networkSettings = networkSettings;
167 }
168
169 public List<Mount> getMounts() {
170 return mounts;
171 }
172
173 public void setMounts(List<Mount> mounts) {
174 this.mounts = mounts;
175 }
176 }