Interface ActiveViolation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ActiveViolation.Builder,,ActiveViolation> SdkBuilder<ActiveViolation.Builder,,ActiveViolation> SdkPojo
- Enclosing class:
ActiveViolation
-
Method Summary
Modifier and TypeMethodDescriptiondefault ActiveViolation.Builderbehavior(Consumer<Behavior.Builder> behavior) The behavior that is being violated.The behavior that is being violated.lastViolationTime(Instant lastViolationTime) The time the most recent violation occurred.default ActiveViolation.BuilderlastViolationValue(Consumer<MetricValue.Builder> lastViolationValue) The value of the metric (the measurement) that caused the most recent violation.lastViolationValue(MetricValue lastViolationValue) The value of the metric (the measurement) that caused the most recent violation.securityProfileName(String securityProfileName) The security profile with the behavior is in violation.The name of the thing responsible for the active violation.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 ActiveViolation.BuilderviolationEventAdditionalInfo(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo) The details of a violation event.violationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo) The details of a violation event.violationId(String violationId) The ID of the active violation.violationStartTime(Instant violationStartTime) The time the violation started.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
violationId
The ID of the active violation.
- Parameters:
violationId- The ID of the active violation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thingName
The name of the thing responsible for the active violation.
- Parameters:
thingName- The name of the thing responsible for the active violation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityProfileName
The security profile with the behavior is in violation.
- Parameters:
securityProfileName- The security profile with the behavior is in violation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behavior
The behavior that is being violated.
- Parameters:
behavior- The behavior that is being violated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
behavior
The behavior that is being violated.
This is a convenience method that creates an instance of theBehavior.Builderavoiding the need to create one manually viaBehavior.builder().When the
Consumercompletes,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:
-
lastViolationValue
The value of the metric (the measurement) that caused the most recent violation.
- Parameters:
lastViolationValue- The value of the metric (the measurement) that caused the most recent violation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastViolationValue
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.Builderavoiding the need to create one manually viaMetricValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolastViolationValue(MetricValue).- Parameters:
lastViolationValue- 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
ActiveViolation.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 ActiveViolation.Builder violationEventAdditionalInfo(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo) The details of a violation event.
This is a convenience method that creates an instance of theViolationEventAdditionalInfo.Builderavoiding the need to create one manually viaViolationEventAdditionalInfo.builder().When the
Consumercompletes,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:
-
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.
-
lastViolationTime
The time the most recent violation occurred.
- Parameters:
lastViolationTime- The time the most recent violation occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
violationStartTime
The time the violation started.
- Parameters:
violationStartTime- The time the violation started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-