Interface ViolationEvent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ViolationEvent.Builder,
,ViolationEvent> SdkBuilder<ViolationEvent.Builder,
,ViolationEvent> SdkPojo
- Enclosing class:
ViolationEvent
-
Method Summary
Modifier and TypeMethodDescriptiondefault ViolationEvent.Builder
behavior
(Consumer<Behavior.Builder> behavior) The behavior that was violated.The behavior that was violated.default ViolationEvent.Builder
metricValue
(Consumer<MetricValue.Builder> metricValue) The value of the metric (the measurement).metricValue
(MetricValue metricValue) The value of the metric (the measurement).securityProfileName
(String securityProfileName) The name of the security profile whose behavior was violated.The name of the thing responsible for the violation event.verificationState
(String verificationState) The verification state of the violation (detect alarm).verificationState
(VerificationState verificationState) The verification state of the violation (detect alarm).verificationStateDescription
(String verificationStateDescription) The description of the verification state of the violation.default ViolationEvent.Builder
violationEventAdditionalInfo
(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo) The details of a violation event.violationEventAdditionalInfo
(ViolationEventAdditionalInfo violationEventAdditionalInfo) The details of a violation event.violationEventTime
(Instant violationEventTime) The time the violation event occurred.violationEventType
(String violationEventType) The type of violation event.violationEventType
(ViolationEventType violationEventType) The type of violation event.violationId
(String violationId) The ID of the violation event.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
violationId
The ID of the violation event.
- Parameters:
violationId
- The ID of the violation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thingName
The name of the thing responsible for the violation event.
- Parameters:
thingName
- The name of the thing responsible for the violation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityProfileName
The name of the security profile whose behavior was violated.
- Parameters:
securityProfileName
- The name of the security profile whose behavior was violated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behavior
The behavior that was violated.
- Parameters:
behavior
- The behavior that was violated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behavior
The behavior that was violated.
This is a convenience method that creates an instance of theBehavior.Builder
avoiding the need to create one manually viaBehavior.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobehavior(Behavior)
.- Parameters:
behavior
- a consumer that will call methods onBehavior.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricValue
The value of the metric (the measurement).
- Parameters:
metricValue
- The value of the metric (the measurement).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricValue
The value of the metric (the measurement).
This is a convenience method that creates an instance of theMetricValue.Builder
avoiding the need to create one manually viaMetricValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricValue(MetricValue)
.- Parameters:
metricValue
- a consumer that will call methods onMetricValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
violationEventAdditionalInfo
ViolationEvent.Builder violationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo) The details of a violation event.
- Parameters:
violationEventAdditionalInfo
- The details of a violation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
violationEventAdditionalInfo
default ViolationEvent.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 viaViolationEventAdditionalInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toviolationEventAdditionalInfo(ViolationEventAdditionalInfo)
.- Parameters:
violationEventAdditionalInfo
- a consumer that will call methods onViolationEventAdditionalInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
violationEventType
The type of violation event.
- Parameters:
violationEventType
- The type of violation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
violationEventType
The type of violation event.
- Parameters:
violationEventType
- The type of violation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
verificationState
The verification state of the violation (detect alarm).
- Parameters:
verificationState
- The verification state of the violation (detect alarm).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
verificationState
The verification state of the violation (detect alarm).
- Parameters:
verificationState
- The verification state of the violation (detect alarm).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
verificationStateDescription
The description of the verification state of the violation.
- Parameters:
verificationStateDescription
- The description of the verification state of the violation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
violationEventTime
The time the violation event occurred.
- Parameters:
violationEventTime
- The time the violation event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-