public class FilesUploadsResponse extends SSEResponseModel
SSEResponseModel.SSE
header, skipSign
Constructor and Description |
---|
FilesUploadsResponse() |
FilesUploadsResponse(FilesUploadsResponse 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 |
---|---|
Long |
getBytes()
Get 文件大小,单位为字节。
|
Long |
getCreatedAt()
Get 文件创建时的 Unix 时间戳(秒)。
|
String |
getFilename()
Get 文件名。
|
String |
getID()
Get 文件标识符,可在各个API中引用。
|
String |
getObject()
Get 对象类型,始终为 file。
|
String |
getPurpose()
Get 上传文件的用途。
|
String |
getRequestId()
Get 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
void |
setBytes(Long Bytes)
Set 文件大小,单位为字节。
|
void |
setCreatedAt(Long CreatedAt)
Set 文件创建时的 Unix 时间戳(秒)。
|
void |
setFilename(String Filename)
Set 文件名。
|
void |
setID(String ID)
Set 文件标识符,可在各个API中引用。
|
void |
setObject(String Object)
Set 对象类型,始终为 file。
|
void |
setPurpose(String Purpose)
Set 上传文件的用途。
|
void |
setRequestId(String RequestId)
Set 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
close, isStream, iterator, setResponse, setToken
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public FilesUploadsResponse()
public FilesUploadsResponse(FilesUploadsResponse source)
public String getID()
public void setID(String ID)
ID
- 文件标识符,可在各个API中引用。public String getObject()
public void setObject(String Object)
Object
- 对象类型,始终为 file。public Long getBytes()
public void setBytes(Long Bytes)
Bytes
- 文件大小,单位为字节。public Long getCreatedAt()
public void setCreatedAt(Long CreatedAt)
CreatedAt
- 文件创建时的 Unix 时间戳(秒)。public String getFilename()
public void setFilename(String Filename)
Filename
- 文件名。public String getPurpose()
public void setPurpose(String Purpose)
Purpose
- 上传文件的用途。public String getRequestId()
getRequestId
in class SSEResponseModel
public void setRequestId(String RequestId)
setRequestId
in class SSEResponseModel
RequestId
- 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。Copyright © 2024. All rights reserved.