Package ai.shipeasy.admin.model
Class UpdateAlertRuleRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateAlertRuleRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateAlertRuleRequest
extends Object
UpdateAlertRuleRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets comparatorstatic classstatic enumGets or Sets severity -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomparator(UpdateAlertRuleRequest.ComparatorEnum comparator) booleanstatic UpdateAlertRuleRequestCreate an instance of UpdateAlertRuleRequest given an JSON stringGet comparatorGet enabledgetName()Get nameGet notifyGet severityGet thresholdGet windowHours minimum: 1 maximum: 720inthashCode()notify(NotificationTarget notify) voidsetComparator(UpdateAlertRuleRequest.ComparatorEnum comparator) voidsetEnabled(Boolean enabled) voidvoidsetNotify(NotificationTarget notify) voidvoidsetThreshold(BigDecimal threshold) voidsetWindowHours(Integer windowHours) severity(UpdateAlertRuleRequest.SeverityEnum severity) threshold(BigDecimal threshold) toJson()Convert an instance of UpdateAlertRuleRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwindowHours(Integer windowHours)
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_COMPARATOR
- See Also:
-
SERIALIZED_NAME_THRESHOLD
- See Also:
-
SERIALIZED_NAME_WINDOW_HOURS
- See Also:
-
SERIALIZED_NAME_SEVERITY
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_NOTIFY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateAlertRuleRequest
public UpdateAlertRuleRequest()
-
-
Method Details
-
name
-
getName
Get name- Returns:
- name
-
setName
-
comparator
public UpdateAlertRuleRequest comparator(@Nullable UpdateAlertRuleRequest.ComparatorEnum comparator) -
getComparator
Get comparator- Returns:
- comparator
-
setComparator
-
threshold
-
getThreshold
Get threshold- Returns:
- threshold
-
setThreshold
-
windowHours
-
getWindowHours
Get windowHours minimum: 1 maximum: 720- Returns:
- windowHours
-
setWindowHours
-
severity
-
getSeverity
Get severity- Returns:
- severity
-
setSeverity
-
enabled
-
getEnabled
Get enabled- Returns:
- enabled
-
setEnabled
-
notify
-
getNotify
Get notify- Returns:
- notify
-
setNotify
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UpdateAlertRuleRequest
-
fromJson
Create an instance of UpdateAlertRuleRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateAlertRuleRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateAlertRuleRequest
-
toJson
Convert an instance of UpdateAlertRuleRequest to an JSON string- Returns:
- JSON string
-