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 unique identifier for the Amazon Web Services account that the finding applies to.Finding.Builderarchived(Boolean archived)Specifies whether the finding is archived (suppressed).Finding.Buildercategory(String category)The category of the finding.Finding.Buildercategory(FindingCategory category)The category of the finding.default Finding.BuilderclassificationDetails(Consumer<ClassificationDetails.Builder> classificationDetails)The details of a sensitive data finding.Finding.BuilderclassificationDetails(ClassificationDetails classificationDetails)The details of a sensitive data finding.Finding.Buildercount(Long count)The total number of occurrences of the finding.Finding.BuildercreatedAt(Instant createdAt)The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.Finding.Builderdescription(String description)The description of the finding.Finding.Builderid(String id)The unique identifier for the finding.Finding.Builderpartition(String partition)The Amazon Web Services partition that Amazon Macie created the finding in.default Finding.BuilderpolicyDetails(Consumer<PolicyDetails.Builder> policyDetails)The details of a policy finding.Finding.BuilderpolicyDetails(PolicyDetails policyDetails)The details of a policy finding.Finding.Builderregion(String region)The Amazon Web Services Region that Amazon Macie created the finding in.default Finding.BuilderresourcesAffected(Consumer<ResourcesAffected.Builder> resourcesAffected)The resources that the finding applies to.Finding.BuilderresourcesAffected(ResourcesAffected resourcesAffected)The resources that the finding applies to.Finding.Buildersample(Boolean sample)Specifies whether the finding is a sample finding.Finding.BuilderschemaVersion(String schemaVersion)The version of the schema that was used to define the data structures in the finding.default Finding.Builderseverity(Consumer<Severity.Builder> severity)The severity level and score for the finding.Finding.Builderseverity(Severity severity)The severity level and score for the finding.Finding.Buildertitle(String title)The brief description of the finding.Finding.Buildertype(String type)The type of the finding.Finding.Buildertype(FindingType type)The type of the finding.Finding.BuilderupdatedAt(Instant updatedAt)The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated 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
-
accountId
Finding.Builder accountId(String accountId)
The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.
- Parameters:
accountId- The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
archived
Finding.Builder archived(Boolean archived)
Specifies whether the finding is archived (suppressed).
- Parameters:
archived- Specifies whether the finding is archived (suppressed).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
category
Finding.Builder category(String category)
The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.
- Parameters:
category- The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingCategory,FindingCategory
-
category
Finding.Builder category(FindingCategory category)
The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.
- Parameters:
category- The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingCategory,FindingCategory
-
classificationDetails
Finding.Builder classificationDetails(ClassificationDetails classificationDetails)
The details of a sensitive data finding. This value is null for a policy finding.
- Parameters:
classificationDetails- The details of a sensitive data finding. This value is null for a policy finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
classificationDetails
default Finding.Builder classificationDetails(Consumer<ClassificationDetails.Builder> classificationDetails)
The details of a sensitive data finding. This value is null for a policy finding.
This is a convenience method that creates an instance of theClassificationDetails.Builderavoiding the need to create one manually viaClassificationDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toclassificationDetails(ClassificationDetails).- Parameters:
classificationDetails- a consumer that will call methods onClassificationDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
classificationDetails(ClassificationDetails)
-
count
Finding.Builder count(Long count)
The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.
- Parameters:
count- The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
Finding.Builder createdAt(Instant createdAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.
- Parameters:
createdAt- The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created 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.
-
id
Finding.Builder id(String id)
The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.
- Parameters:
id- The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partition
Finding.Builder partition(String partition)
The Amazon Web Services partition that Amazon Macie created the finding in.
- Parameters:
partition- The Amazon Web Services partition that Amazon Macie created the finding in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
Finding.Builder policyDetails(PolicyDetails policyDetails)
The details of a policy finding. This value is null for a sensitive data finding.
- Parameters:
policyDetails- The details of a policy finding. This value is null for a sensitive data finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
default Finding.Builder policyDetails(Consumer<PolicyDetails.Builder> policyDetails)
The details of a policy finding. This value is null for a sensitive data finding.
This is a convenience method that creates an instance of thePolicyDetails.Builderavoiding the need to create one manually viaPolicyDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyDetails(PolicyDetails).- Parameters:
policyDetails- a consumer that will call methods onPolicyDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
policyDetails(PolicyDetails)
-
region
Finding.Builder region(String region)
The Amazon Web Services Region that Amazon Macie created the finding in.
- Parameters:
region- The Amazon Web Services Region that Amazon Macie created the finding in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesAffected
Finding.Builder resourcesAffected(ResourcesAffected resourcesAffected)
The resources that the finding applies to.
- Parameters:
resourcesAffected- The resources that the finding applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesAffected
default Finding.Builder resourcesAffected(Consumer<ResourcesAffected.Builder> resourcesAffected)
The resources that the finding applies to.
This is a convenience method that creates an instance of theResourcesAffected.Builderavoiding the need to create one manually viaResourcesAffected.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourcesAffected(ResourcesAffected).- Parameters:
resourcesAffected- a consumer that will call methods onResourcesAffected.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resourcesAffected(ResourcesAffected)
-
sample
Finding.Builder sample(Boolean sample)
Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.
- Parameters:
sample- Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaVersion
Finding.Builder schemaVersion(String schemaVersion)
The version of the schema that was used to define the data structures in the finding.
- Parameters:
schemaVersion- The version of the schema that was used to define the data structures in the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
Finding.Builder severity(Severity severity)
The severity level and score for the finding.
- Parameters:
severity- The severity level and score for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
default Finding.Builder severity(Consumer<Severity.Builder> severity)
The severity level and score for the finding.
This is a convenience method that creates an instance of theSeverity.Builderavoiding the need to create one manually viaSeverity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toseverity(Severity).- Parameters:
severity- a consumer that will call methods onSeverity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
severity(Severity)
-
title
Finding.Builder title(String title)
The brief description of the finding.
- Parameters:
title- The brief description 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 the finding.
- Parameters:
type- The type of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingType,FindingType
-
type
Finding.Builder type(FindingType type)
The type of the finding.
- Parameters:
type- The type of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingType,FindingType
-
updatedAt
Finding.Builder updatedAt(Instant updatedAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.
- Parameters:
updatedAt- The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-