Package com.datadog.api.client.v2.model
Class ControlNotificationEventSetting
java.lang.Object
com.datadog.api.client.v2.model.ControlNotificationEventSetting
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ControlNotificationEventSetting
extends Object
The notification settings for a single event type on a control.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionControlNotificationEventSetting(Boolean enabled, String eventType, List<ControlNotificationTarget> targets) -
Method Summary
Modifier and TypeMethodDescriptionaddTargetsItem(ControlNotificationTarget targetsItem) booleanReturn true if this ControlNotificationEventSetting object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether notifications are enabled for this event type.The event type the notification settings apply to, such asnew_detection.The destinations that receive notifications for an event type.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetEnabled(Boolean enabled) voidsetEventType(String eventType) voidsetTargets(List<ControlNotificationTarget> targets) targets(List<ControlNotificationTarget> targets) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_EVENT_TYPE
- See Also:
-
JSON_PROPERTY_TARGETS
- See Also:
-
-
Constructor Details
-
ControlNotificationEventSetting
public ControlNotificationEventSetting() -
ControlNotificationEventSetting
public ControlNotificationEventSetting(Boolean enabled, String eventType, List<ControlNotificationTarget> targets)
-
-
Method Details
-
enabled
-
getEnabled
Whether notifications are enabled for this event type.- Returns:
- enabled
-
setEnabled
-
eventType
-
getEventType
The event type the notification settings apply to, such asnew_detection.- Returns:
- eventType
-
setEventType
-
targets
-
addTargetsItem
-
getTargets
The destinations that receive notifications for an event type.- Returns:
- targets
-
setTargets
-
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:
- ControlNotificationEventSetting
-
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 ControlNotificationEventSetting object is equal to o. -
hashCode
public int hashCode() -
toString
-