public static final class CreateFileDetectRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateFileDetectRequest |
build() |
CreateFileDetectRequest.Builder |
decompress(Boolean decompress)
Whether to decompress or not.
|
CreateFileDetectRequest.Builder |
decompressMaxFileCount(Integer decompressMaxFileCount)
The maximum number of files for decompression.
|
CreateFileDetectRequest.Builder |
decompressMaxLayer(Integer decompressMaxLayer)
The maximum level of decompression when dealing with nested compressed files with multiple levels.
|
CreateFileDetectRequest.Builder |
downloadUrl(String downloadUrl)
The URL that is used to download the file.
|
CreateFileDetectRequest.Builder |
hashKey(String hashKey)
The identifier of the file.
|
CreateFileDetectRequest.Builder |
ossKey(String ossKey)
The key of the file that is stored in the Object Storage Service (OSS) bucket.
|
CreateFileDetectRequest.Builder |
sourceIp(String sourceIp)
The source IP address of the request.
|
CreateFileDetectRequest.Builder |
type(Integer type)
The type of the file.
|
public CreateFileDetectRequest.Builder decompress(Boolean decompress)
Whether to decompress or not. Valid values:
false
public CreateFileDetectRequest.Builder decompressMaxFileCount(Integer decompressMaxFileCount)
The maximum number of files for decompression. The minimum value is 1, and the maximum value is 1000. If the decompression level exceeds the maximum, the decompression operation will be terminated, but the detection of decompressed files will not be affected.
example:100
public CreateFileDetectRequest.Builder decompressMaxLayer(Integer decompressMaxLayer)
The maximum level of decompression when dealing with nested compressed files with multiple levels. The minimum value is 1, and the maximum value is 5. If the decompression level exceeds the maximum, the decompression operation will be terminated, but the detection of decompressed files will not be affected.
example:1
public CreateFileDetectRequest.Builder downloadUrl(String downloadUrl)
The URL that is used to download the file. You can specify this parameter to trigger file detection without the need to upload the file in advance.
example:public CreateFileDetectRequest.Builder hashKey(String hashKey)
The identifier of the file. Only MD5 hash values are supported.
This parameter is required.
example:0a212417e65c26ff133cfff28f6c****
public CreateFileDetectRequest.Builder ossKey(String ossKey)
The key of the file that is stored in the Object Storage Service (OSS) bucket. You can call the CreateFileDetectUploadUrl operation to query the keys of files.
example:1/2022/06/23/15/41/16559701077444693a0c6-33b2-4cc2-a99f-9f38b8b8****
public CreateFileDetectRequest.Builder sourceIp(String sourceIp)
The source IP address of the request.
example:115.213.XX.XX
public CreateFileDetectRequest.Builder type(Integer type)
The type of the file. Valid values:
If you do not know the type of the file, set this parameter to 0.
This parameter is required.
example:0
public CreateFileDetectRequest build()
Copyright © 2026. All rights reserved.