public static interface ActiveViolation.Builder extends SdkPojo, CopyableBuilder<ActiveViolation.Builder,ActiveViolation>
Modifier and Type | Method and Description |
---|---|
ActiveViolation.Builder |
behavior(Behavior behavior)
The behavior that is being violated.
|
default ActiveViolation.Builder |
behavior(Consumer<Behavior.Builder> behavior)
The behavior that is being violated.
|
ActiveViolation.Builder |
lastViolationTime(Instant lastViolationTime)
The time the most recent violation occurred.
|
default ActiveViolation.Builder |
lastViolationValue(Consumer<MetricValue.Builder> lastViolationValue)
The value of the metric (the measurement) that caused the most recent violation.
|
ActiveViolation.Builder |
lastViolationValue(MetricValue lastViolationValue)
The value of the metric (the measurement) that caused the most recent violation.
|
ActiveViolation.Builder |
securityProfileName(String securityProfileName)
The security profile with the behavior is in violation.
|
ActiveViolation.Builder |
thingName(String thingName)
The name of the thing responsible for the active violation.
|
ActiveViolation.Builder |
verificationState(String verificationState)
The verification state of the violation (detect alarm).
|
ActiveViolation.Builder |
verificationState(VerificationState verificationState)
The verification state of the violation (detect alarm).
|
ActiveViolation.Builder |
verificationStateDescription(String verificationStateDescription)
The description of the verification state of the violation.
|
default ActiveViolation.Builder |
violationEventAdditionalInfo(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo)
The details of a violation event.
|
ActiveViolation.Builder |
violationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
|
ActiveViolation.Builder |
violationId(String violationId)
The ID of the active violation.
|
ActiveViolation.Builder |
violationStartTime(Instant violationStartTime)
The time the violation started.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ActiveViolation.Builder violationId(String violationId)
The ID of the active violation.
violationId
- The ID of the active violation.ActiveViolation.Builder thingName(String thingName)
The name of the thing responsible for the active violation.
thingName
- The name of the thing responsible for the active violation.ActiveViolation.Builder securityProfileName(String securityProfileName)
The security profile with the behavior is in violation.
securityProfileName
- The security profile with the behavior is in violation.ActiveViolation.Builder behavior(Behavior behavior)
The behavior that is being violated.
behavior
- The behavior that is being violated.default ActiveViolation.Builder behavior(Consumer<Behavior.Builder> behavior)
The behavior that is being violated.
This is a convenience method that creates an instance of theBehavior.Builder
avoiding the need to
create one manually via Behavior.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to behavior(Behavior)
.
behavior
- a consumer that will call methods on Behavior.Builder
behavior(Behavior)
ActiveViolation.Builder lastViolationValue(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.default ActiveViolation.Builder lastViolationValue(Consumer<MetricValue.Builder> lastViolationValue)
The value of the metric (the measurement) that caused the most recent violation.
This is a convenience method that creates an instance of theMetricValue.Builder
avoiding the need to
create one manually via MetricValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to lastViolationValue(MetricValue)
.
lastViolationValue
- a consumer that will call methods on MetricValue.Builder
lastViolationValue(MetricValue)
ActiveViolation.Builder violationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
violationEventAdditionalInfo
- The details of a violation event.default ActiveViolation.Builder violationEventAdditionalInfo(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo)
The details of a violation event.
This is a convenience method that creates an instance of theViolationEventAdditionalInfo.Builder
avoiding the need to create one manually via ViolationEventAdditionalInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to violationEventAdditionalInfo(ViolationEventAdditionalInfo)
.
violationEventAdditionalInfo
- a consumer that will call methods on ViolationEventAdditionalInfo.Builder
violationEventAdditionalInfo(ViolationEventAdditionalInfo)
ActiveViolation.Builder verificationState(String verificationState)
The verification state of the violation (detect alarm).
verificationState
- The verification state of the violation (detect alarm).VerificationState
,
VerificationState
ActiveViolation.Builder verificationState(VerificationState verificationState)
The verification state of the violation (detect alarm).
verificationState
- The verification state of the violation (detect alarm).VerificationState
,
VerificationState
ActiveViolation.Builder verificationStateDescription(String verificationStateDescription)
The description of the verification state of the violation.
verificationStateDescription
- The description of the verification state of the violation.ActiveViolation.Builder lastViolationTime(Instant lastViolationTime)
The time the most recent violation occurred.
lastViolationTime
- The time the most recent violation occurred.ActiveViolation.Builder violationStartTime(Instant violationStartTime)
The time the violation started.
violationStartTime
- The time the violation started.Copyright © 2022. All rights reserved.