1212import com .fasterxml .jackson .annotation .JsonInclude ;
1313import com .fasterxml .jackson .annotation .JsonProperty ;
1414import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
15+ import java .util .ArrayList ;
1516import java .util .HashMap ;
17+ import java .util .List ;
1618import java .util .Map ;
1719import java .util .Objects ;
1820
2931 SecurityMonitoringSuppressionAttributes .JSON_PROPERTY_RULE_QUERY ,
3032 SecurityMonitoringSuppressionAttributes .JSON_PROPERTY_START_DATE ,
3133 SecurityMonitoringSuppressionAttributes .JSON_PROPERTY_SUPPRESSION_QUERY ,
34+ SecurityMonitoringSuppressionAttributes .JSON_PROPERTY_TAGS ,
3235 SecurityMonitoringSuppressionAttributes .JSON_PROPERTY_UPDATE_DATE ,
3336 SecurityMonitoringSuppressionAttributes .JSON_PROPERTY_UPDATER ,
3437 SecurityMonitoringSuppressionAttributes .JSON_PROPERTY_VERSION
@@ -70,6 +73,9 @@ public class SecurityMonitoringSuppressionAttributes {
7073 public static final String JSON_PROPERTY_SUPPRESSION_QUERY = "suppression_query" ;
7174 private String suppressionQuery ;
7275
76+ public static final String JSON_PROPERTY_TAGS = "tags" ;
77+ private List <String > tags = null ;
78+
7379 public static final String JSON_PROPERTY_UPDATE_DATE = "update_date" ;
7480 private Long updateDate ;
7581
@@ -317,6 +323,35 @@ public void setSuppressionQuery(String suppressionQuery) {
317323 this .suppressionQuery = suppressionQuery ;
318324 }
319325
326+ public SecurityMonitoringSuppressionAttributes tags (List <String > tags ) {
327+ this .tags = tags ;
328+ return this ;
329+ }
330+
331+ public SecurityMonitoringSuppressionAttributes addTagsItem (String tagsItem ) {
332+ if (this .tags == null ) {
333+ this .tags = new ArrayList <>();
334+ }
335+ this .tags .add (tagsItem );
336+ return this ;
337+ }
338+
339+ /**
340+ * List of tags associated with the suppression rule.
341+ *
342+ * @return tags
343+ */
344+ @ jakarta .annotation .Nullable
345+ @ JsonProperty (JSON_PROPERTY_TAGS )
346+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
347+ public List <String > getTags () {
348+ return tags ;
349+ }
350+
351+ public void setTags (List <String > tags ) {
352+ this .tags = tags ;
353+ }
354+
320355 public SecurityMonitoringSuppressionAttributes updateDate (Long updateDate ) {
321356 this .updateDate = updateDate ;
322357 return this ;
@@ -453,6 +488,7 @@ public boolean equals(Object o) {
453488 && Objects .equals (this .startDate , securityMonitoringSuppressionAttributes .startDate )
454489 && Objects .equals (
455490 this .suppressionQuery , securityMonitoringSuppressionAttributes .suppressionQuery )
491+ && Objects .equals (this .tags , securityMonitoringSuppressionAttributes .tags )
456492 && Objects .equals (this .updateDate , securityMonitoringSuppressionAttributes .updateDate )
457493 && Objects .equals (this .updater , securityMonitoringSuppressionAttributes .updater )
458494 && Objects .equals (this .version , securityMonitoringSuppressionAttributes .version )
@@ -475,6 +511,7 @@ public int hashCode() {
475511 ruleQuery ,
476512 startDate ,
477513 suppressionQuery ,
514+ tags ,
478515 updateDate ,
479516 updater ,
480517 version ,
@@ -496,6 +533,7 @@ public String toString() {
496533 sb .append (" ruleQuery: " ).append (toIndentedString (ruleQuery )).append ("\n " );
497534 sb .append (" startDate: " ).append (toIndentedString (startDate )).append ("\n " );
498535 sb .append (" suppressionQuery: " ).append (toIndentedString (suppressionQuery )).append ("\n " );
536+ sb .append (" tags: " ).append (toIndentedString (tags )).append ("\n " );
499537 sb .append (" updateDate: " ).append (toIndentedString (updateDate )).append ("\n " );
500538 sb .append (" updater: " ).append (toIndentedString (updater )).append ("\n " );
501539 sb .append (" version: " ).append (toIndentedString (version )).append ("\n " );
0 commit comments