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.BuilderaccountId(String accountId)The ID of the account in which the finding was generated.Finding.Builderarn(String arn)The ARN of the finding.Finding.Builderconfidence(Double confidence)The confidence score for the finding.Finding.BuildercreatedAt(String createdAt)The time and date when the finding was created.Finding.Builderdescription(String description)The description of the finding.Finding.Builderid(String id)The ID of the finding.Finding.Builderpartition(String partition)The partition associated with the finding.Finding.Builderregion(String region)The Region where the finding was generated.default Finding.Builderresource(Consumer<Resource.Builder> resource)Sets the value of the Resource property for this object.Finding.Builderresource(Resource resource)Sets the value of the Resource property for this object.Finding.BuilderschemaVersion(String schemaVersion)The version of the schema used for the finding.default Finding.Builderservice(Consumer<Service.Builder> service)Sets the value of the Service property for this object.Finding.Builderservice(Service service)Sets the value of the Service property for this object.Finding.Builderseverity(Double severity)The severity of the finding.Finding.Buildertitle(String title)The title of the finding.Finding.Buildertype(String type)The type of finding.Finding.BuilderupdatedAt(String updatedAt)The time and date when the finding was last updated.-
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
-
accountId
Finding.Builder accountId(String accountId)
The ID of the account in which the finding was generated.
- Parameters:
accountId- The ID of the account in which the finding was generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
Finding.Builder arn(String arn)
The ARN of the finding.
- Parameters:
arn- The ARN of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confidence
Finding.Builder confidence(Double confidence)
The confidence score for the finding.
- Parameters:
confidence- The confidence score for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
Finding.Builder createdAt(String createdAt)
The time and date when the finding was created.
- Parameters:
createdAt- The time and date when the finding was created.- 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.
-
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.
-
partition
Finding.Builder partition(String partition)
The partition associated with the finding.
- Parameters:
partition- The partition associated with the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
region
Finding.Builder region(String region)
The Region where the finding was generated.
- Parameters:
region- The Region where the finding was generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
Finding.Builder resource(Resource resource)
Sets the value of the Resource property for this object.- Parameters:
resource- The new value for the Resource property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
default Finding.Builder resource(Consumer<Resource.Builder> resource)
Sets the value of the Resource property for this object. This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresource(Resource).- Parameters:
resource- a consumer that will call methods onResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resource(Resource)
-
schemaVersion
Finding.Builder schemaVersion(String schemaVersion)
The version of the schema used for the finding.
- Parameters:
schemaVersion- The version of the schema used for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
Finding.Builder service(Service service)
Sets the value of the Service property for this object.- Parameters:
service- The new value for the Service property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
default Finding.Builder service(Consumer<Service.Builder> service)
Sets the value of the Service property for this object. This is a convenience method that creates an instance of theService.Builderavoiding the need to create one manually viaService.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toservice(Service).- Parameters:
service- a consumer that will call methods onService.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
service(Service)
-
severity
Finding.Builder severity(Double severity)
The severity of the finding.
- Parameters:
severity- The severity 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 title of the finding.
- Parameters:
title- The title of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Finding.Builder type(String type)
The type of finding.
- Parameters:
type- The type of finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
Finding.Builder updatedAt(String updatedAt)
The time and date when the finding was last updated.
- Parameters:
updatedAt- The time and date when the finding was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-