public class ViolationEvent extends Object implements Serializable
Information about a Device Defender security profile behavior violation.
Constructor and Description |
---|
ViolationEvent() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Behavior |
getBehavior()
The behavior which was violated.
|
MetricValue |
getMetricValue()
The value of the metric (the measurement).
|
String |
getSecurityProfileName()
The name of the security profile whose behavior was violated.
|
String |
getThingName()
The name of the thing responsible for the violation event.
|
Date |
getViolationEventTime()
The time the violation event occurred.
|
String |
getViolationEventType()
The type of violation event.
|
String |
getViolationId()
The ID of the violation event.
|
int |
hashCode() |
void |
setBehavior(Behavior behavior)
The behavior which was violated.
|
void |
setMetricValue(MetricValue metricValue)
The value of the metric (the measurement).
|
void |
setSecurityProfileName(String securityProfileName)
The name of the security profile whose behavior was violated.
|
void |
setThingName(String thingName)
The name of the thing responsible for the violation event.
|
void |
setViolationEventTime(Date violationEventTime)
The time the violation event occurred.
|
void |
setViolationEventType(String violationEventType)
The type of violation event.
|
void |
setViolationEventType(ViolationEventType violationEventType)
The type of violation event.
|
void |
setViolationId(String violationId)
The ID of the violation event.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ViolationEvent |
withBehavior(Behavior behavior)
The behavior which was violated.
|
ViolationEvent |
withMetricValue(MetricValue metricValue)
The value of the metric (the measurement).
|
ViolationEvent |
withSecurityProfileName(String securityProfileName)
The name of the security profile whose behavior was violated.
|
ViolationEvent |
withThingName(String thingName)
The name of the thing responsible for the violation event.
|
ViolationEvent |
withViolationEventTime(Date violationEventTime)
The time the violation event occurred.
|
ViolationEvent |
withViolationEventType(String violationEventType)
The type of violation event.
|
ViolationEvent |
withViolationEventType(ViolationEventType violationEventType)
The type of violation event.
|
ViolationEvent |
withViolationId(String violationId)
The ID of the violation event.
|
public String getViolationId()
The ID of the violation event.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
The ID of the violation event.
public void setViolationId(String violationId)
The ID of the violation event.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
violationId
- The ID of the violation event.
public ViolationEvent withViolationId(String violationId)
The ID of the violation event.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
violationId
- The ID of the violation event.
public String getThingName()
The name of the thing responsible for the violation event.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing responsible for the violation event.
public void setThingName(String thingName)
The name of the thing responsible for the violation event.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing responsible for the violation event.
public ViolationEvent withThingName(String thingName)
The name of the thing responsible for the violation event.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing responsible for the violation event.
public String getSecurityProfileName()
The name of the security profile whose behavior was violated.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the security profile whose behavior was violated.
public void setSecurityProfileName(String securityProfileName)
The name of the security profile whose behavior was violated.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
securityProfileName
- The name of the security profile whose behavior was violated.
public ViolationEvent withSecurityProfileName(String securityProfileName)
The name of the security profile whose behavior was violated.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
securityProfileName
- The name of the security profile whose behavior was violated.
public Behavior getBehavior()
The behavior which was violated.
The behavior which was violated.
public void setBehavior(Behavior behavior)
The behavior which was violated.
behavior
- The behavior which was violated.
public ViolationEvent withBehavior(Behavior behavior)
The behavior which was violated.
Returns a reference to this object so that method calls can be chained together.
behavior
- The behavior which was violated.
public MetricValue getMetricValue()
The value of the metric (the measurement).
The value of the metric (the measurement).
public void setMetricValue(MetricValue metricValue)
The value of the metric (the measurement).
metricValue
- The value of the metric (the measurement).
public ViolationEvent withMetricValue(MetricValue metricValue)
The value of the metric (the measurement).
Returns a reference to this object so that method calls can be chained together.
metricValue
- The value of the metric (the measurement).
public String getViolationEventType()
The type of violation event.
Constraints:
Allowed Values: in-alarm, alarm-cleared, alarm-invalidated
The type of violation event.
ViolationEventType
public void setViolationEventType(String violationEventType)
The type of violation event.
Constraints:
Allowed Values: in-alarm, alarm-cleared, alarm-invalidated
violationEventType
- The type of violation event.
ViolationEventType
public ViolationEvent withViolationEventType(String violationEventType)
The type of violation event.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: in-alarm, alarm-cleared, alarm-invalidated
violationEventType
- The type of violation event.
ViolationEventType
public void setViolationEventType(ViolationEventType violationEventType)
The type of violation event.
Constraints:
Allowed Values: in-alarm, alarm-cleared, alarm-invalidated
violationEventType
- The type of violation event.
ViolationEventType
public ViolationEvent withViolationEventType(ViolationEventType violationEventType)
The type of violation event.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: in-alarm, alarm-cleared, alarm-invalidated
violationEventType
- The type of violation event.
ViolationEventType
public Date getViolationEventTime()
The time the violation event occurred.
The time the violation event occurred.
public void setViolationEventTime(Date violationEventTime)
The time the violation event occurred.
violationEventTime
- The time the violation event occurred.
public ViolationEvent withViolationEventTime(Date violationEventTime)
The time the violation event occurred.
Returns a reference to this object so that method calls can be chained together.
violationEventTime
- The time the violation event occurred.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.