public class Notification extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Notification.Level
A value specifying the severity level of the notification.
|
| Constructor and Description |
|---|
Notification() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
ReportingDescriptorReference |
getAssociatedRule()
Information about how to locate a relevant reporting descriptor.
|
ReportingDescriptorReference |
getDescriptor()
Information about how to locate a relevant reporting descriptor.
|
Exception |
getException()
Describes a runtime exception encountered during the execution of an analysis tool.
|
Notification.Level |
getLevel()
A value specifying the severity level of the notification.
|
Set<Location> |
getLocations()
The locations relevant to this notification.
|
Message |
getMessage()
Encapsulates a message intended to be read by the end user.
|
PropertyBag |
getProperties()
Key/value pairs that provide additional information about the object.
|
Integer |
getThreadId()
The thread identifier of the code that generated the notification.
|
Date |
getTimeUtc()
The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification.
|
int |
hashCode() |
void |
setAssociatedRule(ReportingDescriptorReference associatedRule)
Information about how to locate a relevant reporting descriptor.
|
void |
setDescriptor(ReportingDescriptorReference descriptor)
Information about how to locate a relevant reporting descriptor.
|
void |
setException(Exception exception)
Describes a runtime exception encountered during the execution of an analysis tool.
|
void |
setLevel(Notification.Level level)
A value specifying the severity level of the notification.
|
void |
setLocations(Set<Location> locations)
The locations relevant to this notification.
|
void |
setMessage(Message message)
Encapsulates a message intended to be read by the end user.
|
void |
setProperties(PropertyBag properties)
Key/value pairs that provide additional information about the object.
|
void |
setThreadId(Integer threadId)
The thread identifier of the code that generated the notification.
|
void |
setTimeUtc(Date timeUtc)
The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification.
|
String |
toString() |
Notification |
withAssociatedRule(ReportingDescriptorReference associatedRule) |
Notification |
withDescriptor(ReportingDescriptorReference descriptor) |
Notification |
withException(Exception exception) |
Notification |
withLevel(Notification.Level level) |
Notification |
withLocations(Set<Location> locations) |
Notification |
withMessage(Message message) |
Notification |
withProperties(PropertyBag properties) |
Notification |
withThreadId(Integer threadId) |
Notification |
withTimeUtc(Date timeUtc) |
public void setLocations(Set<Location> locations)
public Notification withLocations(Set<Location> locations)
public Message getMessage()
public void setMessage(Message message)
public Notification withMessage(Message message)
public Notification.Level getLevel()
public void setLevel(Notification.Level level)
public Notification withLevel(Notification.Level level)
public Integer getThreadId()
public void setThreadId(Integer threadId)
public Notification withThreadId(Integer threadId)
public Date getTimeUtc()
public void setTimeUtc(Date timeUtc)
public Notification withTimeUtc(Date timeUtc)
public Exception getException()
public void setException(Exception exception)
public Notification withException(Exception exception)
public ReportingDescriptorReference getDescriptor()
public void setDescriptor(ReportingDescriptorReference descriptor)
public Notification withDescriptor(ReportingDescriptorReference descriptor)
public ReportingDescriptorReference getAssociatedRule()
public void setAssociatedRule(ReportingDescriptorReference associatedRule)
public Notification withAssociatedRule(ReportingDescriptorReference associatedRule)
public PropertyBag getProperties()
public void setProperties(PropertyBag properties)
public Notification withProperties(PropertyBag properties)
Copyright © 2020 Contrast Security. All rights reserved.