AzureResourceDetails Class

public final class AzureResourceDetails
extends ResourceDetails

Details of the Azure resource that was assessed.

Constructor Summary

Constructor Description
AzureResourceDetails()

Creates an instance of AzureResourceDetails class.

Method Summary

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

Reads an instance of AzureResourceDetails from the JsonReader.

String id()

Get the id property: Azure resource Id of the assessed resource.

Source source()

Get the source property: The platform where the assessed resource resides.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from ResourceDetails

Methods inherited from java.lang.Object

Constructor Details

AzureResourceDetails

public AzureResourceDetails()

Creates an instance of AzureResourceDetails class.

Method Details

fromJson

public static AzureResourceDetails fromJson(JsonReader jsonReader)

Reads an instance of AzureResourceDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Azure resource Id of the assessed resource.

Returns:

the id value.

source

public Source source()

Get the source property: The platform where the assessed resource resides.

Overrides:

AzureResourceDetails.source()

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AzureResourceDetails.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AzureResourceDetails.validate()

Applies to