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