com.tencentcloudapi.mps.v20190612.models.ImageWatermarkTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.mps.v20190612.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ImageWatermarkTemplate extends AbstractModel {
/**
* Watermark image address.
*/
@SerializedName("ImageUrl")
@Expose
private String ImageUrl;
/**
* Watermark width. % and px formats are supported:
If the string ends in %, the `Width` of the watermark will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
If the string ends in px, the `Width` of the watermark will be in px; for example, `100px` means that `Width` is 100 px.
*/
@SerializedName("Width")
@Expose
private String Width;
/**
* Watermark height. % and px formats are supported:
If the string ends in %, the `Height` of the watermark will be the specified percentage of the video height. For example, `10%` means that `Height` is 10% of the video height;
If the string ends in px, the `Height` of the watermark will be in pixels. For example, `100px` means that `Height` is 100 pixels.
`0px` means that `Height` will be proportionally scaled according to the video width.
*/
@SerializedName("Height")
@Expose
private String Height;
/**
* Repeat type of an animated watermark. Valid values:
once: no longer appears after watermark playback ends.
repeat_last_frame: stays on the last frame after watermark playback ends.
repeat (default): repeats the playback until the video ends.
*/
@SerializedName("RepeatType")
@Expose
private String RepeatType;
/**
* Get Watermark image address.
* @return ImageUrl Watermark image address.
*/
public String getImageUrl() {
return this.ImageUrl;
}
/**
* Set Watermark image address.
* @param ImageUrl Watermark image address.
*/
public void setImageUrl(String ImageUrl) {
this.ImageUrl = ImageUrl;
}
/**
* Get Watermark width. % and px formats are supported:
If the string ends in %, the `Width` of the watermark will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
If the string ends in px, the `Width` of the watermark will be in px; for example, `100px` means that `Width` is 100 px.
* @return Width Watermark width. % and px formats are supported:
If the string ends in %, the `Width` of the watermark will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
If the string ends in px, the `Width` of the watermark will be in px; for example, `100px` means that `Width` is 100 px.
*/
public String getWidth() {
return this.Width;
}
/**
* Set Watermark width. % and px formats are supported:
If the string ends in %, the `Width` of the watermark will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
If the string ends in px, the `Width` of the watermark will be in px; for example, `100px` means that `Width` is 100 px.
* @param Width Watermark width. % and px formats are supported:
If the string ends in %, the `Width` of the watermark will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
If the string ends in px, the `Width` of the watermark will be in px; for example, `100px` means that `Width` is 100 px.
*/
public void setWidth(String Width) {
this.Width = Width;
}
/**
* Get Watermark height. % and px formats are supported:
If the string ends in %, the `Height` of the watermark will be the specified percentage of the video height. For example, `10%` means that `Height` is 10% of the video height;
If the string ends in px, the `Height` of the watermark will be in pixels. For example, `100px` means that `Height` is 100 pixels.
`0px` means that `Height` will be proportionally scaled according to the video width.
* @return Height Watermark height. % and px formats are supported:
If the string ends in %, the `Height` of the watermark will be the specified percentage of the video height. For example, `10%` means that `Height` is 10% of the video height;
If the string ends in px, the `Height` of the watermark will be in pixels. For example, `100px` means that `Height` is 100 pixels.
`0px` means that `Height` will be proportionally scaled according to the video width.
*/
public String getHeight() {
return this.Height;
}
/**
* Set Watermark height. % and px formats are supported:
If the string ends in %, the `Height` of the watermark will be the specified percentage of the video height. For example, `10%` means that `Height` is 10% of the video height;
If the string ends in px, the `Height` of the watermark will be in pixels. For example, `100px` means that `Height` is 100 pixels.
`0px` means that `Height` will be proportionally scaled according to the video width.
* @param Height Watermark height. % and px formats are supported:
If the string ends in %, the `Height` of the watermark will be the specified percentage of the video height. For example, `10%` means that `Height` is 10% of the video height;
If the string ends in px, the `Height` of the watermark will be in pixels. For example, `100px` means that `Height` is 100 pixels.
`0px` means that `Height` will be proportionally scaled according to the video width.
*/
public void setHeight(String Height) {
this.Height = Height;
}
/**
* Get Repeat type of an animated watermark. Valid values:
once: no longer appears after watermark playback ends.
repeat_last_frame: stays on the last frame after watermark playback ends.
repeat (default): repeats the playback until the video ends.
* @return RepeatType Repeat type of an animated watermark. Valid values:
once: no longer appears after watermark playback ends.
repeat_last_frame: stays on the last frame after watermark playback ends.
repeat (default): repeats the playback until the video ends.
*/
public String getRepeatType() {
return this.RepeatType;
}
/**
* Set Repeat type of an animated watermark. Valid values:
once: no longer appears after watermark playback ends.
repeat_last_frame: stays on the last frame after watermark playback ends.
repeat (default): repeats the playback until the video ends.
* @param RepeatType Repeat type of an animated watermark. Valid values:
once: no longer appears after watermark playback ends.
repeat_last_frame: stays on the last frame after watermark playback ends.
repeat (default): repeats the playback until the video ends.
*/
public void setRepeatType(String RepeatType) {
this.RepeatType = RepeatType;
}
public ImageWatermarkTemplate() {
}
/**
* 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.
*/
public ImageWatermarkTemplate(ImageWatermarkTemplate source) {
if (source.ImageUrl != null) {
this.ImageUrl = new String(source.ImageUrl);
}
if (source.Width != null) {
this.Width = new String(source.Width);
}
if (source.Height != null) {
this.Height = new String(source.Height);
}
if (source.RepeatType != null) {
this.RepeatType = new String(source.RepeatType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ImageUrl", this.ImageUrl);
this.setParamSimple(map, prefix + "Width", this.Width);
this.setParamSimple(map, prefix + "Height", this.Height);
this.setParamSimple(map, prefix + "RepeatType", this.RepeatType);
}
}