Interface InventoryFinding.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InventoryFinding.Builder,,InventoryFinding> SdkBuilder<InventoryFinding.Builder,,InventoryFinding> SdkPojo
- Enclosing class:
InventoryFinding
-
Method Summary
Modifier and TypeMethodDescriptionWhat the rule found, up to 1,024 characters.certificateIdentifier(String certificateIdentifier) The identifier of the certificate whose findings were requested.evaluatedAt(Instant evaluatedAt) When the finding was opened or its content last changed, to the second.What the rule requires, up to 1,024 characters.Identifies the finding.Why the rule fired, for a rule with more than one cause.reason(FindingReason reason) Why the rule fired, for a rule with more than one cause.remediation(String remediation) How to resolve the finding, up to 1,024 characters.The rule that produced the finding.ruleId(FindingRuleId ruleId) The rule that produced the finding.default InventoryFinding.Builderscope(Consumer<FindingScope.Builder> scope) What the rule evaluated.scope(FindingScope scope) What the rule evaluated.How severe the finding is.severity(FindingSeverity severity) How severe the finding is.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
findingId
Identifies the finding. It stays the same for the same rule and the same evaluated subject, across evaluations and pages. Use it to recognize a finding that is returned again. It is opaque: do not parse it or build one.
- Parameters:
findingId- Identifies the finding. It stays the same for the same rule and the same evaluated subject, across evaluations and pages. Use it to recognize a finding that is returned again. It is opaque: do not parse it or build one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateIdentifier
The identifier of the certificate whose findings were requested.
- Parameters:
certificateIdentifier- The identifier of the certificate whose findings were requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleId
The rule that produced the finding.
- Parameters:
ruleId- The rule that produced the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleId
The rule that produced the finding.
- Parameters:
ruleId- The rule that produced the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
severity
How severe the finding is.
- Parameters:
severity- How severe the finding is.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
severity
How severe the finding is.
- Parameters:
severity- How severe the finding is.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
What the rule evaluated.
- Parameters:
scope- What the rule evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
What the rule evaluated.
This is a convenience method that creates an instance of theFindingScope.Builderavoiding the need to create one manually viaFindingScope.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscope(FindingScope).- Parameters:
scope- a consumer that will call methods onFindingScope.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reason
Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.
- Parameters:
reason- Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reason
Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.
- Parameters:
reason- Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expected
What the rule requires, up to 1,024 characters. Absent when the rule does not describe it.
- Parameters:
expected- What the rule requires, up to 1,024 characters. Absent when the rule does not describe it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actual
What the rule found, up to 1,024 characters. Absent when the rule does not describe it.
- Parameters:
actual- What the rule found, up to 1,024 characters. Absent when the rule does not describe it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remediation
How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it.
- Parameters:
remediation- How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluatedAt
When the finding was opened or its content last changed, to the second. A change in severity counts as a change in content. Evaluating an unchanged finding again does not change this time.
- Parameters:
evaluatedAt- When the finding was opened or its content last changed, to the second. A change in severity counts as a change in content. Evaluating an unchanged finding again does not change this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-