Package com.datadog.api.client.v2.model
Class IncidentRulePatchDataAttributesRequest
java.lang.Object
com.datadog.api.client.v2.model.IncidentRulePatchDataAttributesRequest
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IncidentRulePatchDataAttributesRequest
extends Object
Attributes for patching an incident rule. All fields are optional.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConditionsItem(IncidentRuleCondition conditionsItem) condition(IncidentRuleQueryCondition condition) conditions(List<IncidentRuleCondition> conditions) booleanReturn true if this IncidentRulePatchDataAttributesRequest object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A query-based condition for an incident rule.List of field-based conditions.Whether the rule is enabled.The JSON-encoded payload for the task.The trigger event for an incident rule.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCondition(IncidentRuleQueryCondition condition) voidsetConditions(List<IncidentRuleCondition> conditions) voidsetEnabled(Boolean enabled) voidsetTaskPayload(String taskPayload) voidsetTrigger(IncidentRuleTriggerType trigger) taskPayload(String taskPayload) toString()trigger(IncidentRuleTriggerType trigger)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONDITION
- See Also:
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_TASK_PAYLOAD
- See Also:
-
JSON_PROPERTY_TRIGGER
- See Also:
-
-
Constructor Details
-
IncidentRulePatchDataAttributesRequest
public IncidentRulePatchDataAttributesRequest()
-
-
Method Details
-
condition
-
getCondition
A query-based condition for an incident rule.- Returns:
- condition
-
setCondition
-
conditions
-
addConditionsItem
public IncidentRulePatchDataAttributesRequest addConditionsItem(IncidentRuleCondition conditionsItem) -
getConditions
List of field-based conditions.- Returns:
- conditions
-
setConditions
-
enabled
-
getEnabled
Whether the rule is enabled.- Returns:
- enabled
-
setEnabled
-
taskPayload
-
getTaskPayload
The JSON-encoded payload for the task.- Returns:
- taskPayload
-
setTaskPayload
-
trigger
-
getTrigger
The trigger event for an incident rule.- 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:
- IncidentRulePatchDataAttributesRequest
-
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 IncidentRulePatchDataAttributesRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-