Interface Anomaly.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Anomaly.Builder,Anomaly>,SdkBuilder<Anomaly.Builder,Anomaly>,SdkPojo
- Enclosing class:
- Anomaly
public static interface Anomaly.Builder extends SdkPojo, CopyableBuilder<Anomaly.Builder,Anomaly>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Anomaly.Buildername(String name)The name of an anomaly type found in an image.default Anomaly.BuilderpixelAnomaly(Consumer<PixelAnomaly.Builder> pixelAnomaly)Information about the pixel mask that covers an anomaly type.Anomaly.BuilderpixelAnomaly(PixelAnomaly pixelAnomaly)Information about the pixel mask that covers an anomaly type.-
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
-
name
Anomaly.Builder name(String name)
The name of an anomaly type found in an image.
Namemaps to an anomaly type in the training dataset, apart from the anomaly typebackground. The service automatically inserts thebackgroundanomaly type into the response fromDetectAnomalies.- Parameters:
name- The name of an anomaly type found in an image.Namemaps to an anomaly type in the training dataset, apart from the anomaly typebackground. The service automatically inserts thebackgroundanomaly type into the response fromDetectAnomalies.- 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 thePixelAnomaly.Builderavoiding the need to create one manually viaPixelAnomaly.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topixelAnomaly(PixelAnomaly).- Parameters:
pixelAnomaly- a consumer that will call methods onPixelAnomaly.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
pixelAnomaly(PixelAnomaly)
-
-