Interface Detector.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Detector.Builder,Detector>, SdkBuilder<Detector.Builder,Detector>, SdkPojo
Enclosing class:
Detector

public static interface Detector.Builder extends SdkPojo, CopyableBuilder<Detector.Builder,Detector>
  • Method Details

    • detectorModelName

      Detector.Builder detectorModelName(String detectorModelName)

      The name of the detector model that created this detector (instance).

      Parameters:
      detectorModelName - The name of the detector model that created this detector (instance).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyValue

      Detector.Builder keyValue(String keyValue)

      The value of the key (identifying the device or system) that caused the creation of this detector (instance).

      Parameters:
      keyValue - The value of the key (identifying the device or system) that caused the creation of this detector (instance).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • detectorModelVersion

      Detector.Builder detectorModelVersion(String detectorModelVersion)

      The version of the detector model that created this detector (instance).

      Parameters:
      detectorModelVersion - The version of the detector model that created this detector (instance).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The current state of the detector (instance).

      Parameters:
      state - The current state of the detector (instance).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The current state of the detector (instance).

      This is a convenience method that creates an instance of the DetectorState.Builder avoiding the need to create one manually via DetectorState.builder().

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

      Parameters:
      state - a consumer that will call methods on DetectorState.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • creationTime

      Detector.Builder creationTime(Instant creationTime)

      The time the detector (instance) was created.

      Parameters:
      creationTime - The time the detector (instance) was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdateTime

      Detector.Builder lastUpdateTime(Instant lastUpdateTime)

      The time the detector (instance) was last updated.

      Parameters:
      lastUpdateTime - The time the detector (instance) was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.