com.tencentcloudapi.vod.v20180717.models.ImageWatermarkInput 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.vod.v20180717.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 ImageWatermarkInput extends AbstractModel {
/**
* The [Base64](https://tools.ietf.org/html/rfc4648) encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
*/
@SerializedName("ImageContent")
@Expose
private String ImageContent;
/**
* 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 pixels. For example, `100px` means that `Width` is 100 pixels. Value range: [8, 4096].
Default value: 10%.
*/
@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 px; for example, `100px` means that `Height` is 100 px. Valid values: 0 or [8,4096].
Default value: 0 px, which means that `Height` will be proportionally scaled according to the aspect ratio of the original watermark image.
*/
@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;
/**
*
*/
@SerializedName("Transparency")
@Expose
private Long Transparency;
/**
* Get The [Base64](https://tools.ietf.org/html/rfc4648) encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
* @return ImageContent The [Base64](https://tools.ietf.org/html/rfc4648) encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
*/
public String getImageContent() {
return this.ImageContent;
}
/**
* Set The [Base64](https://tools.ietf.org/html/rfc4648) encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
* @param ImageContent The [Base64](https://tools.ietf.org/html/rfc4648) encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
*/
public void setImageContent(String ImageContent) {
this.ImageContent = ImageContent;
}
/**
* 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 pixels. For example, `100px` means that `Width` is 100 pixels. Value range: [8, 4096].
Default value: 10%.
* @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 pixels. For example, `100px` means that `Width` is 100 pixels. Value range: [8, 4096].
Default value: 10%.
*/
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 pixels. For example, `100px` means that `Width` is 100 pixels. Value range: [8, 4096].
Default value: 10%.
* @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 pixels. For example, `100px` means that `Width` is 100 pixels. Value range: [8, 4096].
Default value: 10%.
*/
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 px; for example, `100px` means that `Height` is 100 px. Valid values: 0 or [8,4096].
Default value: 0 px, which means that `Height` will be proportionally scaled according to the aspect ratio of the original watermark image.
* @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 px; for example, `100px` means that `Height` is 100 px. Valid values: 0 or [8,4096].
Default value: 0 px, which means that `Height` will be proportionally scaled according to the aspect ratio of the original watermark image.
*/
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 px; for example, `100px` means that `Height` is 100 px. Valid values: 0 or [8,4096].
Default value: 0 px, which means that `Height` will be proportionally scaled according to the aspect ratio of the original watermark image.
* @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 px; for example, `100px` means that `Height` is 100 px. Valid values: 0 or [8,4096].
Default value: 0 px, which means that `Height` will be proportionally scaled according to the aspect ratio of the original watermark image.
*/
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;
}
/**
* Get
* @return Transparency
*/
public Long getTransparency() {
return this.Transparency;
}
/**
* Set
* @param Transparency
*/
public void setTransparency(Long Transparency) {
this.Transparency = Transparency;
}
public ImageWatermarkInput() {
}
/**
* 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 ImageWatermarkInput(ImageWatermarkInput source) {
if (source.ImageContent != null) {
this.ImageContent = new String(source.ImageContent);
}
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);
}
if (source.Transparency != null) {
this.Transparency = new Long(source.Transparency);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ImageContent", this.ImageContent);
this.setParamSimple(map, prefix + "Width", this.Width);
this.setParamSimple(map, prefix + "Height", this.Height);
this.setParamSimple(map, prefix + "RepeatType", this.RepeatType);
this.setParamSimple(map, prefix + "Transparency", this.Transparency);
}
}