19
19
/** The set action applied on the scope matching the rule */
20
20
@ JsonPropertyOrder ({
21
21
CloudWorkloadSecurityAgentRuleActionSet .JSON_PROPERTY_APPEND ,
22
+ CloudWorkloadSecurityAgentRuleActionSet .JSON_PROPERTY_DEFAULT_VALUE ,
23
+ CloudWorkloadSecurityAgentRuleActionSet .JSON_PROPERTY_EXPRESSION ,
22
24
CloudWorkloadSecurityAgentRuleActionSet .JSON_PROPERTY_FIELD ,
25
+ CloudWorkloadSecurityAgentRuleActionSet .JSON_PROPERTY_INHERITED ,
23
26
CloudWorkloadSecurityAgentRuleActionSet .JSON_PROPERTY_NAME ,
24
27
CloudWorkloadSecurityAgentRuleActionSet .JSON_PROPERTY_SCOPE ,
25
28
CloudWorkloadSecurityAgentRuleActionSet .JSON_PROPERTY_SIZE ,
@@ -33,9 +36,18 @@ public class CloudWorkloadSecurityAgentRuleActionSet {
33
36
public static final String JSON_PROPERTY_APPEND = "append" ;
34
37
private Boolean append ;
35
38
39
+ public static final String JSON_PROPERTY_DEFAULT_VALUE = "default_value" ;
40
+ private String defaultValue ;
41
+
42
+ public static final String JSON_PROPERTY_EXPRESSION = "expression" ;
43
+ private String expression ;
44
+
36
45
public static final String JSON_PROPERTY_FIELD = "field" ;
37
46
private String field ;
38
47
48
+ public static final String JSON_PROPERTY_INHERITED = "inherited" ;
49
+ private Boolean inherited ;
50
+
39
51
public static final String JSON_PROPERTY_NAME = "name" ;
40
52
private String name ;
41
53
@@ -72,6 +84,48 @@ public void setAppend(Boolean append) {
72
84
this .append = append ;
73
85
}
74
86
87
+ public CloudWorkloadSecurityAgentRuleActionSet defaultValue (String defaultValue ) {
88
+ this .defaultValue = defaultValue ;
89
+ return this ;
90
+ }
91
+
92
+ /**
93
+ * The default value of the set action
94
+ *
95
+ * @return defaultValue
96
+ */
97
+ @ jakarta .annotation .Nullable
98
+ @ JsonProperty (JSON_PROPERTY_DEFAULT_VALUE )
99
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
100
+ public String getDefaultValue () {
101
+ return defaultValue ;
102
+ }
103
+
104
+ public void setDefaultValue (String defaultValue ) {
105
+ this .defaultValue = defaultValue ;
106
+ }
107
+
108
+ public CloudWorkloadSecurityAgentRuleActionSet expression (String expression ) {
109
+ this .expression = expression ;
110
+ return this ;
111
+ }
112
+
113
+ /**
114
+ * The expression of the set action
115
+ *
116
+ * @return expression
117
+ */
118
+ @ jakarta .annotation .Nullable
119
+ @ JsonProperty (JSON_PROPERTY_EXPRESSION )
120
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
121
+ public String getExpression () {
122
+ return expression ;
123
+ }
124
+
125
+ public void setExpression (String expression ) {
126
+ this .expression = expression ;
127
+ }
128
+
75
129
public CloudWorkloadSecurityAgentRuleActionSet field (String field ) {
76
130
this .field = field ;
77
131
return this ;
@@ -93,6 +147,27 @@ public void setField(String field) {
93
147
this .field = field ;
94
148
}
95
149
150
+ public CloudWorkloadSecurityAgentRuleActionSet inherited (Boolean inherited ) {
151
+ this .inherited = inherited ;
152
+ return this ;
153
+ }
154
+
155
+ /**
156
+ * Whether the value should be inherited
157
+ *
158
+ * @return inherited
159
+ */
160
+ @ jakarta .annotation .Nullable
161
+ @ JsonProperty (JSON_PROPERTY_INHERITED )
162
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
163
+ public Boolean getInherited () {
164
+ return inherited ;
165
+ }
166
+
167
+ public void setInherited (Boolean inherited ) {
168
+ this .inherited = inherited ;
169
+ }
170
+
96
171
public CloudWorkloadSecurityAgentRuleActionSet name (String name ) {
97
172
this .name = name ;
98
173
return this ;
@@ -256,7 +331,10 @@ public boolean equals(Object o) {
256
331
CloudWorkloadSecurityAgentRuleActionSet cloudWorkloadSecurityAgentRuleActionSet =
257
332
(CloudWorkloadSecurityAgentRuleActionSet ) o ;
258
333
return Objects .equals (this .append , cloudWorkloadSecurityAgentRuleActionSet .append )
334
+ && Objects .equals (this .defaultValue , cloudWorkloadSecurityAgentRuleActionSet .defaultValue )
335
+ && Objects .equals (this .expression , cloudWorkloadSecurityAgentRuleActionSet .expression )
259
336
&& Objects .equals (this .field , cloudWorkloadSecurityAgentRuleActionSet .field )
337
+ && Objects .equals (this .inherited , cloudWorkloadSecurityAgentRuleActionSet .inherited )
260
338
&& Objects .equals (this .name , cloudWorkloadSecurityAgentRuleActionSet .name )
261
339
&& Objects .equals (this .scope , cloudWorkloadSecurityAgentRuleActionSet .scope )
262
340
&& Objects .equals (this .size , cloudWorkloadSecurityAgentRuleActionSet .size )
@@ -269,15 +347,29 @@ public boolean equals(Object o) {
269
347
270
348
@ Override
271
349
public int hashCode () {
272
- return Objects .hash (append , field , name , scope , size , ttl , value , additionalProperties );
350
+ return Objects .hash (
351
+ append ,
352
+ defaultValue ,
353
+ expression ,
354
+ field ,
355
+ inherited ,
356
+ name ,
357
+ scope ,
358
+ size ,
359
+ ttl ,
360
+ value ,
361
+ additionalProperties );
273
362
}
274
363
275
364
@ Override
276
365
public String toString () {
277
366
StringBuilder sb = new StringBuilder ();
278
367
sb .append ("class CloudWorkloadSecurityAgentRuleActionSet {\n " );
279
368
sb .append (" append: " ).append (toIndentedString (append )).append ("\n " );
369
+ sb .append (" defaultValue: " ).append (toIndentedString (defaultValue )).append ("\n " );
370
+ sb .append (" expression: " ).append (toIndentedString (expression )).append ("\n " );
280
371
sb .append (" field: " ).append (toIndentedString (field )).append ("\n " );
372
+ sb .append (" inherited: " ).append (toIndentedString (inherited )).append ("\n " );
281
373
sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
282
374
sb .append (" scope: " ).append (toIndentedString (scope )).append ("\n " );
283
375
sb .append (" size: " ).append (toIndentedString (size )).append ("\n " );
0 commit comments