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

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

There is a newer version: 3.0.1076
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.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 TextWatermarkTemplateInputForUpdate extends AbstractModel {

    /**
    * Font type. Currently, two types are supported:
  • simkai.ttf: Both Chinese and English are supported;
  • arial.ttf: Only English is supported.
  • */ @SerializedName("FontType") @Expose private String FontType; /** * Font size, in the format of Npx. N is a numerical value with a value range of [0, 1] or [8, 4096]. */ @SerializedName("FontSize") @Expose private String FontSize; /** * Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white). */ @SerializedName("FontColor") @Expose private String FontColor; /** * Text transparency. Value range: (0, 1]
  • 0: Completely transparent
  • 1: Completely opaque
  • */ @SerializedName("FontAlpha") @Expose private Float FontAlpha; /** * Text content, up to 100 characters. */ @SerializedName("TextContent") @Expose private String TextContent; /** * Get Font type. Currently, two types are supported:
  • simkai.ttf: Both Chinese and English are supported;
  • arial.ttf: Only English is supported.
  • * @return FontType Font type. Currently, two types are supported:
  • simkai.ttf: Both Chinese and English are supported;
  • arial.ttf: Only English is supported.
  • */ public String getFontType() { return this.FontType; } /** * Set Font type. Currently, two types are supported:
  • simkai.ttf: Both Chinese and English are supported;
  • arial.ttf: Only English is supported.
  • * @param FontType Font type. Currently, two types are supported:
  • simkai.ttf: Both Chinese and English are supported;
  • arial.ttf: Only English is supported.
  • */ public void setFontType(String FontType) { this.FontType = FontType; } /** * Get Font size, in the format of Npx. N is a numerical value with a value range of [0, 1] or [8, 4096]. * @return FontSize Font size, in the format of Npx. N is a numerical value with a value range of [0, 1] or [8, 4096]. */ public String getFontSize() { return this.FontSize; } /** * Set Font size, in the format of Npx. N is a numerical value with a value range of [0, 1] or [8, 4096]. * @param FontSize Font size, in the format of Npx. N is a numerical value with a value range of [0, 1] or [8, 4096]. */ public void setFontSize(String FontSize) { this.FontSize = FontSize; } /** * Get Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white). * @return FontColor Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white). */ public String getFontColor() { return this.FontColor; } /** * Set Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white). * @param FontColor Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white). */ public void setFontColor(String FontColor) { this.FontColor = FontColor; } /** * Get Text transparency. Value range: (0, 1]
  • 0: Completely transparent
  • 1: Completely opaque
  • * @return FontAlpha Text transparency. Value range: (0, 1]
  • 0: Completely transparent
  • 1: Completely opaque
  • */ public Float getFontAlpha() { return this.FontAlpha; } /** * Set Text transparency. Value range: (0, 1]
  • 0: Completely transparent
  • 1: Completely opaque
  • * @param FontAlpha Text transparency. Value range: (0, 1]
  • 0: Completely transparent
  • 1: Completely opaque
  • */ public void setFontAlpha(Float FontAlpha) { this.FontAlpha = FontAlpha; } /** * Get Text content, up to 100 characters. * @return TextContent Text content, up to 100 characters. */ public String getTextContent() { return this.TextContent; } /** * Set Text content, up to 100 characters. * @param TextContent Text content, up to 100 characters. */ public void setTextContent(String TextContent) { this.TextContent = TextContent; } public TextWatermarkTemplateInputForUpdate() { } /** * 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 TextWatermarkTemplateInputForUpdate(TextWatermarkTemplateInputForUpdate source) { if (source.FontType != null) { this.FontType = new String(source.FontType); } if (source.FontSize != null) { this.FontSize = new String(source.FontSize); } if (source.FontColor != null) { this.FontColor = new String(source.FontColor); } if (source.FontAlpha != null) { this.FontAlpha = new Float(source.FontAlpha); } if (source.TextContent != null) { this.TextContent = new String(source.TextContent); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "FontType", this.FontType); this.setParamSimple(map, prefix + "FontSize", this.FontSize); this.setParamSimple(map, prefix + "FontColor", this.FontColor); this.setParamSimple(map, prefix + "FontAlpha", this.FontAlpha); this.setParamSimple(map, prefix + "TextContent", this.TextContent); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy