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 Summary
Modifier and TypeMethodDescriptionThe name of an anomaly type found in an image.default Anomaly.Builder
pixelAnomaly
(Consumer<PixelAnomaly.Builder> pixelAnomaly) Information about the pixel mask that covers an anomaly type.pixelAnomaly
(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, sdkFieldNameToField, sdkFields
-
Method Details
-
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 typebackground
. The service automatically inserts thebackground
anomaly type into the response fromDetectAnomalies
.- 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 typebackground
. The service automatically inserts thebackground
anomaly type into the response fromDetectAnomalies
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
Information about the pixel mask that covers an anomaly type.
This is a convenience method that creates an instance of thePixelAnomaly.Builder
avoiding the need to create one manually viaPixelAnomaly.builder()
.When the
Consumer
completes,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:
-