|
1 | | -package com.github.dockerjava.client.model; |
2 | | - |
3 | | -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
4 | | -import com.fasterxml.jackson.annotation.JsonProperty; |
5 | | - |
6 | | -/** |
7 | | - * |
8 | | - * @author Konstantin Pelykh (kpelykh@gmail.com) |
9 | | - * |
10 | | - */ |
11 | | -@JsonIgnoreProperties(ignoreUnknown = true) |
12 | | -public class CommitConfig { |
13 | | - |
14 | | - @JsonProperty("container") |
15 | | - private String containerId; |
16 | | - |
17 | | - @JsonProperty("repo") |
18 | | - private String repo; |
19 | | - |
20 | | - @JsonProperty("tag") |
21 | | - private String tag; |
22 | | - |
23 | | - @JsonProperty("m") |
24 | | - private String message; |
25 | | - |
26 | | - //author (eg. “John Hannibal Smith <hannibal@a-team.com>”) |
27 | | - @JsonProperty("author") |
28 | | - private String author; |
29 | | - |
30 | | - //config automatically applied when the image is run. (ex: {“Cmd”: [“cat”, “/world”], “PortSpecs”:[“22”]}) |
31 | | - @JsonProperty("run") |
32 | | - private String run; |
33 | | - |
34 | | - public String getContainerId() { |
35 | | - return containerId; |
36 | | - } |
37 | | - |
38 | | - public String getRepo() { |
39 | | - return repo; |
40 | | - } |
41 | | - |
42 | | - public String getTag() { |
43 | | - return tag; |
44 | | - } |
45 | | - |
46 | | - public String getMessage() { |
47 | | - return message; |
48 | | - } |
49 | | - |
50 | | - public String getAuthor() { |
51 | | - return author; |
52 | | - } |
53 | | - |
54 | | - public String getRun() { |
55 | | - return run; |
56 | | - } |
57 | | - |
58 | | - public CommitConfig setRepo(String repo) { |
59 | | - this.repo = repo; |
60 | | - return this; |
61 | | - } |
62 | | - |
63 | | - public CommitConfig setTag(String tag) { |
64 | | - this.tag = tag; |
65 | | - return this; |
66 | | - } |
67 | | - |
68 | | - public CommitConfig setMessage(String message) { |
69 | | - this.message = message; |
70 | | - return this; |
71 | | - } |
72 | | - |
73 | | - public CommitConfig setAuthor(String author) { |
74 | | - this.author = author; |
75 | | - return this; |
76 | | - } |
77 | | - |
78 | | - public CommitConfig setRun(String run) { |
79 | | - this.run = run; |
80 | | - return this; |
81 | | - } |
82 | | - |
83 | | - public CommitConfig(String containerId) { |
84 | | - this.containerId = containerId; |
85 | | - } |
86 | | - |
87 | | -} |
| 1 | +package com.github.dockerjava.client.model; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 4 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 5 | + |
| 6 | +/** |
| 7 | + * |
| 8 | + * @author Konstantin Pelykh (kpelykh@gmail.com) |
| 9 | + * |
| 10 | + */ |
| 11 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 12 | +public class CommitConfig { |
| 13 | + |
| 14 | + @JsonProperty("container") |
| 15 | + private String containerId; |
| 16 | + |
| 17 | + @JsonProperty("repo") |
| 18 | + private String repo; |
| 19 | + |
| 20 | + @JsonProperty("tag") |
| 21 | + private String tag; |
| 22 | + |
| 23 | + @JsonProperty("m") |
| 24 | + private String message; |
| 25 | + |
| 26 | + //author (eg. “John Hannibal Smith <hannibal@a-team.com>”) |
| 27 | + @JsonProperty("author") |
| 28 | + private String author; |
| 29 | + |
| 30 | + //config automatically applied when the image is run. (ex: {“Cmd”: [“cat”, “/world”], “PortSpecs”:[“22”]}) |
| 31 | + @JsonProperty("run") |
| 32 | + private String run; |
| 33 | + |
| 34 | + public String getContainerId() { |
| 35 | + return containerId; |
| 36 | + } |
| 37 | + |
| 38 | + public String getRepo() { |
| 39 | + return repo; |
| 40 | + } |
| 41 | + |
| 42 | + public String getTag() { |
| 43 | + return tag; |
| 44 | + } |
| 45 | + |
| 46 | + public String getMessage() { |
| 47 | + return message; |
| 48 | + } |
| 49 | + |
| 50 | + public String getAuthor() { |
| 51 | + return author; |
| 52 | + } |
| 53 | + |
| 54 | + public String getRun() { |
| 55 | + return run; |
| 56 | + } |
| 57 | + |
| 58 | + public CommitConfig setRepo(String repo) { |
| 59 | + this.repo = repo; |
| 60 | + return this; |
| 61 | + } |
| 62 | + |
| 63 | + public CommitConfig setTag(String tag) { |
| 64 | + this.tag = tag; |
| 65 | + return this; |
| 66 | + } |
| 67 | + |
| 68 | + public CommitConfig setMessage(String message) { |
| 69 | + this.message = message; |
| 70 | + return this; |
| 71 | + } |
| 72 | + |
| 73 | + public CommitConfig setAuthor(String author) { |
| 74 | + this.author = author; |
| 75 | + return this; |
| 76 | + } |
| 77 | + |
| 78 | + public CommitConfig setRun(String run) { |
| 79 | + this.run = run; |
| 80 | + return this; |
| 81 | + } |
| 82 | + |
| 83 | + public CommitConfig(String containerId) { |
| 84 | + this.containerId = containerId; |
| 85 | + } |
| 86 | + |
| 87 | +} |
0 commit comments