Interface Anomaly.Builder

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

@Mutable @NotThreadSafe public static interface Anomaly.Builder extends SdkPojo, CopyableBuilder<Anomaly.Builder,Anomaly>
  • Method Details

    • name

      Anomaly.Builder name(String name)

      The name of an anomaly type found in an image. Name maps to an anomaly type in the training dataset, apart from the anomaly type background. The service automatically inserts the background anomaly type into the response from DetectAnomalies.

      Parameters:
      name - The name of an anomaly type found in an image. Name maps to an anomaly type in the training dataset, apart from the anomaly type background. The service automatically inserts the background anomaly type into the response from DetectAnomalies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pixelAnomaly

      Anomaly.Builder pixelAnomaly(PixelAnomaly pixelAnomaly)

      Information about the pixel mask that covers an anomaly type.

      Parameters:
      pixelAnomaly - Information about the pixel mask that covers an anomaly type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pixelAnomaly

      default Anomaly.Builder pixelAnomaly(Consumer<PixelAnomaly.Builder> pixelAnomaly)

      Information about the pixel mask that covers an anomaly type.

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

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

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