summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-05-12 00:00:24 +0200
committerGeorg Pfuetzenreuter2022-05-12 00:00:24 +0200
commit9648a8b9d03fce135b60f03379d92b628ff10a9a (patch)
tree7f343d7dbb6ff499861947c277b8bff64a1fe32d /src/main/java
parent5adf523a017908b41c03d84c1f864bb6752129f8 (diff)
downloadpubsh-web-9648a8b9d03fce135b60f03379d92b628ff10a9a.tar.gz
pubsh-web-9648a8b9d03fce135b60f03379d92b628ff10a9a.tar.bz2
pubsh-web-9648a8b9d03fce135b60f03379d92b628ff10a9a.zip
Custom container model
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/libertacasa/pubsh/web/MyContainer.java90
1 files changed, 90 insertions, 0 deletions
diff --git a/src/main/java/net/libertacasa/pubsh/web/MyContainer.java b/src/main/java/net/libertacasa/pubsh/web/MyContainer.java
new file mode 100644
index 0000000..a7b9395
--- /dev/null
+++ b/src/main/java/net/libertacasa/pubsh/web/MyContainer.java
@@ -0,0 +1,90 @@
+package net.libertacasa.pubsh.web;
+
+import java.io.Serializable;
+import java.time.Instant;
+
+import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.github.dockerjava.api.model.Container;
+
+//public class MyContainer extends Container implements Serializable {
+public class MyContainer implements Serializable {
+ private static final long serialVersionUID = 5870179635916284739L;
+
+ @Override
+ public String toString() {
+// return ReflectionToStringBuilder.toString(this,ToStringStyle.SHORT_PREFIX_STYLE);
+ return new ReflectionToStringBuilder(this).
+ append("name", name).
+ append("id", id).
+ append("ExpirationDate", ExpirationDate).
+ append("image", image).
+ append("imageid", imageid).
+ append("status", status).
+ toString();
+ }
+
+ private String name;
+
+ private String id;
+
+ private Instant ExpirationDate;
+
+ private String image;
+
+ private String imageid;
+
+ private String status;
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public void setExpirationDate(Instant ExpirationDate) {
+ this.ExpirationDate = ExpirationDate;
+ }
+
+ public void setImage(String image) {
+ this.image = image;
+ }
+
+ public void setImageId(String imageid) {
+ this.imageid = imageid;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public Instant getExpirationDate() {
+ return ExpirationDate;
+ }
+
+ public String getImage() {
+ return image;
+ }
+
+ public String getImageId() {
+ return imageid;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+}