OnUploadFilters Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. OnUploadFilters
- com.
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 On |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Object |
excludeBlobsLargerThan()
Get the exclude |
| List<String> |
excludeBlobsWithPrefix()
Get the exclude |
| List<String> |
excludeBlobsWithSuffix()
Get the exclude |
|
static
On |
fromJson(JsonReader jsonReader)
Reads an instance of On |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
On |
withExcludeBlobsLargerThan(Object excludeBlobsLargerThan)
Set the exclude |
|
On |
withExcludeBlobsWithPrefix(List<String> excludeBlobsWithPrefix)
Set the exclude |
|
On |
withExcludeBlobsWithSuffix(List<String> excludeBlobsWithSuffix)
Set the exclude |
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:
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:
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:
fromJson
public static OnUploadFilters fromJson(JsonReader jsonReader)
Reads an instance of OnUploadFilters from the JsonReader.
Parameters:
Returns:
Throws:
toJson
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:
Returns:
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:
Returns:
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:
Returns: