public static interface ViolationEvent.Builder extends SdkPojo, CopyableBuilder<ViolationEvent.Builder,ViolationEvent>
| Modifier and Type | Method and Description |
|---|---|
ViolationEvent.Builder |
behavior(Behavior behavior)
The behavior that was violated.
|
default ViolationEvent.Builder |
behavior(Consumer<Behavior.Builder> behavior)
The behavior that was violated.
|
default ViolationEvent.Builder |
metricValue(Consumer<MetricValue.Builder> metricValue)
The value of the metric (the measurement).
|
ViolationEvent.Builder |
metricValue(MetricValue metricValue)
The value of the metric (the measurement).
|
ViolationEvent.Builder |
securityProfileName(String securityProfileName)
The name of the security profile whose behavior was violated.
|
ViolationEvent.Builder |
thingName(String thingName)
The name of the thing responsible for the violation event.
|
default ViolationEvent.Builder |
violationEventAdditionalInfo(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo)
The details of a violation event.
|
ViolationEvent.Builder |
violationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
|
ViolationEvent.Builder |
violationEventTime(Instant violationEventTime)
The time the violation event occurred.
|
ViolationEvent.Builder |
violationEventType(String violationEventType)
The type of violation event.
|
ViolationEvent.Builder |
violationEventType(ViolationEventType violationEventType)
The type of violation event.
|
ViolationEvent.Builder |
violationId(String violationId)
The ID of the violation event.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildViolationEvent.Builder violationId(String violationId)
The ID of the violation event.
violationId - The ID of the violation event.ViolationEvent.Builder thingName(String thingName)
The name of the thing responsible for the violation event.
thingName - The name of the thing responsible for the violation event.ViolationEvent.Builder securityProfileName(String securityProfileName)
The name of the security profile whose behavior was violated.
securityProfileName - The name of the security profile whose behavior was violated.ViolationEvent.Builder behavior(Behavior behavior)
The behavior that was violated.
behavior - The behavior that was violated.default ViolationEvent.Builder behavior(Consumer<Behavior.Builder> behavior)
The behavior that was violated.
This is a convenience 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.Builderbehavior(Behavior)ViolationEvent.Builder metricValue(MetricValue metricValue)
The value of the metric (the measurement).
metricValue - The value of the metric (the measurement).default ViolationEvent.Builder metricValue(Consumer<MetricValue.Builder> metricValue)
The value of the metric (the measurement).
This is a convenience 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 metricValue(MetricValue).metricValue - a consumer that will call methods on MetricValue.BuildermetricValue(MetricValue)ViolationEvent.Builder violationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)
The details of a violation event.
violationEventAdditionalInfo - The details of a violation event.default ViolationEvent.Builder violationEventAdditionalInfo(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo)
The details of a violation event.
This is a convenience 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.BuilderviolationEventAdditionalInfo(ViolationEventAdditionalInfo)ViolationEvent.Builder violationEventType(String violationEventType)
The type of violation event.
violationEventType - The type of violation event.ViolationEventType,
ViolationEventTypeViolationEvent.Builder violationEventType(ViolationEventType violationEventType)
The type of violation event.
violationEventType - The type of violation event.ViolationEventType,
ViolationEventTypeViolationEvent.Builder violationEventTime(Instant violationEventTime)
The time the violation event occurred.
violationEventTime - The time the violation event occurred.Copyright © 2021. All rights reserved.