Interface Threat.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Threat.Builder,Threat>,SdkBuilder<Threat.Builder,Threat>,SdkPojo
- Enclosing class:
- Threat
public static interface Threat.Builder extends SdkPojo, CopyableBuilder<Threat.Builder,Threat>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Threat.BuilderfilePaths(Collection<FilePaths> filePaths)Provides information about the file paths that were affected by the threat.Threat.BuilderfilePaths(Consumer<FilePaths.Builder>... filePaths)Provides information about the file paths that were affected by the threat.Threat.BuilderfilePaths(FilePaths... filePaths)Provides information about the file paths that were affected by the threat.Threat.BuilderitemCount(Integer itemCount)This total number of items in which the threat has been detected.Threat.Buildername(String name)The name of the threat.Threat.Builderseverity(String severity)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 Detail
-
name
Threat.Builder name(String 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
Threat.Builder severity(String 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
Threat.Builder itemCount(Integer 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
Threat.Builder filePaths(Collection<FilePaths> 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
Threat.Builder filePaths(FilePaths... 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
Threat.Builder filePaths(Consumer<FilePaths.Builder>... 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.Builderavoiding the need to create one manually viaFilePaths.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#filePaths(List.) - 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:
#filePaths(java.util.Collection)
-
-