ScanProperties Class

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

public final class ScanProperties

A vulnerability assessment scan record properties.

Constructor Summary

Constructor Description
ScanProperties()

Creates an instance of ScanProperties class.

Method Summary

Modifier and Type Method and Description
String database()

Get the database property: The database name.

OffsetDateTime endTime()

Get the endTime property: Scan results are valid until end time (UTC).

Integer highSeverityFailedRulesCount()

Get the highSeverityFailedRulesCount property: The number of failed rules with high severity.

Boolean isBaselineApplied()

Get the isBaselineApplied property: Baseline created for this database, and has one or more rules.

OffsetDateTime lastScanTime()

Get the lastScanTime property: Last scan time.

Integer lowSeverityFailedRulesCount()

Get the lowSeverityFailedRulesCount property: The number of failed rules with low severity.

Integer mediumSeverityFailedRulesCount()

Get the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.

String server()

Get the server property: The server name.

String sqlVersion()

Get the sqlVersion property: The SQL version.

OffsetDateTime startTime()

Get the startTime property: The scan start time (UTC).

ScanState state()

Get the state property: The scan status.

Integer totalFailedRulesCount()

Get the totalFailedRulesCount property: The number of total failed rules.

Integer totalPassedRulesCount()

Get the totalPassedRulesCount property: The number of total passed rules.

Integer totalRulesCount()

Get the totalRulesCount property: The number of total rules assessed.

ScanTriggerType triggerType()

Get the triggerType property: The scan trigger type.

void validate()

Validates the instance.

ScanProperties withDatabase(String database)

Set the database property: The database name.

ScanProperties withEndTime(OffsetDateTime endTime)

Set the endTime property: Scan results are valid until end time (UTC).

ScanProperties withHighSeverityFailedRulesCount(Integer highSeverityFailedRulesCount)

Set the highSeverityFailedRulesCount property: The number of failed rules with high severity.

ScanProperties withIsBaselineApplied(Boolean isBaselineApplied)

Set the isBaselineApplied property: Baseline created for this database, and has one or more rules.

ScanProperties withLastScanTime(OffsetDateTime lastScanTime)

Set the lastScanTime property: Last scan time.

ScanProperties withLowSeverityFailedRulesCount(Integer lowSeverityFailedRulesCount)

Set the lowSeverityFailedRulesCount property: The number of failed rules with low severity.

ScanProperties withMediumSeverityFailedRulesCount(Integer mediumSeverityFailedRulesCount)

Set the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.

ScanProperties withServer(String server)

Set the server property: The server name.

ScanProperties withSqlVersion(String sqlVersion)

Set the sqlVersion property: The SQL version.

ScanProperties withStartTime(OffsetDateTime startTime)

Set the startTime property: The scan start time (UTC).

ScanProperties withState(ScanState state)

Set the state property: The scan status.

ScanProperties withTotalFailedRulesCount(Integer totalFailedRulesCount)

Set the totalFailedRulesCount property: The number of total failed rules.

ScanProperties withTotalPassedRulesCount(Integer totalPassedRulesCount)

Set the totalPassedRulesCount property: The number of total passed rules.

ScanProperties withTotalRulesCount(Integer totalRulesCount)

Set the totalRulesCount property: The number of total rules assessed.

ScanProperties withTriggerType(ScanTriggerType triggerType)

Set the triggerType property: The scan trigger type.

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:

the database value.

endTime

public OffsetDateTime endTime()

Get the endTime property: Scan results are valid until end time (UTC).

Returns:

the endTime value.

highSeverityFailedRulesCount

public Integer highSeverityFailedRulesCount()

Get the highSeverityFailedRulesCount property: The number of failed rules with high severity.

Returns:

the highSeverityFailedRulesCount value.

isBaselineApplied

public Boolean isBaselineApplied()

Get the isBaselineApplied property: Baseline created for this database, and has one or more rules.

Returns:

the isBaselineApplied value.

lastScanTime

public OffsetDateTime lastScanTime()

Get the lastScanTime property: Last scan time.

Returns:

the lastScanTime value.

lowSeverityFailedRulesCount

public Integer lowSeverityFailedRulesCount()

Get the lowSeverityFailedRulesCount property: The number of failed rules with low severity.

Returns:

the lowSeverityFailedRulesCount value.

mediumSeverityFailedRulesCount

public Integer mediumSeverityFailedRulesCount()

Get the mediumSeverityFailedRulesCount property: The number of failed rules with medium severity.

Returns:

the mediumSeverityFailedRulesCount value.

server

public String server()

Get the server property: The server name.

Returns:

the server value.

sqlVersion

public String sqlVersion()

Get the sqlVersion property: The SQL version.

Returns:

the sqlVersion value.

startTime

public OffsetDateTime startTime()

Get the startTime property: The scan start time (UTC).

Returns:

the startTime value.

state

public ScanState state()

Get the state property: The scan status.

Returns:

the state value.

totalFailedRulesCount

public Integer totalFailedRulesCount()

Get the totalFailedRulesCount property: The number of total failed rules.

Returns:

the totalFailedRulesCount value.

totalPassedRulesCount

public Integer totalPassedRulesCount()

Get the totalPassedRulesCount property: The number of total passed rules.

Returns:

the totalPassedRulesCount value.

totalRulesCount

public Integer totalRulesCount()

Get the totalRulesCount property: The number of total rules assessed.

Returns:

the totalRulesCount value.

triggerType

public ScanTriggerType triggerType()

Get the triggerType property: The scan trigger type.

Returns:

the triggerType value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

withLastScanTime

public ScanProperties withLastScanTime(OffsetDateTime lastScanTime)

Set the lastScanTime property: Last scan time.

Parameters:

lastScanTime - the lastScanTime value to set.

Returns:

the ScanProperties object itself.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Applies to