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

com.tencentcloudapi.cdwdoris.v20211228.models.NodeInfos Maven / Gradle / Ivy

There is a newer version: 3.1.1217
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.cdwdoris.v20211228.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 NodeInfos extends AbstractModel {

    /**
    * 节点名称
    */
    @SerializedName("NodeName")
    @Expose
    private String NodeName;

    /**
    * 节点状态
    */
    @SerializedName("Status")
    @Expose
    private Long Status;

    /**
    * 节点ip
    */
    @SerializedName("Ip")
    @Expose
    private String Ip;

    /**
    * 节点角色
    */
    @SerializedName("NodeRole")
    @Expose
    private String NodeRole;

    /**
    * 组件名
    */
    @SerializedName("ComponentName")
    @Expose
    private String ComponentName;

    /**
    * 上一次重启时间
    */
    @SerializedName("LastRestartTime")
    @Expose
    private String LastRestartTime;

    /**
    * id
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("Id")
    @Expose
    private String Id;

    /**
    * 可用区
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("Zone")
    @Expose
    private String Zone;

    /**
     * Get 节点名称 
     * @return NodeName 节点名称
     */
    public String getNodeName() {
        return this.NodeName;
    }

    /**
     * Set 节点名称
     * @param NodeName 节点名称
     */
    public void setNodeName(String NodeName) {
        this.NodeName = NodeName;
    }

    /**
     * Get 节点状态 
     * @return Status 节点状态
     */
    public Long getStatus() {
        return this.Status;
    }

    /**
     * Set 节点状态
     * @param Status 节点状态
     */
    public void setStatus(Long Status) {
        this.Status = Status;
    }

    /**
     * Get 节点ip 
     * @return Ip 节点ip
     */
    public String getIp() {
        return this.Ip;
    }

    /**
     * Set 节点ip
     * @param Ip 节点ip
     */
    public void setIp(String Ip) {
        this.Ip = Ip;
    }

    /**
     * Get 节点角色 
     * @return NodeRole 节点角色
     */
    public String getNodeRole() {
        return this.NodeRole;
    }

    /**
     * Set 节点角色
     * @param NodeRole 节点角色
     */
    public void setNodeRole(String NodeRole) {
        this.NodeRole = NodeRole;
    }

    /**
     * Get 组件名 
     * @return ComponentName 组件名
     */
    public String getComponentName() {
        return this.ComponentName;
    }

    /**
     * Set 组件名
     * @param ComponentName 组件名
     */
    public void setComponentName(String ComponentName) {
        this.ComponentName = ComponentName;
    }

    /**
     * Get 上一次重启时间 
     * @return LastRestartTime 上一次重启时间
     */
    public String getLastRestartTime() {
        return this.LastRestartTime;
    }

    /**
     * Set 上一次重启时间
     * @param LastRestartTime 上一次重启时间
     */
    public void setLastRestartTime(String LastRestartTime) {
        this.LastRestartTime = LastRestartTime;
    }

    /**
     * Get id
注意:此字段可能返回 null,表示取不到有效值。 
     * @return Id id
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getId() {
        return this.Id;
    }

    /**
     * Set id
注意:此字段可能返回 null,表示取不到有效值。
     * @param Id id
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setId(String Id) {
        this.Id = Id;
    }

    /**
     * Get 可用区
注意:此字段可能返回 null,表示取不到有效值。 
     * @return Zone 可用区
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getZone() {
        return this.Zone;
    }

    /**
     * Set 可用区
注意:此字段可能返回 null,表示取不到有效值。
     * @param Zone 可用区
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setZone(String Zone) {
        this.Zone = Zone;
    }

    public NodeInfos() {
    }

    /**
     * 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 NodeInfos(NodeInfos source) {
        if (source.NodeName != null) {
            this.NodeName = new String(source.NodeName);
        }
        if (source.Status != null) {
            this.Status = new Long(source.Status);
        }
        if (source.Ip != null) {
            this.Ip = new String(source.Ip);
        }
        if (source.NodeRole != null) {
            this.NodeRole = new String(source.NodeRole);
        }
        if (source.ComponentName != null) {
            this.ComponentName = new String(source.ComponentName);
        }
        if (source.LastRestartTime != null) {
            this.LastRestartTime = new String(source.LastRestartTime);
        }
        if (source.Id != null) {
            this.Id = new String(source.Id);
        }
        if (source.Zone != null) {
            this.Zone = new String(source.Zone);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "NodeName", this.NodeName);
        this.setParamSimple(map, prefix + "Status", this.Status);
        this.setParamSimple(map, prefix + "Ip", this.Ip);
        this.setParamSimple(map, prefix + "NodeRole", this.NodeRole);
        this.setParamSimple(map, prefix + "ComponentName", this.ComponentName);
        this.setParamSimple(map, prefix + "LastRestartTime", this.LastRestartTime);
        this.setParamSimple(map, prefix + "Id", this.Id);
        this.setParamSimple(map, prefix + "Zone", this.Zone);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy