Merge "[RECV-94] Separate docker/robot invoking"
[validation.git] / ui / src / main / java / org / akraino / validation / ui / client / nexus / resources / Test.java
1 /*
2  * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may
5  * not use this file except in compliance with the License. You may obtain
6  * a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13  * implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  */
16 package org.akraino.validation.ui.client.nexus.resources;
17
18 import java.util.List;
19
20 import org.codehaus.jackson.annotate.JsonIgnoreProperties;
21 import org.codehaus.jackson.annotate.JsonProperty;
22 import org.codehaus.jackson.map.annotate.JsonSerialize;
23
24 @JsonIgnoreProperties(ignoreUnknown = true)
25 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
26 public class Test {
27     @JsonProperty("doc")
28     private String doc;
29
30     @JsonProperty("id")
31     private String id;
32
33     @JsonProperty("name")
34     private String name;
35
36     @JsonProperty("status")
37     private Test.Status status;
38
39     @JsonProperty("kw")
40     private List<Kw> kw;
41
42     public Test() {
43
44     }
45
46     public String getDoc() {
47         return this.doc;
48     }
49
50     public void setDoc(String doc) {
51         this.doc = doc;
52     }
53
54     public String getId() {
55         return this.id;
56     }
57
58     public void setId(String id) {
59         this.id = id;
60     }
61
62     public String getName() {
63         return this.name;
64     }
65
66     public void setName(String name) {
67         this.name = name;
68     }
69
70     public Test.Status getStatus() {
71         return this.status;
72     }
73
74     public void setStatus(Test.Status status) {
75         this.status = status;
76     }
77
78     public List<Kw> getKw() {
79         return this.kw;
80     }
81
82     public void setKw(List<Kw> kw) {
83         this.kw = kw;
84     }
85
86     public class Status {
87         @JsonProperty("status")
88         private String status;
89
90         @JsonProperty("starttime")
91         private String starttime;
92
93         @JsonProperty("endtime")
94         private String endtime;
95
96         @JsonProperty("critical")
97         private String critical;
98
99         @JsonProperty("content")
100         private String content;
101
102         public Status() {
103
104         }
105
106         public String getStatus() {
107             return this.status;
108         }
109
110         public void setStatus(String status) {
111             this.status = status;
112         }
113
114         public String getStarttime() {
115             return this.starttime;
116         }
117
118         public void setStarttime(String starttime) {
119             this.starttime = starttime;
120         }
121
122         public String getEndtime() {
123             return this.endtime;
124         }
125
126         public void setEndtime(String endtime) {
127             this.endtime = endtime;
128         }
129
130         public String getCritical() {
131             return this.critical;
132         }
133
134         public void setCritical(String critical) {
135             this.critical = critical;
136         }
137
138         public String getContent() {
139             return this.content;
140         }
141
142         public void setContent(String content) {
143             this.content = content;
144         }
145     }
146 }