public class ViolationEvent
extends java.lang.Object
implements java.io.Serializable
Information about a Device Defender security profile behavior violation.
Constructor and Description |
---|
ViolationEvent() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Behavior |
getBehavior()
The behavior that was violated.
|
MetricValue |
getMetricValue()
The value of the metric (the measurement).
|
java.lang.String |
getSecurityProfileName()
The name of the security profile whose behavior was violated.
|
java.lang.String |
getThingName()
The name of the thing responsible for the violation event.
|
ViolationEventAdditionalInfo |
getViolationEventAdditionalInfo()
The details of a violation event.
|
java.util.Date |
getViolationEventTime()
The time the violation event occurred.
|
java.lang.String |
getViolationEventType()
The type of violation event.
|
java.lang.String |
getViolationId()
The ID of the violation event.
|
int |
hashCode() |
void |
setBehavior(Behavior behavior)
The behavior that was violated.
|
void |
setMetricValue(MetricValue metricValue)
The value of the metric (the measurement).
|
void |
setSecurityProfileName(java.lang.String securityProfileName)
The name of the security profile whose behavior was violated.
|
void |
setThingName(java.lang.String thingName)
The name of the thing responsible for the violation event.
|
void |
setViolationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
|
void |
setViolationEventTime(java.util.Date violationEventTime)
The time the violation event occurred.
|
void |
setViolationEventType(java.lang.String violationEventType)
The type of violation event.
|
void |
setViolationEventType(ViolationEventType violationEventType)
The type of violation event.
|
void |
setViolationId(java.lang.String violationId)
The ID of the violation event.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ViolationEvent |
withBehavior(Behavior behavior)
The behavior that was violated.
|
ViolationEvent |
withMetricValue(MetricValue metricValue)
The value of the metric (the measurement).
|
ViolationEvent |
withSecurityProfileName(java.lang.String securityProfileName)
The name of the security profile whose behavior was violated.
|
ViolationEvent |
withThingName(java.lang.String thingName)
The name of the thing responsible for the violation event.
|
ViolationEvent |
withViolationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
|
ViolationEvent |
withViolationEventTime(java.util.Date violationEventTime)
The time the violation event occurred.
|
ViolationEvent |
withViolationEventType(java.lang.String violationEventType)
The type of violation event.
|
ViolationEvent |
withViolationEventType(ViolationEventType violationEventType)
The type of violation event.
|
ViolationEvent |
withViolationId(java.lang.String violationId)
The ID of the violation event.
|
public java.lang.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(java.lang.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(java.lang.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 java.lang.String getThingName()
The name of the thing responsible for the violation event.
Constraints:
Length: 1 - 128
The name of the thing responsible for the violation event.
public void setThingName(java.lang.String thingName)
The name of the thing responsible for the violation event.
Constraints:
Length: 1 - 128
thingName
- The name of the thing responsible for the violation event.
public ViolationEvent withThingName(java.lang.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
thingName
- The name of the thing responsible for the violation event.
public java.lang.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(java.lang.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(java.lang.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 that was violated.
The behavior that was violated.
public void setBehavior(Behavior behavior)
The behavior that was violated.
behavior
- The behavior that was violated.
public ViolationEvent withBehavior(Behavior behavior)
The behavior that was violated.
Returns a reference to this object so that method calls can be chained together.
behavior
- The behavior that 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 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 ViolationEvent 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.lang.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(java.lang.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(java.lang.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 java.util.Date getViolationEventTime()
The time the violation event occurred.
The time the violation event occurred.
public void setViolationEventTime(java.util.Date violationEventTime)
The time the violation event occurred.
violationEventTime
- The time the violation event occurred.
public ViolationEvent withViolationEventTime(java.util.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 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.