Interface ScanResultThreat.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScanResultThreat.Builder,,ScanResultThreat> SdkBuilder<ScanResultThreat.Builder,,ScanResultThreat> SdkPojo
- Enclosing class:
ScanResultThreat
@Mutable
@NotThreadSafe
public static interface ScanResultThreat.Builder
extends SdkPojo, CopyableBuilder<ScanResultThreat.Builder,ScanResultThreat>
-
Method Summary
Modifier and TypeMethodDescriptionThe number of instances of this threat that were detected.The hash value associated with the detected threat.itemDetails(Collection<ItemDetails> itemDetails) Additional information about where this threat was detected.itemDetails(Consumer<ItemDetails.Builder>... itemDetails) Additional information about where this threat was detected.itemDetails(ItemDetails... itemDetails) Additional information about where this threat was detected.The name of the detected threat.The source that detected this threat.source(DetectionSource source) The source that detected this threat.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the detected threat.
- Parameters:
name- The name of the detected threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source that detected this threat.
- Parameters:
source- The source that detected this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The source that detected this threat.
- Parameters:
source- The source that detected this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
count
The number of instances of this threat that were detected.
- Parameters:
count- The number of instances of this threat that were detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hash
The hash value associated with the detected threat.
- Parameters:
hash- The hash value associated with the detected threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
itemDetails
Additional information about where this threat was detected.
- Parameters:
itemDetails- Additional information about where this threat was detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
itemDetails
Additional information about where this threat was detected.
- Parameters:
itemDetails- Additional information about where this threat was detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
itemDetails
Additional information about where this threat was detected.
This is a convenience method that creates an instance of theItemDetails.Builderavoiding the need to create one manually viaItemDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitemDetails(List<ItemDetails>).- Parameters:
itemDetails- a consumer that will call methods onItemDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-