Package com.datadog.api.client.v2.model
Class PatchNotificationRuleParametersData
java.lang.Object
com.datadog.api.client.v2.model.PatchNotificationRuleParametersData
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class PatchNotificationRuleParametersData
extends Object
Data of the notification rule patch request: the rule ID, the rule type, and the rule attributes.
All fields are required.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPatchNotificationRuleParametersData(PatchNotificationRuleParametersDataAttributes attributes, String id, NotificationRulesType type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this PatchNotificationRuleParametersData object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes of the notification rule patch request.getId()The ID of a notification rule.getType()The rule type associated to notification rules.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidsetType(NotificationRulesType type) toString()type(NotificationRulesType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
PatchNotificationRuleParametersData
public PatchNotificationRuleParametersData() -
PatchNotificationRuleParametersData
public PatchNotificationRuleParametersData(PatchNotificationRuleParametersDataAttributes attributes, String id, NotificationRulesType type)
-
-
Method Details
-
attributes
public PatchNotificationRuleParametersData attributes(PatchNotificationRuleParametersDataAttributes attributes) -
getAttributes
Attributes of the notification rule patch request. It is required to update the version of the rule when patching it.- Returns:
- attributes
-
setAttributes
-
id
-
getId
The ID of a notification rule.- Returns:
- id
-
setId
-
type
-
getType
The rule type associated to notification rules.- Returns:
- type
-
setType
-
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:
- PatchNotificationRuleParametersData
-
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 PatchNotificationRuleParametersData object is equal to o. -
hashCode
public int hashCode() -
toString
-