Interface Threat.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Threat.Builder,
,Threat> SdkBuilder<Threat.Builder,
,Threat> SdkPojo
- Enclosing class:
Threat
-
Method Summary
Modifier and TypeMethodDescriptionfilePaths
(Collection<FilePaths> filePaths) Provides information about the file paths that were affected by the threat.filePaths
(Consumer<FilePaths.Builder>... filePaths) Provides information about the file paths that were affected by the threat.Provides information about the file paths that were affected by the threat.This total number of items in which the threat has been detected.The name of the threat.The severity of the threat.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 the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
- Parameters:
name
- The name of the threat.Length Constraints: Minimum of 1 length. Maximum of 128 length.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
- Parameters:
severity
- The severity of the threat.Length Constraints: Minimum of 1 length. Maximum of 128 length.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
itemCount
This total number of items in which the threat has been detected.
- Parameters:
itemCount
- This total number of items in which the threat has been detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filePaths
Provides information about the file paths that were affected by the threat.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
- Parameters:
filePaths
- Provides information about the file paths that were affected by the threat.Array Members: Minimum number of 1 item. Maximum number of 5 items.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filePaths
Provides information about the file paths that were affected by the threat.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
- Parameters:
filePaths
- Provides information about the file paths that were affected by the threat.Array Members: Minimum number of 1 item. Maximum number of 5 items.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filePaths
Provides information about the file paths that were affected by the threat.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
This is a convenience method that creates an instance of theFilePaths.Builder
avoiding the need to create one manually viaFilePaths.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilePaths(List<FilePaths>)
.- Parameters:
filePaths
- a consumer that will call methods onFilePaths.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-