All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.mps.v20190612.models.RawImageWatermarkInput Maven / Gradle / Ivy

/*
 * 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class RawImageWatermarkInput extends AbstractModel{

    /**
    * Input content of watermark image. JPEG and PNG images are supported.
    */
    @SerializedName("ImageContent")
    @Expose
    private MediaInputInfo 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 px; for example, `100px` means that `Width` is 100 px.
  • 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.
  • 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; /** * Get Input content of watermark image. JPEG and PNG images are supported. * @return ImageContent Input content of watermark image. JPEG and PNG images are supported. */ public MediaInputInfo getImageContent() { return this.ImageContent; } /** * Set Input content of watermark image. JPEG and PNG images are supported. * @param ImageContent Input content of watermark image. JPEG and PNG images are supported. */ public void setImageContent(MediaInputInfo 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 px; for example, `100px` means that `Width` is 100 px.
  • 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 px; for example, `100px` means that `Width` is 100 px.
  • 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 px; for example, `100px` means that `Width` is 100 px.
  • 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 px; for example, `100px` means that `Width` is 100 px.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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; } public RawImageWatermarkInput() { } /** * 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 RawImageWatermarkInput(RawImageWatermarkInput source) { if (source.ImageContent != null) { this.ImageContent = new MediaInputInfo(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); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamObj(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); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy