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

com.tencentcloudapi.teo.v20220106.models.ModifyDnsRecordRequest 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.teo.v20220106.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class ModifyDnsRecordRequest extends AbstractModel{

    /**
    * 记录 ID
    */
    @SerializedName("Id")
    @Expose
    private String Id;

    /**
    * 站点 ID
    */
    @SerializedName("ZoneId")
    @Expose
    private String ZoneId;

    /**
    * 记录类型
    */
    @SerializedName("Type")
    @Expose
    private String Type;

    /**
    * 记录名称
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * 记录内容
    */
    @SerializedName("Content")
    @Expose
    private String Content;

    /**
    * 生存时间值
    */
    @SerializedName("Ttl")
    @Expose
    private Long Ttl;

    /**
    * 优先级
    */
    @SerializedName("Priority")
    @Expose
    private Long Priority;

    /**
    * 代理模式
    */
    @SerializedName("Mode")
    @Expose
    private String Mode;

    /**
     * Get 记录 ID 
     * @return Id 记录 ID
     */
    public String getId() {
        return this.Id;
    }

    /**
     * Set 记录 ID
     * @param Id 记录 ID
     */
    public void setId(String Id) {
        this.Id = Id;
    }

    /**
     * Get 站点 ID 
     * @return ZoneId 站点 ID
     */
    public String getZoneId() {
        return this.ZoneId;
    }

    /**
     * Set 站点 ID
     * @param ZoneId 站点 ID
     */
    public void setZoneId(String ZoneId) {
        this.ZoneId = ZoneId;
    }

    /**
     * Get 记录类型 
     * @return Type 记录类型
     */
    public String getType() {
        return this.Type;
    }

    /**
     * Set 记录类型
     * @param Type 记录类型
     */
    public void setType(String Type) {
        this.Type = Type;
    }

    /**
     * Get 记录名称 
     * @return Name 记录名称
     */
    public String getName() {
        return this.Name;
    }

    /**
     * Set 记录名称
     * @param Name 记录名称
     */
    public void setName(String Name) {
        this.Name = Name;
    }

    /**
     * Get 记录内容 
     * @return Content 记录内容
     */
    public String getContent() {
        return this.Content;
    }

    /**
     * Set 记录内容
     * @param Content 记录内容
     */
    public void setContent(String Content) {
        this.Content = Content;
    }

    /**
     * Get 生存时间值 
     * @return Ttl 生存时间值
     */
    public Long getTtl() {
        return this.Ttl;
    }

    /**
     * Set 生存时间值
     * @param Ttl 生存时间值
     */
    public void setTtl(Long Ttl) {
        this.Ttl = Ttl;
    }

    /**
     * Get 优先级 
     * @return Priority 优先级
     */
    public Long getPriority() {
        return this.Priority;
    }

    /**
     * Set 优先级
     * @param Priority 优先级
     */
    public void setPriority(Long Priority) {
        this.Priority = Priority;
    }

    /**
     * Get 代理模式 
     * @return Mode 代理模式
     */
    public String getMode() {
        return this.Mode;
    }

    /**
     * Set 代理模式
     * @param Mode 代理模式
     */
    public void setMode(String Mode) {
        this.Mode = Mode;
    }

    public ModifyDnsRecordRequest() {
    }

    /**
     * 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 ModifyDnsRecordRequest(ModifyDnsRecordRequest source) {
        if (source.Id != null) {
            this.Id = new String(source.Id);
        }
        if (source.ZoneId != null) {
            this.ZoneId = new String(source.ZoneId);
        }
        if (source.Type != null) {
            this.Type = new String(source.Type);
        }
        if (source.Name != null) {
            this.Name = new String(source.Name);
        }
        if (source.Content != null) {
            this.Content = new String(source.Content);
        }
        if (source.Ttl != null) {
            this.Ttl = new Long(source.Ttl);
        }
        if (source.Priority != null) {
            this.Priority = new Long(source.Priority);
        }
        if (source.Mode != null) {
            this.Mode = new String(source.Mode);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Id", this.Id);
        this.setParamSimple(map, prefix + "ZoneId", this.ZoneId);
        this.setParamSimple(map, prefix + "Type", this.Type);
        this.setParamSimple(map, prefix + "Name", this.Name);
        this.setParamSimple(map, prefix + "Content", this.Content);
        this.setParamSimple(map, prefix + "Ttl", this.Ttl);
        this.setParamSimple(map, prefix + "Priority", this.Priority);
        this.setParamSimple(map, prefix + "Mode", this.Mode);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy