@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class NotificationRuleAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CREATED_AT |
static String |
JSON_PROPERTY_CREATED_BY |
static String |
JSON_PROPERTY_ENABLED |
static String |
JSON_PROPERTY_MODIFIED_AT |
static String |
JSON_PROPERTY_MODIFIED_BY |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_SELECTORS |
static String |
JSON_PROPERTY_TARGETS |
static String |
JSON_PROPERTY_TIME_AGGREGATION |
static String |
JSON_PROPERTY_VERSION |
boolean |
unparsed |
| Constructor and Description |
|---|
NotificationRuleAttributes() |
NotificationRuleAttributes(Long createdAt,
RuleUser createdBy,
Boolean enabled,
Long modifiedAt,
RuleUser modifiedBy,
String name,
Selectors selectors,
List<String> targets,
Long version) |
| Modifier and Type | Method and Description |
|---|---|
NotificationRuleAttributes |
addTargetsItem(String targetsItem) |
NotificationRuleAttributes |
createdAt(Long createdAt) |
NotificationRuleAttributes |
createdBy(RuleUser createdBy) |
NotificationRuleAttributes |
enabled(Boolean enabled) |
boolean |
equals(Object o)
Return true if this NotificationRuleAttributes object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Long |
getCreatedAt()
Date as Unix timestamp in milliseconds.
|
RuleUser |
getCreatedBy()
User creating or modifying a rule.
|
Boolean |
getEnabled()
Field used to enable or disable the rule.
|
Long |
getModifiedAt()
Date as Unix timestamp in milliseconds.
|
RuleUser |
getModifiedBy()
User creating or modifying a rule.
|
String |
getName()
Name of the notification rule.
|
Selectors |
getSelectors()
Selectors are used to filter security issues for which notifications should be generated.
|
List<String> |
getTargets()
List of recipients to notify when a notification rule is triggered.
|
Long |
getTimeAggregation()
Time aggregation period (in seconds) is used to aggregate the results of the notification rule
evaluation.
|
Long |
getVersion()
Version of the notification rule.
|
int |
hashCode() |
NotificationRuleAttributes |
modifiedAt(Long modifiedAt) |
NotificationRuleAttributes |
modifiedBy(RuleUser modifiedBy) |
NotificationRuleAttributes |
name(String name) |
NotificationRuleAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
NotificationRuleAttributes |
selectors(Selectors selectors) |
void |
setCreatedAt(Long createdAt) |
void |
setCreatedBy(RuleUser createdBy) |
void |
setEnabled(Boolean enabled) |
void |
setModifiedAt(Long modifiedAt) |
void |
setModifiedBy(RuleUser modifiedBy) |
void |
setName(String name) |
void |
setSelectors(Selectors selectors) |
void |
setTargets(List<String> targets) |
void |
setTimeAggregation(Long timeAggregation) |
void |
setVersion(Long version) |
NotificationRuleAttributes |
targets(List<String> targets) |
NotificationRuleAttributes |
timeAggregation(Long timeAggregation) |
String |
toString() |
NotificationRuleAttributes |
version(Long version) |
public boolean unparsed
public static final String JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_BY
public static final String JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_MODIFIED_AT
public static final String JSON_PROPERTY_MODIFIED_BY
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_SELECTORS
public static final String JSON_PROPERTY_TARGETS
public static final String JSON_PROPERTY_TIME_AGGREGATION
public static final String JSON_PROPERTY_VERSION
public NotificationRuleAttributes createdAt(Long createdAt)
public Long getCreatedAt()
public void setCreatedAt(Long createdAt)
public NotificationRuleAttributes createdBy(RuleUser createdBy)
public RuleUser getCreatedBy()
public void setCreatedBy(RuleUser createdBy)
public NotificationRuleAttributes enabled(Boolean enabled)
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
public NotificationRuleAttributes modifiedAt(Long modifiedAt)
public Long getModifiedAt()
public void setModifiedAt(Long modifiedAt)
public NotificationRuleAttributes modifiedBy(RuleUser modifiedBy)
public RuleUser getModifiedBy()
public void setModifiedBy(RuleUser modifiedBy)
public NotificationRuleAttributes name(String name)
public String getName()
public void setName(String name)
public NotificationRuleAttributes selectors(Selectors selectors)
public Selectors getSelectors()
public void setSelectors(Selectors selectors)
public NotificationRuleAttributes targets(List<String> targets)
public NotificationRuleAttributes addTargetsItem(String targetsItem)
public List<String> getTargets()
public NotificationRuleAttributes timeAggregation(Long timeAggregation)
@Nullable public Long getTimeAggregation()
public void setTimeAggregation(Long timeAggregation)
public NotificationRuleAttributes version(Long version)
public Long getVersion()
public void setVersion(Long version)
public NotificationRuleAttributes putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2025. All rights reserved.