@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 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
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 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 whose behavior is in violation.
securityProfileName
- The security profile whose behavior is in violation.public String getSecurityProfileName()
The security profile whose behavior is in violation.
public ActiveViolation withSecurityProfileName(String securityProfileName)
The security profile whose behavior is in violation.
securityProfileName
- The security profile whose behavior is in violation.public void setBehavior(Behavior behavior)
The behavior which is being violated.
behavior
- The behavior which is being violated.public Behavior getBehavior()
The behavior which is being violated.
public ActiveViolation withBehavior(Behavior behavior)
The behavior which is being violated.
behavior
- The behavior which is being violated.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 MetricValue getLastViolationValue()
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.
lastViolationValue
- The value of the metric (the measurement) which caused the most recent 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.