Interface ActiveViolation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ActiveViolation.Builder,ActiveViolation>,SdkBuilder<ActiveViolation.Builder,ActiveViolation>,SdkPojo
- Enclosing class:
- ActiveViolation
public static interface ActiveViolation.Builder extends SdkPojo, CopyableBuilder<ActiveViolation.Builder,ActiveViolation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ActiveViolation.Builderbehavior(Consumer<Behavior.Builder> behavior)The behavior that is being violated.ActiveViolation.Builderbehavior(Behavior behavior)The behavior that is being violated.ActiveViolation.BuilderlastViolationTime(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.ActiveViolation.BuilderlastViolationValue(MetricValue lastViolationValue)The value of the metric (the measurement) that caused the most recent violation.ActiveViolation.BuildersecurityProfileName(String securityProfileName)The security profile with the behavior is in violation.ActiveViolation.BuilderthingName(String thingName)The name of the thing responsible for the active violation.ActiveViolation.BuilderverificationState(String verificationState)The verification state of the violation (detect alarm).ActiveViolation.BuilderverificationState(VerificationState verificationState)The verification state of the violation (detect alarm).ActiveViolation.BuilderverificationStateDescription(String verificationStateDescription)The description of the verification state of the violation.default ActiveViolation.BuilderviolationEventAdditionalInfo(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo)The details of a violation event.ActiveViolation.BuilderviolationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)The details of a violation event.ActiveViolation.BuilderviolationId(String violationId)The ID of the active violation.ActiveViolation.BuilderviolationStartTime(Instant violationStartTime)The time the violation started.-
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 Detail
-
violationId
ActiveViolation.Builder violationId(String 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
ActiveViolation.Builder thingName(String 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
ActiveViolation.Builder securityProfileName(String 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
ActiveViolation.Builder behavior(Behavior 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
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.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:
behavior(Behavior)
-
lastViolationValue
ActiveViolation.Builder lastViolationValue(MetricValue 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:
lastViolationValue(MetricValue)
-
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:
violationEventAdditionalInfo(ViolationEventAdditionalInfo)
-
verificationState
ActiveViolation.Builder verificationState(String 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,VerificationState
-
verificationState
ActiveViolation.Builder verificationState(VerificationState 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,VerificationState
-
verificationStateDescription
ActiveViolation.Builder verificationStateDescription(String 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
ActiveViolation.Builder lastViolationTime(Instant 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
ActiveViolation.Builder violationStartTime(Instant 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.
-
-