Interface Finding.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Finding.Builder,Finding>,SdkBuilder<Finding.Builder,Finding>,SdkPojo
- Enclosing class:
- Finding
public static interface Finding.Builder extends SdkPojo, CopyableBuilder<Finding.Builder,Finding>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Finding.Builderarn(String arn)The ARN that specifies the finding.default Finding.BuilderassetAttributes(Consumer<AssetAttributes.Builder> assetAttributes)A collection of attributes of the host from which the finding is generated.Finding.BuilderassetAttributes(AssetAttributes assetAttributes)A collection of attributes of the host from which the finding is generated.Finding.BuilderassetType(String assetType)The type of the host from which the finding is generated.Finding.BuilderassetType(AssetType assetType)The type of the host from which the finding is generated.Finding.Builderattributes(Collection<Attribute> attributes)The system-defined attributes for the finding.Finding.Builderattributes(Consumer<Attribute.Builder>... attributes)The system-defined attributes for the finding.Finding.Builderattributes(Attribute... attributes)The system-defined attributes for the finding.Finding.Builderconfidence(Integer confidence)This data element is currently not used.Finding.BuildercreatedAt(Instant createdAt)The time when the finding was generated.Finding.Builderdescription(String description)The description of the finding.Finding.Builderid(String id)The ID of the finding.Finding.BuilderindicatorOfCompromise(Boolean indicatorOfCompromise)This data element is currently not used.Finding.BuildernumericSeverity(Double numericSeverity)The numeric value of the finding severity.Finding.Builderrecommendation(String recommendation)The recommendation for the finding.Finding.BuilderschemaVersion(Integer schemaVersion)The schema version of this data type.Finding.Builderservice(String service)The data element is set to "Inspector".default Finding.BuilderserviceAttributes(Consumer<InspectorServiceAttributes.Builder> serviceAttributes)This data type is used in the Finding data type.Finding.BuilderserviceAttributes(InspectorServiceAttributes serviceAttributes)This data type is used in the Finding data type.Finding.Builderseverity(String severity)The finding severity.Finding.Builderseverity(Severity severity)The finding severity.Finding.Buildertitle(String title)The name of the finding.Finding.BuilderupdatedAt(Instant updatedAt)The time when AddAttributesToFindings is called.Finding.BuilderuserAttributes(Collection<Attribute> userAttributes)The user-defined attributes that are assigned to the finding.Finding.BuilderuserAttributes(Consumer<Attribute.Builder>... userAttributes)The user-defined attributes that are assigned to the finding.Finding.BuilderuserAttributes(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 Detail
-
arn
Finding.Builder arn(String 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
Finding.Builder schemaVersion(Integer 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
Finding.Builder service(String 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
Finding.Builder serviceAttributes(InspectorServiceAttributes 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.Builderavoiding the need to create one manually viaInspectorServiceAttributes.builder().When the
Consumercompletes,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:
serviceAttributes(InspectorServiceAttributes)
-
assetType
Finding.Builder assetType(String assetType)
The type of the host from which the finding is generated.
-
assetType
Finding.Builder assetType(AssetType assetType)
The type of the host from which the finding is generated.
-
assetAttributes
Finding.Builder assetAttributes(AssetAttributes 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
default Finding.Builder assetAttributes(Consumer<AssetAttributes.Builder> 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.Builderavoiding the need to create one manually viaAssetAttributes.builder().When the
Consumercompletes,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:
assetAttributes(AssetAttributes)
-
id
Finding.Builder id(String 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
Finding.Builder title(String 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
Finding.Builder description(String 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
Finding.Builder recommendation(String 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
Finding.Builder severity(String severity)
The finding severity. Values can be set to High, Medium, Low, and Informational.
-
severity
Finding.Builder severity(Severity severity)
The finding severity. Values can be set to High, Medium, Low, and Informational.
-
numericSeverity
Finding.Builder numericSeverity(Double 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
Finding.Builder confidence(Integer 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
Finding.Builder indicatorOfCompromise(Boolean 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
Finding.Builder attributes(Collection<Attribute> 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
Finding.Builder attributes(Attribute... 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
Finding.Builder attributes(Consumer<Attribute.Builder>... attributes)
The system-defined attributes for the finding.
This is a convenience method that creates an instance of theAttribute.Builderavoiding the need to create one manually viaAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#attributes(List.) - 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:
#attributes(java.util.Collection)
-
userAttributes
Finding.Builder userAttributes(Collection<Attribute> 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
Finding.Builder userAttributes(Attribute... 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
Finding.Builder userAttributes(Consumer<Attribute.Builder>... userAttributes)
The user-defined attributes that are assigned to the finding.
This is a convenience method that creates an instance of theAttribute.Builderavoiding the need to create one manually viaAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#userAttributes(List.) - 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:
#userAttributes(java.util.Collection)
-
createdAt
Finding.Builder createdAt(Instant 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
Finding.Builder updatedAt(Instant 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.
-
-