public static interface ViolationEvent.Builder extends SdkPojo, CopyableBuilder<ViolationEvent.Builder,ViolationEvent>
Modifier and Type | Method and Description |
---|---|
ViolationEvent.Builder |
behavior(Behavior behavior)
The behavior which was violated.
|
default ViolationEvent.Builder |
behavior(Consumer<Behavior.Builder> behavior)
The behavior which 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.
|
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.
|
copy
applyMutation, build
ViolationEvent.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 which was violated.
behavior
- The behavior which was violated.default ViolationEvent.Builder behavior(Consumer<Behavior.Builder> behavior)
The behavior which 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.Builder
behavior(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.Builder
metricValue(MetricValue)
ViolationEvent.Builder violationEventType(String violationEventType)
The type of violation event.
violationEventType
- The type of violation event.ViolationEventType
,
ViolationEventType
ViolationEvent.Builder violationEventType(ViolationEventType violationEventType)
The type of violation event.
violationEventType
- The type of violation event.ViolationEventType
,
ViolationEventType
ViolationEvent.Builder violationEventTime(Instant violationEventTime)
The time the violation event occurred.
violationEventTime
- The time the violation event occurred.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.