ScanPropertiesV2 Class

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

Implements

public final class ScanPropertiesV2
implements JsonSerializable<ScanPropertiesV2>

A vulnerability assessment scan record properties.

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).

static ScanPropertiesV2 fromJson(JsonReader jsonReader)

Reads an instance of ScanPropertiesV2 from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

Methods inherited from java.lang.Object

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.

fromJson

public static ScanPropertiesV2 fromJson(JsonReader jsonReader)

Reads an instance of ScanPropertiesV2 from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScanPropertiesV2 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 ScanPropertiesV2.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

Applies to