MalwareScanningProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.MalwareScanningProperties

Implements

public final class MalwareScanningProperties
implements JsonSerializable<MalwareScanningProperties>

Properties of Malware Scanning.

Constructor Summary

Constructor Description
MalwareScanningProperties()

Creates an instance of MalwareScanningProperties class.

Method Summary

Modifier and Type Method and Description
AutomatedResponseType automatedResponse()

Get the automatedResponse property: Optional.

BlobScanResultsOptions blobScanResultsOptions()

Get the blobScanResultsOptions property: Optional.

static MalwareScanningProperties fromJson(JsonReader jsonReader)

Reads an instance of MalwareScanningProperties from the JsonReader.

OnUploadProperties onUpload()

Get the onUpload property: Properties of On Upload malware scanning.

OperationStatus operationStatus()

Get the operationStatus property: Upon failure or partial success.

String scanResultsEventGridTopicResourceId()

Get the scanResultsEventGridTopicResourceId property: Optional.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MalwareScanningProperties withAutomatedResponse(AutomatedResponseType automatedResponse)

Set the automatedResponse property: Optional.

MalwareScanningProperties withBlobScanResultsOptions(BlobScanResultsOptions blobScanResultsOptions)

Set the blobScanResultsOptions property: Optional.

MalwareScanningProperties withOnUpload(OnUploadProperties onUpload)

Set the onUpload property: Properties of On Upload malware scanning.

MalwareScanningProperties withScanResultsEventGridTopicResourceId(String scanResultsEventGridTopicResourceId)

Set the scanResultsEventGridTopicResourceId property: Optional.

Methods inherited from java.lang.Object

Constructor Details

MalwareScanningProperties

public MalwareScanningProperties()

Creates an instance of MalwareScanningProperties class.

Method Details

automatedResponse

public AutomatedResponseType automatedResponse()

Get the automatedResponse property: Optional. Specifies the automated response action to take when malware is detected.

Returns:

the automatedResponse value.

blobScanResultsOptions

public BlobScanResultsOptions blobScanResultsOptions()

Get the blobScanResultsOptions property: Optional. Write scan result on BlobIndexTags by default.

Returns:

the blobScanResultsOptions value.

fromJson

public static MalwareScanningProperties fromJson(JsonReader jsonReader)

Reads an instance of MalwareScanningProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

onUpload

public OnUploadProperties onUpload()

Get the onUpload property: Properties of On Upload malware scanning.

Returns:

the onUpload value.

operationStatus

public OperationStatus operationStatus()

Get the operationStatus property: Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.

Returns:

the operationStatus value.

scanResultsEventGridTopicResourceId

public String scanResultsEventGridTopicResourceId()

Get the scanResultsEventGridTopicResourceId property: Optional. Resource id of an Event Grid Topic to send scan results to.

Returns:

the scanResultsEventGridTopicResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAutomatedResponse

public MalwareScanningProperties withAutomatedResponse(AutomatedResponseType automatedResponse)

Set the automatedResponse property: Optional. Specifies the automated response action to take when malware is detected.

Parameters:

automatedResponse - the automatedResponse value to set.

Returns:

the MalwareScanningProperties object itself.

withBlobScanResultsOptions

public MalwareScanningProperties withBlobScanResultsOptions(BlobScanResultsOptions blobScanResultsOptions)

Set the blobScanResultsOptions property: Optional. Write scan result on BlobIndexTags by default.

Parameters:

blobScanResultsOptions - the blobScanResultsOptions value to set.

Returns:

the MalwareScanningProperties object itself.

withOnUpload

public MalwareScanningProperties withOnUpload(OnUploadProperties onUpload)

Set the onUpload property: Properties of On Upload malware scanning.

Parameters:

onUpload - the onUpload value to set.

Returns:

the MalwareScanningProperties object itself.

withScanResultsEventGridTopicResourceId

public MalwareScanningProperties withScanResultsEventGridTopicResourceId(String scanResultsEventGridTopicResourceId)

Set the scanResultsEventGridTopicResourceId property: Optional. Resource id of an Event Grid Topic to send scan results to.

Parameters:

scanResultsEventGridTopicResourceId - the scanResultsEventGridTopicResourceId value to set.

Returns:

the MalwareScanningProperties object itself.

Applies to