Package com.datadog.api.client.v2.model
Class AutomationRuleCreateAttributes
java.lang.Object
com.datadog.api.client.v2.model.AutomationRuleCreateAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AutomationRuleCreateAttributes
extends Object
Attributes required to create an automation rule.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAutomationRuleCreateAttributes(AutomationRuleAction action, String name, AutomationRuleTrigger trigger) -
Method Summary
Modifier and TypeMethodDescriptionaction(AutomationRuleAction action) booleanReturn true if this AutomationRuleCreateAttributes 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.getName()Name of the automation rule.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_NAME
- See Also:
-
JSON_PROPERTY_STATE
- See Also:
-
JSON_PROPERTY_TRIGGER
- See Also:
-
-
Constructor Details
-
AutomationRuleCreateAttributes
public AutomationRuleCreateAttributes() -
AutomationRuleCreateAttributes
public AutomationRuleCreateAttributes(AutomationRuleAction action, String name, 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
-
name
-
getName
Name of the automation rule.- 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:
- AutomationRuleCreateAttributes
-
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 AutomationRuleCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-