Class ScanProperties

java.lang.Object
com.azure.resourcemanager.security.models.ScanProperties

public final class ScanProperties extends Object
A vulnerability assessment scan record properties.
  • Constructor Details

    • ScanProperties

      public ScanProperties()
  • Method Details

    • triggerType

      public ScanTriggerType triggerType()
      Get the triggerType property: The scan trigger type.
      Returns:
      the triggerType value.
    • withTriggerType

      public ScanProperties withTriggerType(ScanTriggerType triggerType)
      Set the triggerType property: The scan trigger type.
      Parameters:
      triggerType - the triggerType value to set.
      Returns:
      the ScanProperties object itself.
    • state

      public ScanState state()
      Get the state property: The scan status.
      Returns:
      the state value.
    • withState

      public ScanProperties withState(ScanState state)
      Set the state property: The scan status.
      Parameters:
      state - the state value to set.
      Returns:
      the ScanProperties object itself.
    • server

      public String server()
      Get the server property: The server name.
      Returns:
      the server value.
    • withServer

      public ScanProperties withServer(String server)
      Set the server property: The server name.
      Parameters:
      server - the server value to set.
      Returns:
      the ScanProperties object itself.
    • database

      public String database()
      Get the database property: The database name.
      Returns:
      the database value.
    • withDatabase

      public ScanProperties withDatabase(String database)
      Set the database property: The database name.
      Parameters:
      database - the database value to set.
      Returns:
      the ScanProperties object itself.
    • sqlVersion

      public String sqlVersion()
      Get the sqlVersion property: The SQL version.
      Returns:
      the sqlVersion value.
    • withSqlVersion

      public ScanProperties withSqlVersion(String sqlVersion)
      Set the sqlVersion property: The SQL version.
      Parameters:
      sqlVersion - the sqlVersion value to set.
      Returns:
      the ScanProperties object itself.
    • startTime

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

      public ScanProperties withStartTime(OffsetDateTime startTime)
      Set the startTime property: The scan start time (UTC).
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the ScanProperties object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: Scan results are valid until end time (UTC).
      Returns:
      the endTime value.
    • withEndTime

      public ScanProperties withEndTime(OffsetDateTime endTime)
      Set the endTime property: Scan results are valid until end time (UTC).
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the ScanProperties object itself.
    • highSeverityFailedRulesCount

      public Integer highSeverityFailedRulesCount()
      Get the highSeverityFailedRulesCount property: The number of failed rules with high severity.
      Returns:
      the highSeverityFailedRulesCount value.
    • withHighSeverityFailedRulesCount

      public ScanProperties withHighSeverityFailedRulesCount(Integer highSeverityFailedRulesCount)
      Set the highSeverityFailedRulesCount property: The number of failed rules with high severity.
      Parameters:
      highSeverityFailedRulesCount - the highSeverityFailedRulesCount value to set.
      Returns:
      the ScanProperties object itself.
    • mediumSeverityFailedRulesCount

      public Integer mediumSeverityFailedRulesCount()
      Get the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.
      Returns:
      the mediumSeverityFailedRulesCount value.
    • withMediumSeverityFailedRulesCount

      public ScanProperties withMediumSeverityFailedRulesCount(Integer mediumSeverityFailedRulesCount)
      Set the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.
      Parameters:
      mediumSeverityFailedRulesCount - the mediumSeverityFailedRulesCount value to set.
      Returns:
      the ScanProperties object itself.
    • lowSeverityFailedRulesCount

      public Integer lowSeverityFailedRulesCount()
      Get the lowSeverityFailedRulesCount property: The number of failed rules with low severity.
      Returns:
      the lowSeverityFailedRulesCount value.
    • withLowSeverityFailedRulesCount

      public ScanProperties withLowSeverityFailedRulesCount(Integer lowSeverityFailedRulesCount)
      Set the lowSeverityFailedRulesCount property: The number of failed rules with low severity.
      Parameters:
      lowSeverityFailedRulesCount - the lowSeverityFailedRulesCount value to set.
      Returns:
      the ScanProperties object itself.
    • totalPassedRulesCount

      public Integer totalPassedRulesCount()
      Get the totalPassedRulesCount property: The number of total passed rules.
      Returns:
      the totalPassedRulesCount value.
    • withTotalPassedRulesCount

      public ScanProperties withTotalPassedRulesCount(Integer totalPassedRulesCount)
      Set the totalPassedRulesCount property: The number of total passed rules.
      Parameters:
      totalPassedRulesCount - the totalPassedRulesCount value to set.
      Returns:
      the ScanProperties object itself.
    • totalFailedRulesCount

      public Integer totalFailedRulesCount()
      Get the totalFailedRulesCount property: The number of total failed rules.
      Returns:
      the totalFailedRulesCount value.
    • withTotalFailedRulesCount

      public ScanProperties withTotalFailedRulesCount(Integer totalFailedRulesCount)
      Set the totalFailedRulesCount property: The number of total failed rules.
      Parameters:
      totalFailedRulesCount - the totalFailedRulesCount value to set.
      Returns:
      the ScanProperties object itself.
    • totalRulesCount

      public Integer totalRulesCount()
      Get the totalRulesCount property: The number of total rules assessed.
      Returns:
      the totalRulesCount value.
    • withTotalRulesCount

      public ScanProperties withTotalRulesCount(Integer totalRulesCount)
      Set the totalRulesCount property: The number of total rules assessed.
      Parameters:
      totalRulesCount - the totalRulesCount value to set.
      Returns:
      the ScanProperties object itself.
    • isBaselineApplied

      public Boolean isBaselineApplied()
      Get the isBaselineApplied property: Baseline created for this database, and has one or more rules.
      Returns:
      the isBaselineApplied value.
    • withIsBaselineApplied

      public ScanProperties withIsBaselineApplied(Boolean isBaselineApplied)
      Set the isBaselineApplied property: Baseline created for this database, and has one or more rules.
      Parameters:
      isBaselineApplied - the isBaselineApplied value to set.
      Returns:
      the ScanProperties object itself.
    • validate

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