OnUploadProperties Class

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

Implements

public final class OnUploadProperties
implements JsonSerializable<OnUploadProperties>

Properties of On Upload malware scanning.

Constructor Summary

Constructor Description
OnUploadProperties()

Creates an instance of OnUploadProperties class.

Method Summary

Modifier and Type Method and Description
Integer capGBPerMonth()

Get the capGBPerMonth property: Defines the max GB to be scanned per Month.

OnUploadFilters filters()

Get the filters property: Optional.

static OnUploadProperties fromJson(JsonReader jsonReader)

Reads an instance of OnUploadProperties from the JsonReader.

Boolean isEnabled()

Get the isEnabled property: Indicates whether On Upload malware scanning should be enabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OnUploadProperties withCapGBPerMonth(Integer capGBPerMonth)

Set the capGBPerMonth property: Defines the max GB to be scanned per Month.

OnUploadProperties withFilters(OnUploadFilters filters)

Set the filters property: Optional.

OnUploadProperties withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates whether On Upload malware scanning should be enabled.

Methods inherited from java.lang.Object

Constructor Details

OnUploadProperties

public OnUploadProperties()

Creates an instance of OnUploadProperties class.

Method Details

capGBPerMonth

public Integer capGBPerMonth()

Get the capGBPerMonth property: Defines the max GB to be scanned per Month. Set to -1 if no capping is needed. If not specified, the default value is -1.

Returns:

the capGBPerMonth value.

filters

public OnUploadFilters filters()

Get the filters property: Optional. Determine which blobs get scanned by On Upload malware scanning. An Or operation is performed between each filter type.

Returns:

the filters value.

fromJson

public static OnUploadProperties fromJson(JsonReader jsonReader)

Reads an instance of OnUploadProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Indicates whether On Upload malware scanning should be enabled.

Returns:

the isEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapGBPerMonth

public OnUploadProperties withCapGBPerMonth(Integer capGBPerMonth)

Set the capGBPerMonth property: Defines the max GB to be scanned per Month. Set to -1 if no capping is needed. If not specified, the default value is -1.

Parameters:

capGBPerMonth - the capGBPerMonth value to set.

Returns:

the OnUploadProperties object itself.

withFilters

public OnUploadProperties withFilters(OnUploadFilters filters)

Set the filters property: Optional. Determine which blobs get scanned by On Upload malware scanning. An Or operation is performed between each filter type.

Parameters:

filters - the filters value to set.

Returns:

the OnUploadProperties object itself.

withIsEnabled

public OnUploadProperties withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates whether On Upload malware scanning should be enabled.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the OnUploadProperties object itself.

Applies to