Class ActiveViolation
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.ActiveViolation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ActiveViolation.Builder,ActiveViolation>
@Generated("software.amazon.awssdk:codegen") public final class ActiveViolation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ActiveViolation.Builder,ActiveViolation>
Information about an active Device Defender security profile behavior violation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceActiveViolation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Behaviorbehavior()The behavior that is being violated.static ActiveViolation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastViolationTime()The time the most recent violation occurred.MetricValuelastViolationValue()The value of the metric (the measurement) that caused the most recent violation.List<SdkField<?>>sdkFields()StringsecurityProfileName()The security profile with the behavior is in violation.static Class<? extends ActiveViolation.Builder>serializableBuilderClass()StringthingName()The name of the thing responsible for the active violation.ActiveViolation.BuildertoBuilder()StringtoString()Returns a string representation of this object.VerificationStateverificationState()The verification state of the violation (detect alarm).StringverificationStateAsString()The verification state of the violation (detect alarm).StringverificationStateDescription()The description of the verification state of the violation.ViolationEventAdditionalInfoviolationEventAdditionalInfo()The details of a violation event.StringviolationId()The ID of the active violation.InstantviolationStartTime()The time the violation started.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
violationId
public final String violationId()
The ID of the active violation.
- Returns:
- The ID of the active violation.
-
thingName
public final String thingName()
The name of the thing responsible for the active violation.
- Returns:
- The name of the thing responsible for the active violation.
-
securityProfileName
public final String securityProfileName()
The security profile with the behavior is in violation.
- Returns:
- The security profile with the behavior is in violation.
-
behavior
public final Behavior behavior()
The behavior that is being violated.
- Returns:
- The behavior that is being violated.
-
lastViolationValue
public final MetricValue lastViolationValue()
The value of the metric (the measurement) that caused the most recent violation.
- Returns:
- The value of the metric (the measurement) that caused the most recent violation.
-
violationEventAdditionalInfo
public final ViolationEventAdditionalInfo violationEventAdditionalInfo()
The details of a violation event.
- Returns:
- The details of a violation event.
-
verificationState
public final VerificationState verificationState()
The verification state of the violation (detect alarm).
If the service returns an enum value that is not available in the current SDK version,
verificationStatewill returnVerificationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromverificationStateAsString().- Returns:
- The verification state of the violation (detect alarm).
- See Also:
VerificationState
-
verificationStateAsString
public final String verificationStateAsString()
The verification state of the violation (detect alarm).
If the service returns an enum value that is not available in the current SDK version,
verificationStatewill returnVerificationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromverificationStateAsString().- Returns:
- The verification state of the violation (detect alarm).
- See Also:
VerificationState
-
verificationStateDescription
public final String verificationStateDescription()
The description of the verification state of the violation.
- Returns:
- The description of the verification state of the violation.
-
lastViolationTime
public final Instant lastViolationTime()
The time the most recent violation occurred.
- Returns:
- The time the most recent violation occurred.
-
violationStartTime
public final Instant violationStartTime()
The time the violation started.
- Returns:
- The time the violation started.
-
toBuilder
public ActiveViolation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ActiveViolation.Builder,ActiveViolation>
-
builder
public static ActiveViolation.Builder builder()
-
serializableBuilderClass
public static Class<? extends ActiveViolation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-