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 Details

    • 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 the Behavior.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).

      Parameters:
      behavior - a consumer that will call methods on Behavior.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the MetricValue.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 lastViolationValue(MetricValue).

      Parameters:
      lastViolationValue - a consumer that will call methods on MetricValue.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 the ViolationEventAdditionalInfo.Builder avoiding the need to create one manually via ViolationEventAdditionalInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to violationEventAdditionalInfo(ViolationEventAdditionalInfo).

      Parameters:
      violationEventAdditionalInfo - a consumer that will call methods on ViolationEventAdditionalInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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:
    • 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.