Class Compression
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220901.models.Compression
-
public class Compression extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description Compression()Compression(Compression 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAlgorithms()Get 支持的压缩算法列表,取值有: brotli:brotli算法; gzip:gzip算法。 注意:此字段可能返回 null,表示取不到有效值。StringgetSwitch()Get 智能压缩配置开关,取值有: on:开启; off:关闭。voidsetAlgorithms(String[] Algorithms)Set 支持的压缩算法列表,取值有: brotli:brotli算法; gzip:gzip算法。 注意:此字段可能返回 null,表示取不到有效值。voidsetSwitch(String Switch)Set 智能压缩配置开关,取值有: on:开启; off:关闭。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
Compression
public Compression()
-
Compression
public Compression(Compression 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.
-
-
Method Detail
-
getSwitch
public String getSwitch()
Get 智能压缩配置开关,取值有:- on:开启;
- off:关闭。
- Returns:
- Switch 智能压缩配置开关,取值有:
- on:开启;
- off:关闭。
-
setSwitch
public void setSwitch(String Switch)
Set 智能压缩配置开关,取值有:- on:开启;
- off:关闭。
- Parameters:
Switch- 智能压缩配置开关,取值有:- on:开启;
- off:关闭。
-
getAlgorithms
public String[] getAlgorithms()
Get 支持的压缩算法列表,取值有:- brotli:brotli算法;
- gzip:gzip算法。
注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Algorithms 支持的压缩算法列表,取值有:
- brotli:brotli算法;
- gzip:gzip算法。
注意:此字段可能返回 null,表示取不到有效值。
-
setAlgorithms
public void setAlgorithms(String[] Algorithms)
Set 支持的压缩算法列表,取值有:- brotli:brotli算法;
- gzip:gzip算法。
注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Algorithms- 支持的压缩算法列表,取值有:- brotli:brotli算法;
- gzip:gzip算法。
注意:此字段可能返回 null,表示取不到有效值。
-
-