Class ScanResults

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

@Generated("software.amazon.awssdk:codegen") public final class ScanResults extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ScanResults.Builder,ScanResults>

The Amazon Inspector scan results for an AMI. This information is present only for AMIs that Amazon Inspector has scanned.

When you share an AMI with other accounts, organizations, or organizational units (OUs), or make it public, its scan results are available to the accounts that can use the AMI.

The fix-available dates are specific to the AMI. Each date reflects when a fix became available for a finding on that AMI, not when the vendor released the fix. As a result, a date can be later than the vendor's release date, and AMIs with the same vulnerability can have different dates.

See Also:
  • Method Details

    • highestFindingSeverityLabel

      public final SeverityLabel highestFindingSeverityLabel()

      The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.

      The valid values are the following Amazon Inspector severity levels, which correspond to CVSS score ranges:

      • informational - CVSS score of 0.

      • low - CVSS score of 0.1 to 3.9.

      • medium - CVSS score of 4.0 to 6.9.

      • high - CVSS score of 7.0 to 8.9.

      • critical - CVSS score of 9.0 to 10.0.

      For more information, see Software package vulnerability severity in the Amazon Inspector User Guide.

      This value is present only if the AMI has at least one finding.

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

      Returns:
      The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.

      The valid values are the following Amazon Inspector severity levels, which correspond to CVSS score ranges:

      • informational - CVSS score of 0.

      • low - CVSS score of 0.1 to 3.9.

      • medium - CVSS score of 4.0 to 6.9.

      • high - CVSS score of 7.0 to 8.9.

      • critical - CVSS score of 9.0 to 10.0.

      For more information, see Software package vulnerability severity in the Amazon Inspector User Guide.

      This value is present only if the AMI has at least one finding.

      See Also:
    • highestFindingSeverityLabelAsString

      public final String highestFindingSeverityLabelAsString()

      The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.

      The valid values are the following Amazon Inspector severity levels, which correspond to CVSS score ranges:

      • informational - CVSS score of 0.

      • low - CVSS score of 0.1 to 3.9.

      • medium - CVSS score of 4.0 to 6.9.

      • high - CVSS score of 7.0 to 8.9.

      • critical - CVSS score of 9.0 to 10.0.

      For more information, see Software package vulnerability severity in the Amazon Inspector User Guide.

      This value is present only if the AMI has at least one finding.

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

      Returns:
      The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available.

      The valid values are the following Amazon Inspector severity levels, which correspond to CVSS score ranges:

      • informational - CVSS score of 0.

      • low - CVSS score of 0.1 to 3.9.

      • medium - CVSS score of 4.0 to 6.9.

      • high - CVSS score of 7.0 to 8.9.

      • critical - CVSS score of 9.0 to 10.0.

      For more information, see Software package vulnerability severity in the Amazon Inspector User Guide.

      This value is present only if the AMI has at least one finding.

      See Also:
    • findingScanDate

      public final Instant findingScanDate()

      The date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most recent Amazon Inspector scan of the AMI.

      Returns:
      The date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most recent Amazon Inspector scan of the AMI.
    • informationalFixAvailableSince

      public final Instant informationalFixAvailableSince()

      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for an informational severity finding on the AMI. This value is present only if the AMI has at least one informational severity finding with a fix available. Amazon Inspector recomputes this value on each scan.

      Returns:
      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for an informational severity finding on the AMI. This value is present only if the AMI has at least one informational severity finding with a fix available. Amazon Inspector recomputes this value on each scan.
    • lowFixAvailableSince

      public final Instant lowFixAvailableSince()

      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a low severity finding on the AMI. This value is present only if the AMI has at least one low severity finding with a fix available. Amazon Inspector recomputes this value on each scan.

      Returns:
      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a low severity finding on the AMI. This value is present only if the AMI has at least one low severity finding with a fix available. Amazon Inspector recomputes this value on each scan.
    • mediumFixAvailableSince

      public final Instant mediumFixAvailableSince()

      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a medium severity finding on the AMI. This value is present only if the AMI has at least one medium severity finding with a fix available. Amazon Inspector recomputes this value on each scan.

      Returns:
      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a medium severity finding on the AMI. This value is present only if the AMI has at least one medium severity finding with a fix available. Amazon Inspector recomputes this value on each scan.
    • highFixAvailableSince

      public final Instant highFixAvailableSince()

      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a high severity finding on the AMI. This value is present only if the AMI has at least one high severity finding with a fix available. Amazon Inspector recomputes this value on each scan.

      Returns:
      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a high severity finding on the AMI. This value is present only if the AMI has at least one high severity finding with a fix available. Amazon Inspector recomputes this value on each scan.
    • criticalFixAvailableSince

      public final Instant criticalFixAvailableSince()

      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a critical severity finding on the AMI. This value is present only if the AMI has at least one critical severity finding with a fix available. Amazon Inspector recomputes this value on each scan.

      Returns:
      The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a critical severity finding on the AMI. This value is present only if the AMI has at least one critical severity finding with a fix available. Amazon Inspector recomputes this value on each scan.
    • toBuilder

      public ScanResults.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<ScanResults.Builder,ScanResults>
      Returns:
      a builder for type T
    • builder

      public static ScanResults.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ScanResults.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.