Interface AuditFinding.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AuditFinding.Builder,
,AuditFinding> SdkBuilder<AuditFinding.Builder,
,AuditFinding> SdkPojo
- Enclosing class:
AuditFinding
-
Method Summary
Modifier and TypeMethodDescriptionThe audit check that generated this result.A unique identifier for this set of audit findings.findingTime
(Instant findingTime) The time the result (finding) was discovered.isSuppressed
(Boolean isSuppressed) Indicates whether the audit finding was suppressed or not during reporting.default AuditFinding.Builder
nonCompliantResource
(Consumer<NonCompliantResource.Builder> nonCompliantResource) The resource that was found to be noncompliant with the audit check.nonCompliantResource
(NonCompliantResource nonCompliantResource) The resource that was found to be noncompliant with the audit check.reasonForNonCompliance
(String reasonForNonCompliance) The reason the resource was noncompliant.reasonForNonComplianceCode
(String reasonForNonComplianceCode) A code that indicates the reason that the resource was noncompliant.relatedResources
(Collection<RelatedResource> relatedResources) The list of related resources.relatedResources
(Consumer<RelatedResource.Builder>... relatedResources) The list of related resources.relatedResources
(RelatedResource... relatedResources) The list of related resources.The severity of the result (finding).severity
(AuditFindingSeverity severity) The severity of the result (finding).The ID of the audit that generated this result (finding).taskStartTime
(Instant taskStartTime) The time the audit started.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
-
findingId
A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
- Parameters:
findingId
- A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskId
The ID of the audit that generated this result (finding).
- Parameters:
taskId
- The ID of the audit that generated this result (finding).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checkName
The audit check that generated this result.
- Parameters:
checkName
- The audit check that generated this result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskStartTime
The time the audit started.
- Parameters:
taskStartTime
- The time the audit started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingTime
The time the result (finding) was discovered.
- Parameters:
findingTime
- The time the result (finding) was discovered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
The severity of the result (finding).
- Parameters:
severity
- The severity of the result (finding).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
severity
The severity of the result (finding).
- Parameters:
severity
- The severity of the result (finding).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nonCompliantResource
The resource that was found to be noncompliant with the audit check.
- Parameters:
nonCompliantResource
- The resource that was found to be noncompliant with the audit check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nonCompliantResource
default AuditFinding.Builder nonCompliantResource(Consumer<NonCompliantResource.Builder> nonCompliantResource) The resource that was found to be noncompliant with the audit check.
This is a convenience method that creates an instance of theNonCompliantResource.Builder
avoiding the need to create one manually viaNonCompliantResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tononCompliantResource(NonCompliantResource)
.- Parameters:
nonCompliantResource
- a consumer that will call methods onNonCompliantResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reasonForNonCompliance
The reason the resource was noncompliant.
- Parameters:
reasonForNonCompliance
- The reason the resource was noncompliant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reasonForNonComplianceCode
A code that indicates the reason that the resource was noncompliant.
- Parameters:
reasonForNonComplianceCode
- A code that indicates the reason that the resource was noncompliant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSuppressed
Indicates whether the audit finding was suppressed or not during reporting.
- Parameters:
isSuppressed
- Indicates whether the audit finding was suppressed or not during reporting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-