1919/** The action the rule can perform if triggered */
2020@ JsonPropertyOrder ({
2121 CloudWorkloadSecurityAgentRuleAction .JSON_PROPERTY_FILTER ,
22- CloudWorkloadSecurityAgentRuleAction .JSON_PROPERTY_KILL
22+ CloudWorkloadSecurityAgentRuleAction .JSON_PROPERTY_KILL ,
23+ CloudWorkloadSecurityAgentRuleAction .JSON_PROPERTY_METADATA ,
24+ CloudWorkloadSecurityAgentRuleAction .JSON_PROPERTY_SET
2325})
2426@ jakarta .annotation .Generated (
2527 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
@@ -31,6 +33,12 @@ public class CloudWorkloadSecurityAgentRuleAction {
3133 public static final String JSON_PROPERTY_KILL = "kill" ;
3234 private CloudWorkloadSecurityAgentRuleKill kill ;
3335
36+ public static final String JSON_PROPERTY_METADATA = "metadata" ;
37+ private CloudWorkloadSecurityAgentRuleActionMetadata metadata ;
38+
39+ public static final String JSON_PROPERTY_SET = "set" ;
40+ private CloudWorkloadSecurityAgentRuleActionSet set ;
41+
3442 public CloudWorkloadSecurityAgentRuleAction filter (String filter ) {
3543 this .filter = filter ;
3644 return this ;
@@ -74,6 +82,51 @@ public void setKill(CloudWorkloadSecurityAgentRuleKill kill) {
7482 this .kill = kill ;
7583 }
7684
85+ public CloudWorkloadSecurityAgentRuleAction metadata (
86+ CloudWorkloadSecurityAgentRuleActionMetadata metadata ) {
87+ this .metadata = metadata ;
88+ this .unparsed |= metadata .unparsed ;
89+ return this ;
90+ }
91+
92+ /**
93+ * The metadata action applied on the scope matching the rule
94+ *
95+ * @return metadata
96+ */
97+ @ jakarta .annotation .Nullable
98+ @ JsonProperty (JSON_PROPERTY_METADATA )
99+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
100+ public CloudWorkloadSecurityAgentRuleActionMetadata getMetadata () {
101+ return metadata ;
102+ }
103+
104+ public void setMetadata (CloudWorkloadSecurityAgentRuleActionMetadata metadata ) {
105+ this .metadata = metadata ;
106+ }
107+
108+ public CloudWorkloadSecurityAgentRuleAction set (CloudWorkloadSecurityAgentRuleActionSet set ) {
109+ this .set = set ;
110+ this .unparsed |= set .unparsed ;
111+ return this ;
112+ }
113+
114+ /**
115+ * The set action applied on the scope matching the rule
116+ *
117+ * @return set
118+ */
119+ @ jakarta .annotation .Nullable
120+ @ JsonProperty (JSON_PROPERTY_SET )
121+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
122+ public CloudWorkloadSecurityAgentRuleActionSet getSet () {
123+ return set ;
124+ }
125+
126+ public void setSet (CloudWorkloadSecurityAgentRuleActionSet set ) {
127+ this .set = set ;
128+ }
129+
77130 /**
78131 * A container for additional, undeclared properties. This is a holder for any undeclared
79132 * properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -133,13 +186,15 @@ public boolean equals(Object o) {
133186 (CloudWorkloadSecurityAgentRuleAction ) o ;
134187 return Objects .equals (this .filter , cloudWorkloadSecurityAgentRuleAction .filter )
135188 && Objects .equals (this .kill , cloudWorkloadSecurityAgentRuleAction .kill )
189+ && Objects .equals (this .metadata , cloudWorkloadSecurityAgentRuleAction .metadata )
190+ && Objects .equals (this .set , cloudWorkloadSecurityAgentRuleAction .set )
136191 && Objects .equals (
137192 this .additionalProperties , cloudWorkloadSecurityAgentRuleAction .additionalProperties );
138193 }
139194
140195 @ Override
141196 public int hashCode () {
142- return Objects .hash (filter , kill , additionalProperties );
197+ return Objects .hash (filter , kill , metadata , set , additionalProperties );
143198 }
144199
145200 @ Override
@@ -148,6 +203,8 @@ public String toString() {
148203 sb .append ("class CloudWorkloadSecurityAgentRuleAction {\n " );
149204 sb .append (" filter: " ).append (toIndentedString (filter )).append ("\n " );
150205 sb .append (" kill: " ).append (toIndentedString (kill )).append ("\n " );
206+ sb .append (" metadata: " ).append (toIndentedString (metadata )).append ("\n " );
207+ sb .append (" set: " ).append (toIndentedString (set )).append ("\n " );
151208 sb .append (" additionalProperties: " )
152209 .append (toIndentedString (additionalProperties ))
153210 .append ("\n " );
0 commit comments