1717import java .util .Objects ;
1818
1919/** Options for the rule action */
20- @ JsonPropertyOrder ({SecurityMonitoringRuleCaseActionOptions .JSON_PROPERTY_DURATION })
20+ @ JsonPropertyOrder ({
21+ SecurityMonitoringRuleCaseActionOptions .JSON_PROPERTY_DURATION ,
22+ SecurityMonitoringRuleCaseActionOptions .JSON_PROPERTY_USER_BEHAVIOR_NAME
23+ })
2124@ jakarta .annotation .Generated (
2225 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
2326public class SecurityMonitoringRuleCaseActionOptions {
2427 @ JsonIgnore public boolean unparsed = false ;
2528 public static final String JSON_PROPERTY_DURATION = "duration" ;
2629 private Long duration ;
2730
31+ public static final String JSON_PROPERTY_USER_BEHAVIOR_NAME = "userBehaviorName" ;
32+ private String userBehaviorName ;
33+
2834 public SecurityMonitoringRuleCaseActionOptions duration (Long duration ) {
2935 this .duration = duration ;
3036 return this ;
@@ -46,6 +52,28 @@ public void setDuration(Long duration) {
4652 this .duration = duration ;
4753 }
4854
55+ public SecurityMonitoringRuleCaseActionOptions userBehaviorName (String userBehaviorName ) {
56+ this .userBehaviorName = userBehaviorName ;
57+ return this ;
58+ }
59+
60+ /**
61+ * Used with the case action of type 'user_behavior'. The value specified in this field will be
62+ * applied as a risk tag to all users affected by the rule.
63+ *
64+ * @return userBehaviorName
65+ */
66+ @ jakarta .annotation .Nullable
67+ @ JsonProperty (JSON_PROPERTY_USER_BEHAVIOR_NAME )
68+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
69+ public String getUserBehaviorName () {
70+ return userBehaviorName ;
71+ }
72+
73+ public void setUserBehaviorName (String userBehaviorName ) {
74+ this .userBehaviorName = userBehaviorName ;
75+ }
76+
4977 /**
5078 * A container for additional, undeclared properties. This is a holder for any undeclared
5179 * properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -104,21 +132,24 @@ public boolean equals(Object o) {
104132 SecurityMonitoringRuleCaseActionOptions securityMonitoringRuleCaseActionOptions =
105133 (SecurityMonitoringRuleCaseActionOptions ) o ;
106134 return Objects .equals (this .duration , securityMonitoringRuleCaseActionOptions .duration )
135+ && Objects .equals (
136+ this .userBehaviorName , securityMonitoringRuleCaseActionOptions .userBehaviorName )
107137 && Objects .equals (
108138 this .additionalProperties ,
109139 securityMonitoringRuleCaseActionOptions .additionalProperties );
110140 }
111141
112142 @ Override
113143 public int hashCode () {
114- return Objects .hash (duration , additionalProperties );
144+ return Objects .hash (duration , userBehaviorName , additionalProperties );
115145 }
116146
117147 @ Override
118148 public String toString () {
119149 StringBuilder sb = new StringBuilder ();
120150 sb .append ("class SecurityMonitoringRuleCaseActionOptions {\n " );
121151 sb .append (" duration: " ).append (toIndentedString (duration )).append ("\n " );
152+ sb .append (" userBehaviorName: " ).append (toIndentedString (userBehaviorName )).append ("\n " );
122153 sb .append (" additionalProperties: " )
123154 .append (toIndentedString (additionalProperties ))
124155 .append ("\n " );
0 commit comments