Interface Finding.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Finding.Builder,
,Finding> SdkBuilder<Finding.Builder,
,Finding> SdkPojo
- Enclosing class:
Finding
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN that specifies the finding.default Finding.Builder
assetAttributes
(Consumer<AssetAttributes.Builder> assetAttributes) A collection of attributes of the host from which the finding is generated.assetAttributes
(AssetAttributes assetAttributes) A collection of attributes of the host from which the finding is generated.The type of the host from which the finding is generated.The type of the host from which the finding is generated.attributes
(Collection<Attribute> attributes) The system-defined attributes for the finding.attributes
(Consumer<Attribute.Builder>... attributes) The system-defined attributes for the finding.attributes
(Attribute... attributes) The system-defined attributes for the finding.confidence
(Integer confidence) This data element is currently not used.The time when the finding was generated.description
(String description) The description of the finding.The ID of the finding.indicatorOfCompromise
(Boolean indicatorOfCompromise) This data element is currently not used.numericSeverity
(Double numericSeverity) The numeric value of the finding severity.recommendation
(String recommendation) The recommendation for the finding.schemaVersion
(Integer schemaVersion) The schema version of this data type.The data element is set to "Inspector".default Finding.Builder
serviceAttributes
(Consumer<InspectorServiceAttributes.Builder> serviceAttributes) This data type is used in the Finding data type.serviceAttributes
(InspectorServiceAttributes serviceAttributes) This data type is used in the Finding data type.The finding severity.The finding severity.The name of the finding.The time when AddAttributesToFindings is called.userAttributes
(Collection<Attribute> userAttributes) The user-defined attributes that are assigned to the finding.userAttributes
(Consumer<Attribute.Builder>... userAttributes) The user-defined attributes that are assigned to the finding.userAttributes
(Attribute... userAttributes) The user-defined attributes that are assigned to 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
-
arn
The ARN that specifies the finding.
- Parameters:
arn
- The ARN that specifies the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaVersion
The schema version of this data type.
- Parameters:
schemaVersion
- The schema version of this data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
The data element is set to "Inspector".
- Parameters:
service
- The data element is set to "Inspector".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAttributes
This data type is used in the Finding data type.
- Parameters:
serviceAttributes
- This data type is used in the Finding data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAttributes
default Finding.Builder serviceAttributes(Consumer<InspectorServiceAttributes.Builder> serviceAttributes) This data type is used in the Finding data type.
This is a convenience method that creates an instance of theInspectorServiceAttributes.Builder
avoiding the need to create one manually viaInspectorServiceAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserviceAttributes(InspectorServiceAttributes)
.- Parameters:
serviceAttributes
- a consumer that will call methods onInspectorServiceAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
assetType
The type of the host from which the finding is generated.
- Parameters:
assetType
- The type of the host from which the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
assetType
The type of the host from which the finding is generated.
- Parameters:
assetType
- The type of the host from which the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
assetAttributes
A collection of attributes of the host from which the finding is generated.
- Parameters:
assetAttributes
- A collection of attributes of the host from which the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetAttributes
A collection of attributes of the host from which the finding is generated.
This is a convenience method that creates an instance of theAssetAttributes.Builder
avoiding the need to create one manually viaAssetAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassetAttributes(AssetAttributes)
.- Parameters:
assetAttributes
- a consumer that will call methods onAssetAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
id
The ID of the finding.
- Parameters:
id
- The ID of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
The name of the finding.
- Parameters:
title
- The name of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the finding.
- Parameters:
description
- The description of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendation
The recommendation for the finding.
- Parameters:
recommendation
- The recommendation for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
The finding severity. Values can be set to High, Medium, Low, and Informational.
- Parameters:
severity
- The finding severity. Values can be set to High, Medium, Low, and Informational.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
severity
The finding severity. Values can be set to High, Medium, Low, and Informational.
- Parameters:
severity
- The finding severity. Values can be set to High, Medium, Low, and Informational.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
numericSeverity
The numeric value of the finding severity.
- Parameters:
numericSeverity
- The numeric value of the finding severity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confidence
This data element is currently not used.
- Parameters:
confidence
- This data element is currently not used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indicatorOfCompromise
This data element is currently not used.
- Parameters:
indicatorOfCompromise
- This data element is currently not used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The system-defined attributes for the finding.
- Parameters:
attributes
- The system-defined attributes for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The system-defined attributes for the finding.
- Parameters:
attributes
- The system-defined attributes for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The system-defined attributes for the finding.
This is a convenience method that creates an instance of theAttribute.Builder
avoiding the need to create one manually viaAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributes(List<Attribute>)
.- Parameters:
attributes
- a consumer that will call methods onAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userAttributes
The user-defined attributes that are assigned to the finding.
- Parameters:
userAttributes
- The user-defined attributes that are assigned to the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributes
The user-defined attributes that are assigned to the finding.
- Parameters:
userAttributes
- The user-defined attributes that are assigned to the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributes
The user-defined attributes that are assigned to the finding.
This is a convenience method that creates an instance of theAttribute.Builder
avoiding the need to create one manually viaAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touserAttributes(List<Attribute>)
.- Parameters:
userAttributes
- a consumer that will call methods onAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The time when the finding was generated.
- Parameters:
createdAt
- The time when the finding was generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The time when AddAttributesToFindings is called.
- Parameters:
updatedAt
- The time when AddAttributesToFindings is called.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-