@Generated(value="software.amazon.awssdk:codegen") public final class ViolationEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ViolationEvent.Builder,ViolationEvent>
Information about a Device Defender security profile behavior violation.
Modifier and Type | Class and Description |
---|---|
static interface |
ViolationEvent.Builder |
Modifier and Type | Method and Description |
---|---|
Behavior |
behavior()
The behavior which was violated.
|
static ViolationEvent.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
MetricValue |
metricValue()
The value of the metric (the measurement).
|
List<SdkField<?>> |
sdkFields() |
String |
securityProfileName()
The name of the security profile whose behavior was violated.
|
static Class<? extends ViolationEvent.Builder> |
serializableBuilderClass() |
String |
thingName()
The name of the thing responsible for the violation event.
|
ViolationEvent.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Instant |
violationEventTime()
The time the violation event occurred.
|
ViolationEventType |
violationEventType()
The type of violation event.
|
String |
violationEventTypeAsString()
The type of violation event.
|
String |
violationId()
The ID of the violation event.
|
copy
public String violationId()
The ID of the violation event.
public String thingName()
The name of the thing responsible for the violation event.
public String securityProfileName()
The name of the security profile whose behavior was violated.
public Behavior behavior()
The behavior which was violated.
public MetricValue metricValue()
The value of the metric (the measurement).
public ViolationEventType violationEventType()
The type of violation event.
If the service returns an enum value that is not available in the current SDK version,
violationEventType
will return ViolationEventType.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from violationEventTypeAsString()
.
ViolationEventType
public String violationEventTypeAsString()
The type of violation event.
If the service returns an enum value that is not available in the current SDK version,
violationEventType
will return ViolationEventType.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from violationEventTypeAsString()
.
ViolationEventType
public Instant violationEventTime()
The time the violation event occurred.
public ViolationEvent.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ViolationEvent.Builder,ViolationEvent>
public static ViolationEvent.Builder builder()
public static Class<? extends ViolationEvent.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.