public class AddWatermarkRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
appId
The ID of the application.
|
String |
fileUrl
The Object Storage Service (OSS) URL of the watermark file.
|
String |
name
The name of the watermark.
|
String |
type
The type of the watermark.
|
String |
watermarkConfig
The configurations such as the position and effect of the text watermark or image watermark.
|
| 构造器和说明 |
|---|
AddWatermarkRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AddWatermarkRequest |
build(Map<String,?> map) |
String |
getAppId() |
String |
getFileUrl() |
String |
getName() |
String |
getType() |
String |
getWatermarkConfig() |
AddWatermarkRequest |
setAppId(String appId) |
AddWatermarkRequest |
setFileUrl(String fileUrl) |
AddWatermarkRequest |
setName(String name) |
AddWatermarkRequest |
setType(String type) |
AddWatermarkRequest |
setWatermarkConfig(String watermarkConfig) |
@NameInMap(value="AppId") public String appId
The ID of the application. Default value: **app-1000000**. For more information, see [Overview](~~113600~~).
@NameInMap(value="FileUrl") public String fileUrl
The Object Storage Service (OSS) URL of the watermark file. This parameter is required if you add image watermarks.
@NameInMap(value="Name") public String name
The name of the watermark. The name can contain only letters and digits.
* The name can be up to 128 bytes in length.
* The value must be encoded in UTF-8.
@NameInMap(value="Type") public String type
The type of the watermark. Valid values:
* **Image** (default)
* **Text**
@NameInMap(value="WatermarkConfig") public String watermarkConfig
The configurations such as the position and effect of the text watermark or image watermark. The value must be a JSON string.
> The value of this parameter varies based on the watermark type. For more information about the data structure, see [WatermarkConfig](~~98618~~).
public static AddWatermarkRequest build(Map<String,?> map) throws Exception
Exceptionpublic AddWatermarkRequest setAppId(String appId)
public String getAppId()
public AddWatermarkRequest setFileUrl(String fileUrl)
public String getFileUrl()
public AddWatermarkRequest setName(String name)
public String getName()
public AddWatermarkRequest setType(String type)
public String getType()
public AddWatermarkRequest setWatermarkConfig(String watermarkConfig)
public String getWatermarkConfig()
Copyright © 2024. All rights reserved.