ServerVulnerabilityAssessmentInner Class

public final class ServerVulnerabilityAssessmentInner
extends ProxyResource

A server vulnerability assessment.

Constructor Summary

Constructor Description
ServerVulnerabilityAssessmentInner()

Creates an instance of ServerVulnerabilityAssessmentInner class.

Method Summary

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

Reads an instance of ServerVulnerabilityAssessmentInner 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.

VulnerabilityAssessmentRecurringScansProperties recurringScans()

Get the recurringScans property: The recurring scans settings.

String storageAccountAccessKey()

Get the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability assessment scan results.

String storageContainerPath()

Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g.

String storageContainerSasKey()

Get the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ServerVulnerabilityAssessmentInner withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans)

Set the recurringScans property: The recurring scans settings.

ServerVulnerabilityAssessmentInner withStorageAccountAccessKey(String storageAccountAccessKey)

Set the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability assessment scan results.

ServerVulnerabilityAssessmentInner withStorageContainerPath(String storageContainerPath)

Set the storageContainerPath property: A blob storage container path to hold the scan results (e.g.

ServerVulnerabilityAssessmentInner withStorageContainerSasKey(String storageContainerSasKey)

Set the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ServerVulnerabilityAssessmentInner

public ServerVulnerabilityAssessmentInner()

Creates an instance of ServerVulnerabilityAssessmentInner class.

Method Details

fromJson

public static ServerVulnerabilityAssessmentInner fromJson(JsonReader jsonReader)

Reads an instance of ServerVulnerabilityAssessmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerVulnerabilityAssessmentInner 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:

ServerVulnerabilityAssessmentInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ServerVulnerabilityAssessmentInner.name()

Returns:

the name value.

recurringScans

public VulnerabilityAssessmentRecurringScansProperties recurringScans()

Get the recurringScans property: The recurring scans settings.

Returns:

the recurringScans value.

storageAccountAccessKey

public String storageAccountAccessKey()

Get the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall.

Returns:

the storageAccountAccessKey value.

storageContainerPath

public String storageContainerPath()

Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).

Returns:

the storageContainerPath value.

storageContainerSasKey

public String storageContainerSasKey()

Get the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall.

Returns:

the storageContainerSasKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServerVulnerabilityAssessmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ServerVulnerabilityAssessmentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withRecurringScans

public ServerVulnerabilityAssessmentInner withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans)

Set the recurringScans property: The recurring scans settings.

Parameters:

recurringScans - the recurringScans value to set.

Returns:

the ServerVulnerabilityAssessmentInner object itself.

withStorageAccountAccessKey

public ServerVulnerabilityAssessmentInner withStorageAccountAccessKey(String storageAccountAccessKey)

Set the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall.

Parameters:

storageAccountAccessKey - the storageAccountAccessKey value to set.

Returns:

the ServerVulnerabilityAssessmentInner object itself.

withStorageContainerPath

public ServerVulnerabilityAssessmentInner withStorageContainerPath(String storageContainerPath)

Set the storageContainerPath property: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).

Parameters:

storageContainerPath - the storageContainerPath value to set.

Returns:

the ServerVulnerabilityAssessmentInner object itself.

withStorageContainerSasKey

public ServerVulnerabilityAssessmentInner withStorageContainerSasKey(String storageContainerSasKey)

Set the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall.

Parameters:

storageContainerSasKey - the storageContainerSasKey value to set.

Returns:

the ServerVulnerabilityAssessmentInner object itself.

Applies to