1515 */
1616package com .stackify .api ;
1717
18+ import java .util .List ;
1819import java .util .UUID ;
1920
2021import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
@@ -90,6 +91,12 @@ public class LogMsg {
9091 @ JsonProperty ("id" )
9192 private final String id ;
9293
94+ /**
95+ * List of Tags
96+ */
97+ @ JsonProperty ("Tags" )
98+ private final List <String > tags ;
99+
93100 /**
94101 * @return the msg
95102 */
@@ -160,6 +167,14 @@ public String getId() {
160167 return id ;
161168 }
162169
170+ /**
171+ * @return the List of Tags
172+ */
173+ public List <String > getTags ()
174+ {
175+ return tags ;
176+ }
177+
163178 /**
164179 * @return An instance of Builder, based on current class state
165180 */
@@ -173,7 +188,8 @@ public Builder toBuilder() {
173188 .level (this .level )
174189 .transId (this .transId )
175190 .srcMethod (this .srcMethod )
176- .srcLine (this .srcLine );
191+ .srcLine (this .srcLine )
192+ .tags (this .tags );
177193 }
178194
179195 /**
@@ -190,6 +206,7 @@ private LogMsg(final Builder builder) {
190206 this .srcMethod = builder .srcMethod ;
191207 this .srcLine = builder .srcLine ;
192208 this .id = UUID .randomUUID ().toString ();
209+ this .tags = builder .tags ;
193210 }
194211
195212 /**
@@ -259,6 +276,12 @@ public static class Builder {
259276 @ JsonProperty ("SrcLine" )
260277 private Integer srcLine ;
261278
279+ /**
280+ * The builder's tags
281+ */
282+ @ JsonProperty ("Tags" )
283+ private List <String > tags ;
284+
262285 /**
263286 * Sets the builder's msg
264287 * @param msg The msg to be set
@@ -349,6 +372,18 @@ public Builder srcLine(final Integer srcLine) {
349372 return this ;
350373 }
351374
375+ /**
376+ * Sets the builder's tags
377+ * @param tags A list of tags associated to this LogMsg
378+ * @return Reference to the current object
379+ */
380+ public Builder tags (final List <String > tags )
381+ {
382+ this .tags = tags ;
383+ return this ;
384+ }
385+
386+
352387 /**
353388 * @return A new object constructed from this builder
354389 */
0 commit comments