Class ScanProperties
java.lang.Object
com.azure.resourcemanager.security.models.ScanProperties
A vulnerability assessment scan record properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondatabase()
Get the database property: The database name.endTime()
Get the endTime property: Scan results are valid until end time (UTC).Get the highSeverityFailedRulesCount property: The number of failed rules with high severity.Get the isBaselineApplied property: Baseline created for this database, and has one or more rules.Get the lowSeverityFailedRulesCount property: The number of failed rules with low severity.Get the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.server()
Get the server property: The server name.Get the sqlVersion property: The SQL version.Get the startTime property: The scan start time (UTC).state()
Get the state property: The scan status.Get the totalFailedRulesCount property: The number of total failed rules.Get the totalPassedRulesCount property: The number of total passed rules.Get the totalRulesCount property: The number of total rules assessed.Get the triggerType property: The scan trigger type.void
validate()
Validates the instance.withDatabase
(String database) Set the database property: The database name.withEndTime
(OffsetDateTime endTime) Set the endTime property: Scan results are valid until end time (UTC).withHighSeverityFailedRulesCount
(Integer highSeverityFailedRulesCount) Set the highSeverityFailedRulesCount property: The number of failed rules with high severity.withIsBaselineApplied
(Boolean isBaselineApplied) Set the isBaselineApplied property: Baseline created for this database, and has one or more rules.withLowSeverityFailedRulesCount
(Integer lowSeverityFailedRulesCount) Set the lowSeverityFailedRulesCount property: The number of failed rules with low severity.withMediumSeverityFailedRulesCount
(Integer mediumSeverityFailedRulesCount) Set the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.withServer
(String server) Set the server property: The server name.withSqlVersion
(String sqlVersion) Set the sqlVersion property: The SQL version.withStartTime
(OffsetDateTime startTime) Set the startTime property: The scan start time (UTC).Set the state property: The scan status.withTotalFailedRulesCount
(Integer totalFailedRulesCount) Set the totalFailedRulesCount property: The number of total failed rules.withTotalPassedRulesCount
(Integer totalPassedRulesCount) Set the totalPassedRulesCount property: The number of total passed rules.withTotalRulesCount
(Integer totalRulesCount) Set the totalRulesCount property: The number of total rules assessed.withTriggerType
(ScanTriggerType triggerType) Set the triggerType property: The scan trigger type.
-
Constructor Details
-
ScanProperties
public ScanProperties()
-
-
Method Details
-
triggerType
Get the triggerType property: The scan trigger type.- Returns:
- the triggerType value.
-
withTriggerType
Set the triggerType property: The scan trigger type.- Parameters:
triggerType
- the triggerType value to set.- Returns:
- the ScanProperties object itself.
-
state
Get the state property: The scan status.- Returns:
- the state value.
-
withState
Set the state property: The scan status.- Parameters:
state
- the state value to set.- Returns:
- the ScanProperties object itself.
-
server
Get the server property: The server name.- Returns:
- the server value.
-
withServer
Set the server property: The server name.- Parameters:
server
- the server value to set.- Returns:
- the ScanProperties object itself.
-
database
Get the database property: The database name.- Returns:
- the database value.
-
withDatabase
Set the database property: The database name.- Parameters:
database
- the database value to set.- Returns:
- the ScanProperties object itself.
-
sqlVersion
Get the sqlVersion property: The SQL version.- Returns:
- the sqlVersion value.
-
withSqlVersion
Set the sqlVersion property: The SQL version.- Parameters:
sqlVersion
- the sqlVersion value to set.- Returns:
- the ScanProperties object itself.
-
startTime
Get the startTime property: The scan start time (UTC).- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: The scan start time (UTC).- Parameters:
startTime
- the startTime value to set.- Returns:
- the ScanProperties object itself.
-
endTime
Get the endTime property: Scan results are valid until end time (UTC).- Returns:
- the endTime value.
-
withEndTime
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
Get the highSeverityFailedRulesCount property: The number of failed rules with high severity.- Returns:
- the highSeverityFailedRulesCount value.
-
withHighSeverityFailedRulesCount
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
Get the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.- Returns:
- the mediumSeverityFailedRulesCount value.
-
withMediumSeverityFailedRulesCount
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
Get the lowSeverityFailedRulesCount property: The number of failed rules with low severity.- Returns:
- the lowSeverityFailedRulesCount value.
-
withLowSeverityFailedRulesCount
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
Get the totalPassedRulesCount property: The number of total passed rules.- Returns:
- the totalPassedRulesCount value.
-
withTotalPassedRulesCount
Set the totalPassedRulesCount property: The number of total passed rules.- Parameters:
totalPassedRulesCount
- the totalPassedRulesCount value to set.- Returns:
- the ScanProperties object itself.
-
totalFailedRulesCount
Get the totalFailedRulesCount property: The number of total failed rules.- Returns:
- the totalFailedRulesCount value.
-
withTotalFailedRulesCount
Set the totalFailedRulesCount property: The number of total failed rules.- Parameters:
totalFailedRulesCount
- the totalFailedRulesCount value to set.- Returns:
- the ScanProperties object itself.
-
totalRulesCount
Get the totalRulesCount property: The number of total rules assessed.- Returns:
- the totalRulesCount value.
-
withTotalRulesCount
Set the totalRulesCount property: The number of total rules assessed.- Parameters:
totalRulesCount
- the totalRulesCount value to set.- Returns:
- the ScanProperties object itself.
-
isBaselineApplied
Get the isBaselineApplied property: Baseline created for this database, and has one or more rules.- Returns:
- the isBaselineApplied value.
-
withIsBaselineApplied
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.
-