Class PostMaxSize
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220901.models.PostMaxSize
-
public class PostMaxSize extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description PostMaxSize()PostMaxSize(PostMaxSize 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 LonggetMaxSize()Get 最大限制,取值在1MB和500MB之间。单位字节。 注意:此字段可能返回 null,表示取不到有效值。StringgetSwitch()Get 是否开启 POST 请求上传文件限制,平台默认为限制为32MB,取值有: on:开启限制; off:关闭限制。voidsetMaxSize(Long MaxSize)Set 最大限制,取值在1MB和500MB之间。单位字节。 注意:此字段可能返回 null,表示取不到有效值。voidsetSwitch(String Switch)Set 是否开启 POST 请求上传文件限制,平台默认为限制为32MB,取值有: 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
-
PostMaxSize
public PostMaxSize()
-
PostMaxSize
public PostMaxSize(PostMaxSize 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 是否开启 POST 请求上传文件限制,平台默认为限制为32MB,取值有:- on:开启限制;
- off:关闭限制。
- Returns:
- Switch 是否开启 POST 请求上传文件限制,平台默认为限制为32MB,取值有:
- on:开启限制;
- off:关闭限制。
-
setSwitch
public void setSwitch(String Switch)
Set 是否开启 POST 请求上传文件限制,平台默认为限制为32MB,取值有:- on:开启限制;
- off:关闭限制。
- Parameters:
Switch- 是否开启 POST 请求上传文件限制,平台默认为限制为32MB,取值有:- on:开启限制;
- off:关闭限制。
-
getMaxSize
public Long getMaxSize()
Get 最大限制,取值在1MB和500MB之间。单位字节。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- MaxSize 最大限制,取值在1MB和500MB之间。单位字节。 注意:此字段可能返回 null,表示取不到有效值。
-
setMaxSize
public void setMaxSize(Long MaxSize)
Set 最大限制,取值在1MB和500MB之间。单位字节。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
MaxSize- 最大限制,取值在1MB和500MB之间。单位字节。 注意:此字段可能返回 null,表示取不到有效值。
-
-