Share via


SqlVulnerabilityAssessmentScanRecordInner Class

public final class SqlVulnerabilityAssessmentScanRecordInner
extends ProxyResource

A vulnerability assessment scan record.

Constructor Summary

Constructor Description
SqlVulnerabilityAssessmentScanRecordInner()

Creates an instance of SqlVulnerabilityAssessmentScanRecordInner class.

Method Summary

Modifier and Type Method and Description
String database()

Get the database property: The database name.

OffsetDateTime endTime()

Get the endTime property: The scan end time (UTC).

List<SqlVulnerabilityAssessmentScanError> errors()

Get the errors property: The scan errors.

static SqlVulnerabilityAssessmentScanRecordInner fromJson(JsonReader jsonReader)

Reads an instance of SqlVulnerabilityAssessmentScanRecordInner from the JsonReader.

Integer highSeverityFailedRulesCount()

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

String id()

Get the id property: Fully qualified resource Id for the resource.

Boolean isBaselineApplied()

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

OffsetDateTime lastScanTime()

Get the lastScanTime property: The 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 name()

Get the name property: The name of the resource.

String scanId()

Get the scanId property: The scan ID.

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

VulnerabilityAssessmentScanState state()

Get the state property: The scan status.

SystemData systemData()

Get the systemData property: SystemData of SqlVulnerabilityAssessmentScanRecordResource.

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.

VulnerabilityAssessmentScanTriggerType triggerType()

Get the triggerType property: The scan trigger type.

String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SqlVulnerabilityAssessmentScanRecordInner

public SqlVulnerabilityAssessmentScanRecordInner()

Creates an instance of SqlVulnerabilityAssessmentScanRecordInner 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: The scan end time (UTC).

Returns:

the endTime value.

errors

public List<SqlVulnerabilityAssessmentScanError> errors()

Get the errors property: The scan errors.

Returns:

the errors value.

fromJson

public static SqlVulnerabilityAssessmentScanRecordInner fromJson(JsonReader jsonReader)

Reads an instance of SqlVulnerabilityAssessmentScanRecordInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlVulnerabilityAssessmentScanRecordInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

highSeverityFailedRulesCount

public Integer highSeverityFailedRulesCount()

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

Returns:

the highSeverityFailedRulesCount value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SqlVulnerabilityAssessmentScanRecordInner.id()

Returns:

the id 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: The 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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SqlVulnerabilityAssessmentScanRecordInner.name()

Returns:

the name value.

scanId

public String scanId()

Get the scanId property: The scan ID.

Returns:

the scanId 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 VulnerabilityAssessmentScanState state()

Get the state property: The scan status.

Returns:

the state value.

systemData

public SystemData systemData()

Get the systemData property: SystemData of SqlVulnerabilityAssessmentScanRecordResource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SqlVulnerabilityAssessmentScanRecordInner.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 VulnerabilityAssessmentScanTriggerType triggerType()

Get the triggerType property: The scan trigger type.

Returns:

the triggerType value.

type

public String type()

Get the type property: The type of the resource.

Overrides:

SqlVulnerabilityAssessmentScanRecordInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to