Class VulnerabilityAssessmentScanRecordProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.VulnerabilityAssessmentScanRecordProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<VulnerabilityAssessmentScanRecordProperties>

public final class VulnerabilityAssessmentScanRecordProperties extends Object implements com.azure.json.JsonSerializable<VulnerabilityAssessmentScanRecordProperties>
Properties of a vulnerability assessment scan record.
  • Constructor Details

    • VulnerabilityAssessmentScanRecordProperties

      public VulnerabilityAssessmentScanRecordProperties()
      Creates an instance of VulnerabilityAssessmentScanRecordProperties class.
  • Method Details

    • scanId

      public String scanId()
      Get the scanId property: The scan ID.
      Returns:
      the scanId value.
    • triggerType

      Get the triggerType property: The scan trigger type.
      Returns:
      the triggerType value.
    • state

      Get the state property: The scan status.
      Returns:
      the state value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The scan start time (UTC).
      Returns:
      the startTime value.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: The scan end time (UTC).
      Returns:
      the endTime value.
    • errors

      Get the errors property: The scan errors.
      Returns:
      the errors value.
    • storageContainerPath

      public String storageContainerPath()
      Get the storageContainerPath property: The scan results storage container path.
      Returns:
      the storageContainerPath value.
    • numberOfFailedSecurityChecks

      public Integer numberOfFailedSecurityChecks()
      Get the numberOfFailedSecurityChecks property: The number of failed security checks.
      Returns:
      the numberOfFailedSecurityChecks value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<VulnerabilityAssessmentScanRecordProperties>
      Throws:
      IOException
    • fromJson

      public static VulnerabilityAssessmentScanRecordProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VulnerabilityAssessmentScanRecordProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VulnerabilityAssessmentScanRecordProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the VulnerabilityAssessmentScanRecordProperties.