Share via


SqlVulnerabilityAssessmentInner Class

public final class SqlVulnerabilityAssessmentInner
extends ProxyResource

A SQL Vulnerability Assessment.

Constructor Summary

Constructor Description
SqlVulnerabilityAssessmentInner()

Creates an instance of SqlVulnerabilityAssessmentInner class.

Method Summary

Modifier and Type Method and Description
static SqlVulnerabilityAssessmentInner fromJson(JsonReader jsonReader)

Reads an instance of SqlVulnerabilityAssessmentInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

SqlVulnerabilityAssessmentState state()

Get the state property: Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.

SystemData systemData()

Get the systemData property: SystemData of SqlVulnerabilityAssessmentResource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SqlVulnerabilityAssessmentInner withState(SqlVulnerabilityAssessmentState state)

Set the state property: Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SqlVulnerabilityAssessmentInner

public SqlVulnerabilityAssessmentInner()

Creates an instance of SqlVulnerabilityAssessmentInner class.

Method Details

fromJson

public static SqlVulnerabilityAssessmentInner fromJson(JsonReader jsonReader)

Reads an instance of SqlVulnerabilityAssessmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

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

Overrides:

SqlVulnerabilityAssessmentInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SqlVulnerabilityAssessmentInner.name()

Returns:

the name value.

state

public SqlVulnerabilityAssessmentState state()

Get the state property: Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.

Returns:

the state value.

systemData

public SystemData systemData()

Get the systemData property: SystemData of SqlVulnerabilityAssessmentResource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SqlVulnerabilityAssessmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SqlVulnerabilityAssessmentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withState

public SqlVulnerabilityAssessmentInner withState(SqlVulnerabilityAssessmentState state)

Set the state property: Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.

Parameters:

state - the state value to set.

Returns:

the SqlVulnerabilityAssessmentInner object itself.

Applies to