ScanProperties Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. ScanProperties
- com.
public final class ScanProperties
A vulnerability assessment scan record properties.
Constructor Summary
Constructor | Description |
---|---|
ScanProperties() |
Creates an instance of Scan |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
database()
Get the database property: The database name. |
Offset |
endTime()
Get the end |
Integer |
highSeverityFailedRulesCount()
Get the high |
Boolean |
isBaselineApplied()
Get the is |
Offset |
lastScanTime()
Get the last |
Integer |
lowSeverityFailedRulesCount()
Get the low |
Integer |
mediumSeverityFailedRulesCount()
Get the medium |
String |
server()
Get the server property: The server name. |
String |
sqlVersion()
Get the sql |
Offset |
startTime()
Get the start |
Scan |
state()
Get the state property: The scan status. |
Integer |
totalFailedRulesCount()
Get the total |
Integer |
totalPassedRulesCount()
Get the total |
Integer |
totalRulesCount()
Get the total |
Scan |
triggerType()
Get the trigger |
void |
validate()
Validates the instance. |
Scan |
withDatabase(String database)
Set the database property: The database name. |
Scan |
withEndTime(OffsetDateTime endTime)
Set the end |
Scan |
withHighSeverityFailedRulesCount(Integer highSeverityFailedRulesCount)
Set the high |
Scan |
withIsBaselineApplied(Boolean isBaselineApplied)
Set the is |
Scan |
withLastScanTime(OffsetDateTime lastScanTime)
Set the last |
Scan |
withLowSeverityFailedRulesCount(Integer lowSeverityFailedRulesCount)
Set the low |
Scan |
withMediumSeverityFailedRulesCount(Integer mediumSeverityFailedRulesCount)
Set the medium |
Scan |
withServer(String server)
Set the server property: The server name. |
Scan |
withSqlVersion(String sqlVersion)
Set the sql |
Scan |
withStartTime(OffsetDateTime startTime)
Set the start |
Scan |
withState(ScanState state)
Set the state property: The scan status. |
Scan |
withTotalFailedRulesCount(Integer totalFailedRulesCount)
Set the total |
Scan |
withTotalPassedRulesCount(Integer totalPassedRulesCount)
Set the total |
Scan |
withTotalRulesCount(Integer totalRulesCount)
Set the total |
Scan |
withTriggerType(ScanTriggerType triggerType)
Set the trigger |
Methods inherited from java.lang.Object
Constructor Details
ScanProperties
public ScanProperties()
Creates an instance of ScanProperties class.
Method Details
database
public String database()
Get the database property: The database name.
Returns:
endTime
public OffsetDateTime endTime()
Get the endTime property: Scan results are valid until end time (UTC).
Returns:
highSeverityFailedRulesCount
public Integer highSeverityFailedRulesCount()
Get the highSeverityFailedRulesCount property: The number of failed rules with high severity.
Returns:
isBaselineApplied
public Boolean isBaselineApplied()
Get the isBaselineApplied property: Baseline created for this database, and has one or more rules.
Returns:
lastScanTime
public OffsetDateTime lastScanTime()
Get the lastScanTime property: Last scan time.
Returns:
lowSeverityFailedRulesCount
public Integer lowSeverityFailedRulesCount()
Get the lowSeverityFailedRulesCount property: The number of failed rules with low severity.
Returns:
mediumSeverityFailedRulesCount
public Integer mediumSeverityFailedRulesCount()
Get the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.
Returns:
server
public String server()
Get the server property: The server name.
Returns:
sqlVersion
public String sqlVersion()
Get the sqlVersion property: The SQL version.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: The scan start time (UTC).
Returns:
state
public ScanState state()
Get the state property: The scan status.
Returns:
totalFailedRulesCount
public Integer totalFailedRulesCount()
Get the totalFailedRulesCount property: The number of total failed rules.
Returns:
totalPassedRulesCount
public Integer totalPassedRulesCount()
Get the totalPassedRulesCount property: The number of total passed rules.
Returns:
totalRulesCount
public Integer totalRulesCount()
Get the totalRulesCount property: The number of total rules assessed.
Returns:
triggerType
public ScanTriggerType triggerType()
Get the triggerType property: The scan trigger type.
Returns:
validate
public void validate()
Validates the instance.
withDatabase
public ScanProperties withDatabase(String database)
Set the database property: The database name.
Parameters:
Returns:
withEndTime
public ScanProperties withEndTime(OffsetDateTime endTime)
Set the endTime property: Scan results are valid until end time (UTC).
Parameters:
Returns:
withHighSeverityFailedRulesCount
public ScanProperties withHighSeverityFailedRulesCount(Integer highSeverityFailedRulesCount)
Set the highSeverityFailedRulesCount property: The number of failed rules with high severity.
Parameters:
Returns:
withIsBaselineApplied
public ScanProperties withIsBaselineApplied(Boolean isBaselineApplied)
Set the isBaselineApplied property: Baseline created for this database, and has one or more rules.
Parameters:
Returns:
withLastScanTime
public ScanProperties withLastScanTime(OffsetDateTime lastScanTime)
Set the lastScanTime property: Last scan time.
Parameters:
Returns:
withLowSeverityFailedRulesCount
public ScanProperties withLowSeverityFailedRulesCount(Integer lowSeverityFailedRulesCount)
Set the lowSeverityFailedRulesCount property: The number of failed rules with low severity.
Parameters:
Returns:
withMediumSeverityFailedRulesCount
public ScanProperties withMediumSeverityFailedRulesCount(Integer mediumSeverityFailedRulesCount)
Set the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.
Parameters:
Returns:
withServer
public ScanProperties withServer(String server)
Set the server property: The server name.
Parameters:
Returns:
withSqlVersion
public ScanProperties withSqlVersion(String sqlVersion)
Set the sqlVersion property: The SQL version.
Parameters:
Returns:
withStartTime
public ScanProperties withStartTime(OffsetDateTime startTime)
Set the startTime property: The scan start time (UTC).
Parameters:
Returns:
withState
public ScanProperties withState(ScanState state)
Set the state property: The scan status.
Parameters:
Returns:
withTotalFailedRulesCount
public ScanProperties withTotalFailedRulesCount(Integer totalFailedRulesCount)
Set the totalFailedRulesCount property: The number of total failed rules.
Parameters:
Returns:
withTotalPassedRulesCount
public ScanProperties withTotalPassedRulesCount(Integer totalPassedRulesCount)
Set the totalPassedRulesCount property: The number of total passed rules.
Parameters:
Returns:
withTotalRulesCount
public ScanProperties withTotalRulesCount(Integer totalRulesCount)
Set the totalRulesCount property: The number of total rules assessed.
Parameters:
Returns:
withTriggerType
public ScanProperties withTriggerType(ScanTriggerType triggerType)
Set the triggerType property: The scan trigger type.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for