@@ -30,6 +30,12 @@ public class Rule {
3030 @ JsonProperty ("validity" )
3131 private List <TimeRange > validity ;
3232
33+ @ JsonProperty ("tags" )
34+ private List <String > tags ;
35+
36+ @ JsonProperty ("scope" )
37+ private String scope ;
38+
3339 public Rule setObjectID (String objectID ) {
3440 this .objectID = objectID ;
3541 return this ;
@@ -116,6 +122,36 @@ public List<TimeRange> getValidity() {
116122 return validity ;
117123 }
118124
125+ public Rule setTags (List <String > tags ) {
126+ this .tags = tags ;
127+ return this ;
128+ }
129+
130+ public Rule addTags (String tagsItem ) {
131+ if (this .tags == null ) {
132+ this .tags = new ArrayList <>();
133+ }
134+ this .tags .add (tagsItem );
135+ return this ;
136+ }
137+
138+ /** Get tags */
139+ @ javax .annotation .Nullable
140+ public List <String > getTags () {
141+ return tags ;
142+ }
143+
144+ public Rule setScope (String scope ) {
145+ this .scope = scope ;
146+ return this ;
147+ }
148+
149+ /** Get scope */
150+ @ javax .annotation .Nullable
151+ public String getScope () {
152+ return scope ;
153+ }
154+
119155 @ Override
120156 public boolean equals (Object o ) {
121157 if (this == o ) {
@@ -131,13 +167,15 @@ public boolean equals(Object o) {
131167 Objects .equals (this .consequence , rule .consequence ) &&
132168 Objects .equals (this .description , rule .description ) &&
133169 Objects .equals (this .enabled , rule .enabled ) &&
134- Objects .equals (this .validity , rule .validity )
170+ Objects .equals (this .validity , rule .validity ) &&
171+ Objects .equals (this .tags , rule .tags ) &&
172+ Objects .equals (this .scope , rule .scope )
135173 );
136174 }
137175
138176 @ Override
139177 public int hashCode () {
140- return Objects .hash (objectID , conditions , consequence , description , enabled , validity );
178+ return Objects .hash (objectID , conditions , consequence , description , enabled , validity , tags , scope );
141179 }
142180
143181 @ Override
@@ -150,6 +188,8 @@ public String toString() {
150188 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
151189 sb .append (" enabled: " ).append (toIndentedString (enabled )).append ("\n " );
152190 sb .append (" validity: " ).append (toIndentedString (validity )).append ("\n " );
191+ sb .append (" tags: " ).append (toIndentedString (tags )).append ("\n " );
192+ sb .append (" scope: " ).append (toIndentedString (scope )).append ("\n " );
153193 sb .append ("}" );
154194 return sb .toString ();
155195 }
0 commit comments