Class InventoryFinding

java.lang.Object
software.amazon.awssdk.services.acm.model.InventoryFinding
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<InventoryFinding.Builder,InventoryFinding>

@Generated("software.amazon.awssdk:codegen") public final class InventoryFinding extends Object implements SdkPojo, Serializable, 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:
  • Method Details

    • findingId

      public final String 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

      public final String certificateIdentifier()

      The identifier of the certificate whose findings were requested.

      Returns:
      The identifier of the certificate whose findings were requested.
    • ruleId

      public final FindingRuleId ruleId()

      The rule that produced the finding.

      If the service returns an enum value that is not available in the current SDK version, ruleId will return FindingRuleId.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from ruleIdAsString().

      Returns:
      The rule that produced the finding.
      See Also:
    • ruleIdAsString

      public final String ruleIdAsString()

      The rule that produced the finding.

      If the service returns an enum value that is not available in the current SDK version, ruleId will return FindingRuleId.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from ruleIdAsString().

      Returns:
      The rule that produced the finding.
      See Also:
    • severity

      public final FindingSeverity severity()

      How severe the finding is.

      If the service returns an enum value that is not available in the current SDK version, severity will return FindingSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from severityAsString().

      Returns:
      How severe the finding is.
      See Also:
    • severityAsString

      public final String severityAsString()

      How severe the finding is.

      If the service returns an enum value that is not available in the current SDK version, severity will return FindingSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from severityAsString().

      Returns:
      How severe the finding is.
      See Also:
    • scope

      public final FindingScope scope()

      What the rule evaluated.

      Returns:
      What the rule evaluated.
    • reason

      public final FindingReason 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, reason will return FindingReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonAsString().

      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

      public final String 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, reason will return FindingReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonAsString().

      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

      public final String 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

      public final String 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

      public final String 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

      public final Instant 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

      public InventoryFinding.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<InventoryFinding.Builder,InventoryFinding>
      Returns:
      a builder for type T
    • builder

      public static InventoryFinding.Builder builder()
    • serializableBuilderClass

      public static Class<? extends InventoryFinding.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.