Package com.datadog.api.client.v2.model
Class AutomationRuleAttributes
java.lang.Object
com.datadog.api.client.v2.model.AutomationRuleAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AutomationRuleAttributes
extends Object
Core attributes of an automation rule, including its name, trigger condition, action to execute,
and current state.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAutomationRuleAttributes(AutomationRuleAction action, OffsetDateTime createdAt, String name, CaseAutomationRuleState state, AutomationRuleTrigger trigger) -
Method Summary
Modifier and TypeMethodDescriptionaction(AutomationRuleAction action) booleanReturn true if this AutomationRuleAttributes object is equal to o.Defines what happens when the rule triggers.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Timestamp when the automation rule was created.Timestamp when the automation rule was last modified.getName()A human-readable name for the automation rule, used to identify the rule in the UI and API responses.getState()Whether the automation rule is active.Defines when the rule activates.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAction(AutomationRuleAction action) voidvoidsetState(CaseAutomationRuleState state) voidsetTrigger(AutomationRuleTrigger trigger) state(CaseAutomationRuleState state) toString()trigger(AutomationRuleTrigger trigger)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ACTION
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_MODIFIED_AT
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_STATE
- See Also:
-
JSON_PROPERTY_TRIGGER
- See Also:
-
-
Constructor Details
-
AutomationRuleAttributes
public AutomationRuleAttributes() -
AutomationRuleAttributes
public AutomationRuleAttributes(AutomationRuleAction action, OffsetDateTime createdAt, String name, CaseAutomationRuleState state, AutomationRuleTrigger trigger)
-
-
Method Details
-
action
-
getAction
Defines what happens when the rule triggers. Combines an action type with action-specific configuration data.- Returns:
- action
-
setAction
-
getCreatedAt
Timestamp when the automation rule was created.- Returns:
- createdAt
-
getModifiedAt
Timestamp when the automation rule was last modified.- Returns:
- modifiedAt
-
name
-
getName
A human-readable name for the automation rule, used to identify the rule in the UI and API responses.- Returns:
- name
-
setName
-
state
-
getState
Whether the automation rule is active. Enabled rules trigger on matching case events; disabled rules are inactive but preserve their configuration.- Returns:
- state
-
setState
-
trigger
-
getTrigger
Defines when the rule activates. Combines a trigger type (the case event to listen for) with optional trigger data (conditions that narrow when the trigger fires).- Returns:
- trigger
-
setTrigger
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- AutomationRuleAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this AutomationRuleAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-