ServerVulnerabilityProperties Class

public final class ServerVulnerabilityProperties
extends AdditionalData

Additional context fields for server vulnerability assessment.

Method Summary

Modifier and Type Method and Description
AssessedResourceType assessedResourceType()

Get the assessedResourceType property: Sub-assessment resource type.

List<Cve> cve()

Get the cve property: List of CVEs.

Map<String,Cvss> cvss()

Get the cvss property: Dictionary from cvss version to cvss details object.

static ServerVulnerabilityProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerVulnerabilityProperties from the JsonReader.

Boolean patchable()

Get the patchable property: Indicates whether a patch is available or not.

OffsetDateTime publishedTime()

Get the publishedTime property: Published time.

String threat()

Get the threat property: Threat name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Vulnerability Type.

void validate()

Validates the instance.

List<VendorReference> vendorReferences()

Get the vendorReferences property: The vendorReferences property.

Methods inherited from AdditionalData

Methods inherited from java.lang.Object

Method Details

assessedResourceType

public AssessedResourceType assessedResourceType()

Get the assessedResourceType property: Sub-assessment resource type.

Overrides:

ServerVulnerabilityProperties.assessedResourceType()

Returns:

the assessedResourceType value.

cve

public List<Cve> cve()

Get the cve property: List of CVEs.

Returns:

the cve value.

cvss

public Map<String,Cvss> cvss()

Get the cvss property: Dictionary from cvss version to cvss details object.

Returns:

the cvss value.

fromJson

public static ServerVulnerabilityProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerVulnerabilityProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

patchable

public Boolean patchable()

Get the patchable property: Indicates whether a patch is available or not.

Returns:

the patchable value.

publishedTime

public OffsetDateTime publishedTime()

Get the publishedTime property: Published time.

Returns:

the publishedTime value.

threat

public String threat()

Get the threat property: Threat name.

Returns:

the threat value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServerVulnerabilityProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ServerVulnerabilityProperties.validate()

vendorReferences

public List<VendorReference> vendorReferences()

Get the vendorReferences property: The vendorReferences property.

Returns:

the vendorReferences value.

Applies to