Interface Detection.Builder

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

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

    • anomaly

      Detection.Builder anomaly(Anomaly anomaly)

      The details about the anomalous activity that caused GuardDuty to generate the finding.

      Parameters:
      anomaly - The details about the anomalous activity that caused GuardDuty to generate the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • anomaly

      default Detection.Builder anomaly(Consumer<Anomaly.Builder> anomaly)

      The details about the anomalous activity that caused GuardDuty to generate the finding.

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

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

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