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

com.tencentcloudapi.vod.v20180717.models.Canvas Maven / Gradle / Ivy

There is a newer version: 3.1.1054
Show newest version
/*
 * 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class Canvas extends AbstractModel{

    /**
    * 背景颜色,取值有:
  • Black:黑色背景
  • White:白色背景
  • 默认值:Black。 */ @SerializedName("Color") @Expose private String Color; /** * 画布宽度,即输出视频的宽度,取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频宽度一致。 */ @SerializedName("Width") @Expose private Long Width; /** * 画布高度,即输出视频的高度(或长边),取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频高度一致。 */ @SerializedName("Height") @Expose private Long Height; /** * Get 背景颜色,取值有:
  • Black:黑色背景
  • White:白色背景
  • 默认值:Black。 * @return Color 背景颜色,取值有:
  • Black:黑色背景
  • White:白色背景
  • 默认值:Black。 */ public String getColor() { return this.Color; } /** * Set 背景颜色,取值有:
  • Black:黑色背景
  • White:白色背景
  • 默认值:Black。 * @param Color 背景颜色,取值有:
  • Black:黑色背景
  • White:白色背景
  • 默认值:Black。 */ public void setColor(String Color) { this.Color = Color; } /** * Get 画布宽度,即输出视频的宽度,取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频宽度一致。 * @return Width 画布宽度,即输出视频的宽度,取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频宽度一致。 */ public Long getWidth() { return this.Width; } /** * Set 画布宽度,即输出视频的宽度,取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频宽度一致。 * @param Width 画布宽度,即输出视频的宽度,取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频宽度一致。 */ public void setWidth(Long Width) { this.Width = Width; } /** * Get 画布高度,即输出视频的高度(或长边),取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频高度一致。 * @return Height 画布高度,即输出视频的高度(或长边),取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频高度一致。 */ public Long getHeight() { return this.Height; } /** * Set 画布高度,即输出视频的高度(或长边),取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频高度一致。 * @param Height 画布高度,即输出视频的高度(或长边),取值范围:0~ 4096,单位:px。 默认值:0,表示和第一个视频轨的第一个视频片段的视频高度一致。 */ public void setHeight(Long Height) { this.Height = Height; } public Canvas() { } /** * 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 Canvas(Canvas source) { if (source.Color != null) { this.Color = new String(source.Color); } if (source.Width != null) { this.Width = new Long(source.Width); } if (source.Height != null) { this.Height = new Long(source.Height); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Color", this.Color); this.setParamSimple(map, prefix + "Width", this.Width); this.setParamSimple(map, prefix + "Height", this.Height); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy