public class MediaReplacementInfo extends AbstractModel
Constructor and Description |
---|
MediaReplacementInfo() |
MediaReplacementInfo(MediaReplacementInfo 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 |
getMaterialId()
Get 媒体 ID。
当媒体类型取值为 CMEMaterialId 时有效。
|
String |
getMediaType()
Get 替换的媒体类型,取值有:
CMEMaterialId:替换的媒体类型为媒体 ID;
ImageUrl:替换的媒体类型为图片 URL;
注:默认为 CMEMaterialId 。
|
String |
getMediaUrl()
Get 媒体 URL。
当媒体类型取值为 ImageUrl 时有效,
图片仅支持 jpg、png 格式,且大小不超过 2M 。
|
MediaPreprocessOperation |
getPreprocessOperation()
Get 预处理操作。
注:目前该功能暂不支持,请勿使用。
|
Float |
getStartTimeOffset()
Get 替换媒体选取的开始时间,单位为秒,默认为 0。
|
void |
setMaterialId(String MaterialId)
Set 媒体 ID。
当媒体类型取值为 CMEMaterialId 时有效。
|
void |
setMediaType(String MediaType)
Set 替换的媒体类型,取值有:
CMEMaterialId:替换的媒体类型为媒体 ID;
ImageUrl:替换的媒体类型为图片 URL;
注:默认为 CMEMaterialId 。
|
void |
setMediaUrl(String MediaUrl)
Set 媒体 URL。
当媒体类型取值为 ImageUrl 时有效,
图片仅支持 jpg、png 格式,且大小不超过 2M 。
|
void |
setPreprocessOperation(MediaPreprocessOperation PreprocessOperation)
Set 预处理操作。
注:目前该功能暂不支持,请勿使用。
|
void |
setStartTimeOffset(Float StartTimeOffset)
Set 替换媒体选取的开始时间,单位为秒,默认为 0。
|
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, toJsonString
public MediaReplacementInfo()
public MediaReplacementInfo(MediaReplacementInfo source)
public String getMediaType()
public void setMediaType(String MediaType)
MediaType
- 替换的媒体类型,取值有:
public String getMaterialId()
public void setMaterialId(String MaterialId)
MaterialId
- 媒体 ID。
当媒体类型取值为 CMEMaterialId 时有效。public String getMediaUrl()
public void setMediaUrl(String MediaUrl)
MediaUrl
- 媒体 URL。
当媒体类型取值为 ImageUrl 时有效,
图片仅支持 jpg、png 格式,且大小不超过 2M 。public Float getStartTimeOffset()
public void setStartTimeOffset(Float StartTimeOffset)
StartTimeOffset
- 替换媒体选取的开始时间,单位为秒,默认为 0。public MediaPreprocessOperation getPreprocessOperation()
public void setPreprocessOperation(MediaPreprocessOperation PreprocessOperation)
PreprocessOperation
- 预处理操作。
注:目前该功能暂不支持,请勿使用。Copyright © 2023. All rights reserved.