Package com.datadog.api.client.v2.model
Class IncidentNotificationRuleCreateAttributes
java.lang.Object
com.datadog.api.client.v2.model.IncidentNotificationRuleCreateAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IncidentNotificationRuleCreateAttributes
extends Object
The attributes for creating a notification rule.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIncidentNotificationRuleCreateAttributes(List<IncidentNotificationRuleConditionsItems> conditions, List<String> handles, String trigger) -
Method Summary
Modifier and TypeMethodDescriptionaddConditionsItem(IncidentNotificationRuleConditionsItems conditionsItem) addHandlesItem(String handlesItem) addRenotifyOnItem(String renotifyOnItem) conditions(List<IncidentNotificationRuleConditionsItems> conditions) booleanReturn true if this IncidentNotificationRuleCreateAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The conditions that trigger this notification rule.Whether the notification rule is enabled.The notification handles (targets) for this rule.List of incident fields that trigger re-notification when changed.The trigger event for this notification rule.The visibility of the notification rule.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.renotifyOn(List<String> renotifyOn) voidsetConditions(List<IncidentNotificationRuleConditionsItems> conditions) voidsetEnabled(Boolean enabled) voidsetHandles(List<String> handles) voidsetRenotifyOn(List<String> renotifyOn) voidsetTrigger(String trigger) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_HANDLES
- See Also:
-
JSON_PROPERTY_RENOTIFY_ON
- See Also:
-
JSON_PROPERTY_TRIGGER
- See Also:
-
JSON_PROPERTY_VISIBILITY
- See Also:
-
-
Constructor Details
-
IncidentNotificationRuleCreateAttributes
public IncidentNotificationRuleCreateAttributes() -
IncidentNotificationRuleCreateAttributes
public IncidentNotificationRuleCreateAttributes(List<IncidentNotificationRuleConditionsItems> conditions, List<String> handles, String trigger)
-
-
Method Details
-
conditions
public IncidentNotificationRuleCreateAttributes conditions(List<IncidentNotificationRuleConditionsItems> conditions) -
addConditionsItem
public IncidentNotificationRuleCreateAttributes addConditionsItem(IncidentNotificationRuleConditionsItems conditionsItem) -
getConditions
The conditions that trigger this notification rule.- Returns:
- conditions
-
setConditions
-
enabled
-
getEnabled
Whether the notification rule is enabled.- Returns:
- enabled
-
setEnabled
-
handles
-
addHandlesItem
-
getHandles
The notification handles (targets) for this rule.- Returns:
- handles
-
setHandles
-
renotifyOn
-
addRenotifyOnItem
-
getRenotifyOn
List of incident fields that trigger re-notification when changed.- Returns:
- renotifyOn
-
setRenotifyOn
-
trigger
-
getTrigger
The trigger event for this notification rule.- Returns:
- trigger
-
setTrigger
-
visibility
public IncidentNotificationRuleCreateAttributes visibility(IncidentNotificationRuleCreateAttributesVisibility visibility) -
getVisibility
The visibility of the notification rule.- Returns:
- visibility
-
setVisibility
-
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:
- IncidentNotificationRuleCreateAttributes
-
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 IncidentNotificationRuleCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-