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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Detection.Builderanomaly(Consumer<Anomaly.Builder> anomaly)The details about the anomalous activity that caused GuardDuty to generate the finding.Detection.Builderanomaly(Anomaly anomaly)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 Detail
-
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 theAnomaly.Builderavoiding the need to create one manually viaAnomaly.builder().When the
Consumercompletes,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:
anomaly(Anomaly)
-
-