OnUploadFilters Class

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

Implements

public final class OnUploadFilters
implements JsonSerializable<OnUploadFilters>

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

Constructor Summary

Constructor Description
OnUploadFilters()

Creates an instance of OnUploadFilters class.

Method Summary

Modifier and Type Method and Description
Object excludeBlobsLargerThan()

Get the excludeBlobsLargerThan property: Optional.

List<String> excludeBlobsWithPrefix()

Get the excludeBlobsWithPrefix property: Optional.

List<String> excludeBlobsWithSuffix()

Get the excludeBlobsWithSuffix property: Optional.

static OnUploadFilters fromJson(JsonReader jsonReader)

Reads an instance of OnUploadFilters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OnUploadFilters withExcludeBlobsLargerThan(Object excludeBlobsLargerThan)

Set the excludeBlobsLargerThan property: Optional.

OnUploadFilters withExcludeBlobsWithPrefix(List<String> excludeBlobsWithPrefix)

Set the excludeBlobsWithPrefix property: Optional.

OnUploadFilters withExcludeBlobsWithSuffix(List<String> excludeBlobsWithSuffix)

Set the excludeBlobsWithSuffix property: Optional.

Methods inherited from java.lang.Object

Constructor Details

OnUploadFilters

public OnUploadFilters()

Creates an instance of OnUploadFilters class.

Method Details

excludeBlobsLargerThan

public Object excludeBlobsLargerThan()

Get the excludeBlobsLargerThan property: Optional. Specifies the maximum size in bytes for blobs to be scanned. This parameter accepts a single positive integer value. Blobs larger than this value will be excluded from scanning.

Returns:

the excludeBlobsLargerThan value.

excludeBlobsWithPrefix

public List<String> excludeBlobsWithPrefix()

Get the excludeBlobsWithPrefix property: Optional. A list of prefixes to exclude from on-upload malware scanning. Format: `container-name/blob-name` (start with the container name; do not include the storage account name). Exclude entire containers: Use prefix of container names you want to exclude without a trailing `/`. Exclude a single container: Add a trailing slash `/` after the container name to avoid excluding other containers with similar prefixes.

Returns:

the excludeBlobsWithPrefix value.

excludeBlobsWithSuffix

public List<String> excludeBlobsWithSuffix()

Get the excludeBlobsWithSuffix property: Optional. A list of suffixes to exclude from on-upload malware scanning. Suffixes match only the end of blob names, and should be used for file extensions or blob name endings only.

Returns:

the excludeBlobsWithSuffix value.

fromJson

public static OnUploadFilters fromJson(JsonReader jsonReader)

Reads an instance of OnUploadFilters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExcludeBlobsLargerThan

public OnUploadFilters withExcludeBlobsLargerThan(Object excludeBlobsLargerThan)

Set the excludeBlobsLargerThan property: Optional. Specifies the maximum size in bytes for blobs to be scanned. This parameter accepts a single positive integer value. Blobs larger than this value will be excluded from scanning.

Parameters:

excludeBlobsLargerThan - the excludeBlobsLargerThan value to set.

Returns:

the OnUploadFilters object itself.

withExcludeBlobsWithPrefix

public OnUploadFilters withExcludeBlobsWithPrefix(List<String> excludeBlobsWithPrefix)

Set the excludeBlobsWithPrefix property: Optional. A list of prefixes to exclude from on-upload malware scanning. Format: `container-name/blob-name` (start with the container name; do not include the storage account name). Exclude entire containers: Use prefix of container names you want to exclude without a trailing `/`. Exclude a single container: Add a trailing slash `/` after the container name to avoid excluding other containers with similar prefixes.

Parameters:

excludeBlobsWithPrefix - the excludeBlobsWithPrefix value to set.

Returns:

the OnUploadFilters object itself.

withExcludeBlobsWithSuffix

public OnUploadFilters withExcludeBlobsWithSuffix(List<String> excludeBlobsWithSuffix)

Set the excludeBlobsWithSuffix property: Optional. A list of suffixes to exclude from on-upload malware scanning. Suffixes match only the end of blob names, and should be used for file extensions or blob name endings only.

Parameters:

excludeBlobsWithSuffix - the excludeBlobsWithSuffix value to set.

Returns:

the OnUploadFilters object itself.

Applies to