2121import com .google .gson .stream .JsonWriter ;
2222import com .volcengine .volcobserve .model .ConditionForCreateRuleInput ;
2323import com .volcengine .volcobserve .model .DimensionConditionsForCreateRuleInput ;
24+ import com .volcengine .volcobserve .model .LevelConditionForCreateRuleInput ;
2425import com .volcengine .volcobserve .model .NoDataForCreateRuleInput ;
2526import com .volcengine .volcobserve .model .RecoveryNotifyForCreateRuleInput ;
2627import io .swagger .v3 .oas .annotations .media .Schema ;
@@ -118,6 +119,9 @@ public AlertMethodsEnum read(final JsonReader jsonReader) throws IOException {
118119 @ SerializedName ("Level" )
119120 private String level = null ;
120121
122+ @ SerializedName ("LevelConditions" )
123+ private List <LevelConditionForCreateRuleInput > levelConditions = null ;
124+
121125 @ SerializedName ("MultipleConditions" )
122126 private Boolean multipleConditions = null ;
123127
@@ -127,6 +131,9 @@ public AlertMethodsEnum read(final JsonReader jsonReader) throws IOException {
127131 @ SerializedName ("NoData" )
128132 private NoDataForCreateRuleInput noData = null ;
129133
134+ @ SerializedName ("NotificationId" )
135+ private String notificationId = null ;
136+
130137 @ SerializedName ("OriginalDimensions" )
131138 private Map <String , List <String >> originalDimensions = null ;
132139
@@ -429,6 +436,33 @@ public void setLevel(String level) {
429436 this .level = level ;
430437 }
431438
439+ public CreateRuleRequest levelConditions (List <LevelConditionForCreateRuleInput > levelConditions ) {
440+ this .levelConditions = levelConditions ;
441+ return this ;
442+ }
443+
444+ public CreateRuleRequest addLevelConditionsItem (LevelConditionForCreateRuleInput levelConditionsItem ) {
445+ if (this .levelConditions == null ) {
446+ this .levelConditions = new ArrayList <LevelConditionForCreateRuleInput >();
447+ }
448+ this .levelConditions .add (levelConditionsItem );
449+ return this ;
450+ }
451+
452+ /**
453+ * Get levelConditions
454+ * @return levelConditions
455+ **/
456+ @ Valid
457+ @ Schema (description = "" )
458+ public List <LevelConditionForCreateRuleInput > getLevelConditions () {
459+ return levelConditions ;
460+ }
461+
462+ public void setLevelConditions (List <LevelConditionForCreateRuleInput > levelConditions ) {
463+ this .levelConditions = levelConditions ;
464+ }
465+
432466 public CreateRuleRequest multipleConditions (Boolean multipleConditions ) {
433467 this .multipleConditions = multipleConditions ;
434468 return this ;
@@ -485,6 +519,24 @@ public void setNoData(NoDataForCreateRuleInput noData) {
485519 this .noData = noData ;
486520 }
487521
522+ public CreateRuleRequest notificationId (String notificationId ) {
523+ this .notificationId = notificationId ;
524+ return this ;
525+ }
526+
527+ /**
528+ * Get notificationId
529+ * @return notificationId
530+ **/
531+ @ Schema (description = "" )
532+ public String getNotificationId () {
533+ return notificationId ;
534+ }
535+
536+ public void setNotificationId (String notificationId ) {
537+ this .notificationId = notificationId ;
538+ }
539+
488540 public CreateRuleRequest originalDimensions (Map <String , List <String >> originalDimensions ) {
489541 this .originalDimensions = originalDimensions ;
490542 return this ;
@@ -716,9 +768,11 @@ public boolean equals(java.lang.Object o) {
716768 Objects .equals (this .enableState , createRuleRequest .enableState ) &&
717769 Objects .equals (this .evaluationCount , createRuleRequest .evaluationCount ) &&
718770 Objects .equals (this .level , createRuleRequest .level ) &&
771+ Objects .equals (this .levelConditions , createRuleRequest .levelConditions ) &&
719772 Objects .equals (this .multipleConditions , createRuleRequest .multipleConditions ) &&
720773 Objects .equals (this .namespace , createRuleRequest .namespace ) &&
721774 Objects .equals (this .noData , createRuleRequest .noData ) &&
775+ Objects .equals (this .notificationId , createRuleRequest .notificationId ) &&
722776 Objects .equals (this .originalDimensions , createRuleRequest .originalDimensions ) &&
723777 Objects .equals (this .projectName , createRuleRequest .projectName ) &&
724778 Objects .equals (this .recoveryNotify , createRuleRequest .recoveryNotify ) &&
@@ -733,7 +787,7 @@ public boolean equals(java.lang.Object o) {
733787
734788 @ Override
735789 public int hashCode () {
736- return Objects .hash (alertMethods , conditionOperator , conditions , contactGroupIds , description , dimensionConditions , effectEndAt , effectStartAt , enableState , evaluationCount , level , multipleConditions , namespace , noData , originalDimensions , projectName , recoveryNotify , regions , ruleName , ruleType , silenceTime , subNamespace , webhook , webhookIds );
790+ return Objects .hash (alertMethods , conditionOperator , conditions , contactGroupIds , description , dimensionConditions , effectEndAt , effectStartAt , enableState , evaluationCount , level , levelConditions , multipleConditions , namespace , noData , notificationId , originalDimensions , projectName , recoveryNotify , regions , ruleName , ruleType , silenceTime , subNamespace , webhook , webhookIds );
737791 }
738792
739793
@@ -753,9 +807,11 @@ public String toString() {
753807 sb .append (" enableState: " ).append (toIndentedString (enableState )).append ("\n " );
754808 sb .append (" evaluationCount: " ).append (toIndentedString (evaluationCount )).append ("\n " );
755809 sb .append (" level: " ).append (toIndentedString (level )).append ("\n " );
810+ sb .append (" levelConditions: " ).append (toIndentedString (levelConditions )).append ("\n " );
756811 sb .append (" multipleConditions: " ).append (toIndentedString (multipleConditions )).append ("\n " );
757812 sb .append (" namespace: " ).append (toIndentedString (namespace )).append ("\n " );
758813 sb .append (" noData: " ).append (toIndentedString (noData )).append ("\n " );
814+ sb .append (" notificationId: " ).append (toIndentedString (notificationId )).append ("\n " );
759815 sb .append (" originalDimensions: " ).append (toIndentedString (originalDimensions )).append ("\n " );
760816 sb .append (" projectName: " ).append (toIndentedString (projectName )).append ("\n " );
761817 sb .append (" recoveryNotify: " ).append (toIndentedString (recoveryNotify )).append ("\n " );
0 commit comments