public class CompressionRule extends AbstractModel
| Constructor and Description | 
|---|
| CompressionRule() | 
| CompressionRule(CompressionRule source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String[] | getAlgorithms()Get File compression algorithm
gzip: specifies Gzip compression
brotli: specifies Brotli compression
Note: this field may return null, indicating that no valid values can be obtained. | 
| Boolean | getCompress()Get true: must be set as true, enables compression
Note: this field may return null, indicating that no valid values can be obtained. | 
| String[] | getFileExtensions()Get Compress according to the file suffix type
Such as: jpg, txt
Note: this field may return null, indicating that no valid values can be obtained. | 
| Long | getMaxLength()Get The maximum file size to trigger compression (in bytes)
The maximum value is 30 MB
Note: this field may return null, indicating that no valid values can be obtained. | 
| Long | getMinLength()Get The minimum file size to trigger compression (in bytes)
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | setAlgorithms(String[] Algorithms)Set File compression algorithm
gzip: specifies Gzip compression
brotli: specifies Brotli compression
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | setCompress(Boolean Compress)Set true: must be set as true, enables compression
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | setFileExtensions(String[] FileExtensions)Set Compress according to the file suffix type
Such as: jpg, txt
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | setMaxLength(Long MaxLength)Set The maximum file size to trigger compression (in bytes)
The maximum value is 30 MB
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | setMinLength(Long MinLength)Set The minimum file size to trigger compression (in bytes)
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic CompressionRule()
public CompressionRule(CompressionRule source)
public Boolean getCompress()
public void setCompress(Boolean Compress)
Compress - true: must be set as true, enables compression
Note: this field may return null, indicating that no valid values can be obtained.public String[] getFileExtensions()
public void setFileExtensions(String[] FileExtensions)
FileExtensions - Compress according to the file suffix type
Such as: jpg, txt
Note: this field may return null, indicating that no valid values can be obtained.public Long getMinLength()
public void setMinLength(Long MinLength)
MinLength - The minimum file size to trigger compression (in bytes)
Note: this field may return null, indicating that no valid values can be obtained.public Long getMaxLength()
public void setMaxLength(Long MaxLength)
MaxLength - The maximum file size to trigger compression (in bytes)
The maximum value is 30 MB
Note: this field may return null, indicating that no valid values can be obtained.public String[] getAlgorithms()
public void setAlgorithms(String[] Algorithms)
Algorithms - File compression algorithm
gzip: specifies Gzip compression
brotli: specifies Brotli compression
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.