Class InventoryFinding
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InventoryFinding.Builder,InventoryFinding>
One open finding: a problem a rule found in what it evaluated. Only open findings are returned, so a finding has no status.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringactual()What the rule found, up to 1,024 characters.static InventoryFinding.Builderbuilder()final StringThe identifier of the certificate whose findings were requested.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final InstantWhen the finding was opened or its content last changed, to the second.final Stringexpected()What the rule requires, up to 1,024 characters.final StringIdentifies the finding.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final FindingReasonreason()Why the rule fired, for a rule with more than one cause.final StringWhy the rule fired, for a rule with more than one cause.final StringHow to resolve the finding, up to 1,024 characters.final FindingRuleIdruleId()The rule that produced the finding.final StringThe rule that produced the finding.final FindingScopescope()What the rule evaluated.static Class<? extends InventoryFinding.Builder> final FindingSeverityseverity()How severe the finding is.final StringHow severe the finding is.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.
- Returns:
- 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.
-
certificateIdentifier
The identifier of the certificate whose findings were requested.
- Returns:
- The identifier of the certificate whose findings were requested.
-
ruleId
The rule that produced the finding.
If the service returns an enum value that is not available in the current SDK version,
ruleIdwill returnFindingRuleId.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleIdAsString().- Returns:
- The rule that produced the finding.
- See Also:
-
ruleIdAsString
The rule that produced the finding.
If the service returns an enum value that is not available in the current SDK version,
ruleIdwill returnFindingRuleId.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleIdAsString().- Returns:
- The rule that produced the finding.
- See Also:
-
severity
How severe the finding is.
If the service returns an enum value that is not available in the current SDK version,
severitywill returnFindingSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- How severe the finding is.
- See Also:
-
severityAsString
How severe the finding is.
If the service returns an enum value that is not available in the current SDK version,
severitywill returnFindingSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- How severe the finding is.
- See Also:
-
scope
-
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.
If the service returns an enum value that is not available in the current SDK version,
reasonwill returnFindingReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreasonAsString().- Returns:
- 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.
- See Also:
-
reasonAsString
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.
If the service returns an enum value that is not available in the current SDK version,
reasonwill returnFindingReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreasonAsString().- Returns:
- 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.
- See Also:
-
expected
What the rule requires, up to 1,024 characters. Absent when the rule does not describe it.
- Returns:
- What the rule requires, up to 1,024 characters. Absent when the rule does not describe it.
-
actual
What the rule found, up to 1,024 characters. Absent when the rule does not describe it.
- Returns:
- What the rule found, up to 1,024 characters. Absent when the rule does not describe it.
-
remediation
How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it.
- Returns:
- How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it.
-
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:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<InventoryFinding.Builder,InventoryFinding> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-