@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ActiveViolation extends Object implements Serializable, Cloneable, StructuredPojo
Information about an active Device Defender security profile behavior violation.
Constructor and Description |
---|
ActiveViolation() |
Modifier and Type | Method and Description |
---|---|
ActiveViolation |
clone() |
boolean |
equals(Object obj) |
Behavior |
getBehavior()
The behavior that is being violated.
|
Date |
getLastViolationTime()
The time the most recent violation occurred.
|
MetricValue |
getLastViolationValue()
The value of the metric (the measurement) that caused the most recent violation.
|
String |
getSecurityProfileName()
The security profile with the behavior is in violation.
|
String |
getThingName()
The name of the thing responsible for the active violation.
|
String |
getVerificationState()
The verification state of the violation (detect alarm).
|
String |
getVerificationStateDescription()
The description of the verification state of the violation.
|
ViolationEventAdditionalInfo |
getViolationEventAdditionalInfo()
The details of a violation event.
|
String |
getViolationId()
The ID of the active violation.
|
Date |
getViolationStartTime()
The time the violation started.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBehavior(Behavior behavior)
The behavior that 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) that caused the most recent violation.
|
void |
setSecurityProfileName(String securityProfileName)
The security profile with the behavior is in violation.
|
void |
setThingName(String thingName)
The name of the thing responsible for the active violation.
|
void |
setVerificationState(String verificationState)
The verification state of the violation (detect alarm).
|
void |
setVerificationStateDescription(String verificationStateDescription)
The description of the verification state of the violation.
|
void |
setViolationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
|
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.
|
ActiveViolation |
withBehavior(Behavior behavior)
The behavior that 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) that caused the most recent violation.
|
ActiveViolation |
withSecurityProfileName(String securityProfileName)
The security profile with the behavior is in violation.
|
ActiveViolation |
withThingName(String thingName)
The name of the thing responsible for the active violation.
|
ActiveViolation |
withVerificationState(String verificationState)
The verification state of the violation (detect alarm).
|
ActiveViolation |
withVerificationState(VerificationState verificationState)
The verification state of the violation (detect alarm).
|
ActiveViolation |
withVerificationStateDescription(String verificationStateDescription)
The description of the verification state of the violation.
|
ActiveViolation |
withViolationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
|
ActiveViolation |
withViolationId(String violationId)
The ID of the active violation.
|
ActiveViolation |
withViolationStartTime(Date violationStartTime)
The time the violation started.
|
public void setViolationId(String violationId)
The ID of the active violation.
violationId
- The ID of the active violation.public String getViolationId()
The ID of the active violation.
public ActiveViolation withViolationId(String violationId)
The ID of the active violation.
violationId
- The ID of the active violation.public void setThingName(String thingName)
The name of the thing responsible for the active violation.
thingName
- The name of the thing responsible for the active violation.public String getThingName()
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.
thingName
- The name of the thing responsible for the active violation.public void setSecurityProfileName(String securityProfileName)
The security profile with the behavior is in violation.
securityProfileName
- The security profile with the behavior is in violation.public String getSecurityProfileName()
The security profile with the behavior is in violation.
public ActiveViolation withSecurityProfileName(String securityProfileName)
The security profile with the behavior is in violation.
securityProfileName
- The security profile with the behavior is in violation.public void setBehavior(Behavior behavior)
The behavior that is being violated.
behavior
- The behavior that is being violated.public Behavior getBehavior()
The behavior that is being violated.
public ActiveViolation withBehavior(Behavior behavior)
The behavior that is being violated.
behavior
- The behavior that is being violated.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 MetricValue getLastViolationValue()
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.
lastViolationValue
- The value of the metric (the measurement) that caused the most recent violation.public void setViolationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
violationEventAdditionalInfo
- The details of a violation event.public ViolationEventAdditionalInfo getViolationEventAdditionalInfo()
The details of a violation event.
public ActiveViolation withViolationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
violationEventAdditionalInfo
- The details of a violation event.public void setVerificationState(String verificationState)
The verification state of the violation (detect alarm).
verificationState
- The verification state of the violation (detect alarm).VerificationState
public String getVerificationState()
The verification state of the violation (detect alarm).
VerificationState
public ActiveViolation withVerificationState(String verificationState)
The verification state of the violation (detect alarm).
verificationState
- The verification state of the violation (detect alarm).VerificationState
public ActiveViolation withVerificationState(VerificationState verificationState)
The verification state of the violation (detect alarm).
verificationState
- The verification state of the violation (detect alarm).VerificationState
public void setVerificationStateDescription(String verificationStateDescription)
The description of the verification state of the violation.
verificationStateDescription
- The description of the verification state of the violation.public String getVerificationStateDescription()
The description of the verification state of the violation.
public ActiveViolation withVerificationStateDescription(String verificationStateDescription)
The description of the verification state of the violation.
verificationStateDescription
- The description of the verification state of the violation.public void setLastViolationTime(Date lastViolationTime)
The time the most recent violation occurred.
lastViolationTime
- The time the most recent violation occurred.public Date getLastViolationTime()
The time the most recent violation occurred.
public ActiveViolation withLastViolationTime(Date lastViolationTime)
The time the most recent violation occurred.
lastViolationTime
- The time the most recent violation occurred.public void setViolationStartTime(Date violationStartTime)
The time the violation started.
violationStartTime
- The time the violation started.public Date getViolationStartTime()
The time the violation started.
public ActiveViolation withViolationStartTime(Date violationStartTime)
The time the violation started.
violationStartTime
- The time the violation started.public String toString()
toString
in class Object
Object.toString()
public ActiveViolation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.