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 Summary
Modifier and TypeMethodDescriptiondefault Detection.Builder
anomaly
(Consumer<Anomaly.Builder> anomaly) The details about the anomalous activity that caused GuardDuty to generate the finding.The details about the anomalous activity that caused GuardDuty to generate the finding.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 Details
-
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
The details about the anomalous activity that caused GuardDuty to generate the finding.
This is a convenience method that creates an instance of theAnomaly.Builder
avoiding the need to create one manually viaAnomaly.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toanomaly(Anomaly)
.- Parameters:
anomaly
- a consumer that will call methods onAnomaly.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-