public class ActiveViolation extends Object implements Serializable
Information about an active Device Defender security profile behavior violation.
| Constructor and Description |
|---|
ActiveViolation() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Behavior |
getBehavior()
The behavior which is being violated.
|
Date |
getLastViolationTime()
The time the most recent violation occurred.
|
MetricValue |
getLastViolationValue()
The value of the metric (the measurement) which caused the most recent
violation.
|
String |
getSecurityProfileName()
The security profile whose behavior is in violation.
|
String |
getThingName()
The name of the thing responsible for the active violation.
|
String |
getViolationId()
The ID of the active violation.
|
Date |
getViolationStartTime()
The time the violation started.
|
int |
hashCode() |
void |
setBehavior(Behavior behavior)
The behavior which is being violated.
|
void |
setLastViolationTime(Date lastViolationTime)
The time the most recent violation occurred.
|
void |
setLastViolationValue(MetricValue lastViolationValue)
The value of the metric (the measurement) which caused the most recent
violation.
|
void |
setSecurityProfileName(String securityProfileName)
The security profile whose behavior is in violation.
|
void |
setThingName(String thingName)
The name of the thing responsible for the active violation.
|
void |
setViolationId(String violationId)
The ID of the active violation.
|
void |
setViolationStartTime(Date violationStartTime)
The time the violation started.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ActiveViolation |
withBehavior(Behavior behavior)
The behavior which is being violated.
|
ActiveViolation |
withLastViolationTime(Date lastViolationTime)
The time the most recent violation occurred.
|
ActiveViolation |
withLastViolationValue(MetricValue lastViolationValue)
The value of the metric (the measurement) which caused the most recent
violation.
|
ActiveViolation |
withSecurityProfileName(String securityProfileName)
The security profile whose behavior is in violation.
|
ActiveViolation |
withThingName(String thingName)
The name of the thing responsible for the active violation.
|
ActiveViolation |
withViolationId(String violationId)
The ID of the active violation.
|
ActiveViolation |
withViolationStartTime(Date violationStartTime)
The time the violation started.
|
public String getViolationId()
The ID of the active violation.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
The ID of the active violation.
public void setViolationId(String violationId)
The ID of the active violation.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
violationId - The ID of the active violation.
public ActiveViolation withViolationId(String violationId)
The ID of the active violation.
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 active violation.
public String getThingName()
The name of the thing responsible for the active violation.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing responsible for the active violation.
public void setThingName(String thingName)
The name of the thing responsible for the active violation.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName - The name of the thing responsible for the active violation.
public ActiveViolation withThingName(String thingName)
The name of the thing responsible for the active violation.
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 active violation.
public String getSecurityProfileName()
The security profile whose behavior is in violation.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The security profile whose behavior is in violation.
public void setSecurityProfileName(String securityProfileName)
The security profile whose behavior is in violation.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
securityProfileName - The security profile whose behavior is in violation.
public ActiveViolation withSecurityProfileName(String securityProfileName)
The security profile whose behavior is in violation.
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 security profile whose behavior is in violation.
public Behavior getBehavior()
The behavior which is being violated.
The behavior which is being violated.
public void setBehavior(Behavior behavior)
The behavior which is being violated.
behavior - The behavior which is being violated.
public ActiveViolation withBehavior(Behavior behavior)
The behavior which is being violated.
Returns a reference to this object so that method calls can be chained together.
behavior - The behavior which is being violated.
public MetricValue getLastViolationValue()
The value of the metric (the measurement) which caused the most recent violation.
The value of the metric (the measurement) which caused the most recent violation.
public void setLastViolationValue(MetricValue lastViolationValue)
The value of the metric (the measurement) which caused the most recent violation.
lastViolationValue - The value of the metric (the measurement) which caused the most recent violation.
public ActiveViolation withLastViolationValue(MetricValue lastViolationValue)
The value of the metric (the measurement) which caused the most recent violation.
Returns a reference to this object so that method calls can be chained together.
lastViolationValue - The value of the metric (the measurement) which caused the most recent violation.
public Date getLastViolationTime()
The time the most recent violation occurred.
The time the most recent violation occurred.
public void setLastViolationTime(Date lastViolationTime)
The time the most recent violation occurred.
lastViolationTime - The time the most recent violation occurred.
public ActiveViolation withLastViolationTime(Date lastViolationTime)
The time the most recent violation occurred.
Returns a reference to this object so that method calls can be chained together.
lastViolationTime - The time the most recent violation occurred.
public Date getViolationStartTime()
The time the violation started.
The time the violation started.
public void setViolationStartTime(Date violationStartTime)
The time the violation started.
violationStartTime - The time the violation started.
public ActiveViolation withViolationStartTime(Date violationStartTime)
The time the violation started.
Returns a reference to this object so that method calls can be chained together.
violationStartTime - The time the violation started.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.