Interface ViolationEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ViolationEvent.Builder,ViolationEvent>,SdkBuilder<ViolationEvent.Builder,ViolationEvent>,SdkPojo
- Enclosing class:
- ViolationEvent
public static interface ViolationEvent.Builder extends SdkPojo, CopyableBuilder<ViolationEvent.Builder,ViolationEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ViolationEvent.Builderbehavior(Consumer<Behavior.Builder> behavior)The behavior that was violated.ViolationEvent.Builderbehavior(Behavior behavior)The behavior that was violated.default ViolationEvent.BuildermetricValue(Consumer<MetricValue.Builder> metricValue)The value of the metric (the measurement).ViolationEvent.BuildermetricValue(MetricValue metricValue)The value of the metric (the measurement).ViolationEvent.BuildersecurityProfileName(String securityProfileName)The name of the security profile whose behavior was violated.ViolationEvent.BuilderthingName(String thingName)The name of the thing responsible for the violation event.ViolationEvent.BuilderverificationState(String verificationState)The verification state of the violation (detect alarm).ViolationEvent.BuilderverificationState(VerificationState verificationState)The verification state of the violation (detect alarm).ViolationEvent.BuilderverificationStateDescription(String verificationStateDescription)The description of the verification state of the violation.default ViolationEvent.BuilderviolationEventAdditionalInfo(Consumer<ViolationEventAdditionalInfo.Builder> violationEventAdditionalInfo)The details of a violation event.ViolationEvent.BuilderviolationEventAdditionalInfo(ViolationEventAdditionalInfo violationEventAdditionalInfo)The details of a violation event.ViolationEvent.BuilderviolationEventTime(Instant violationEventTime)The time the violation event occurred.ViolationEvent.BuilderviolationEventType(String violationEventType)The type of violation event.ViolationEvent.BuilderviolationEventType(ViolationEventType violationEventType)The type of violation event.ViolationEvent.BuilderviolationId(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 Detail
-
violationId
ViolationEvent.Builder violationId(String 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
ViolationEvent.Builder thingName(String 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
ViolationEvent.Builder securityProfileName(String 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
ViolationEvent.Builder behavior(Behavior 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
default ViolationEvent.Builder behavior(Consumer<Behavior.Builder> behavior)
The behavior that was 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)
-
metricValue
ViolationEvent.Builder metricValue(MetricValue 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
default ViolationEvent.Builder metricValue(Consumer<MetricValue.Builder> metricValue)
The value of the metric (the measurement).
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 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:
metricValue(MetricValue)
-
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.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)
-
violationEventType
ViolationEvent.Builder violationEventType(String 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,ViolationEventType
-
violationEventType
ViolationEvent.Builder violationEventType(ViolationEventType 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,ViolationEventType
-
verificationState
ViolationEvent.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
ViolationEvent.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
ViolationEvent.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.
-
violationEventTime
ViolationEvent.Builder violationEventTime(Instant 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.
-
-