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

com.tencentcloudapi.redis.v20180412.models.InstanceClusterShard 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.redis.v20180412.models;

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

public class InstanceClusterShard extends AbstractModel{

    /**
    * 分片节点名称
    */
    @SerializedName("ShardName")
    @Expose
    private String ShardName;

    /**
    * 分片节点Id
    */
    @SerializedName("ShardId")
    @Expose
    private String ShardId;

    /**
    * 角色
    */
    @SerializedName("Role")
    @Expose
    private Long Role;

    /**
    * Key数量
    */
    @SerializedName("Keys")
    @Expose
    private Long Keys;

    /**
    * slot信息
    */
    @SerializedName("Slots")
    @Expose
    private String Slots;

    /**
    * 使用容量
    */
    @SerializedName("Storage")
    @Expose
    private Long Storage;

    /**
    * 容量倾斜率
    */
    @SerializedName("StorageSlope")
    @Expose
    private Float StorageSlope;

    /**
    * 实例运行时节点Id
    */
    @SerializedName("Runid")
    @Expose
    private String Runid;

    /**
    * 服务状态:0-down;1-on
    */
    @SerializedName("Connected")
    @Expose
    private Long Connected;

    /**
     * Get 分片节点名称 
     * @return ShardName 分片节点名称
     */
    public String getShardName() {
        return this.ShardName;
    }

    /**
     * Set 分片节点名称
     * @param ShardName 分片节点名称
     */
    public void setShardName(String ShardName) {
        this.ShardName = ShardName;
    }

    /**
     * Get 分片节点Id 
     * @return ShardId 分片节点Id
     */
    public String getShardId() {
        return this.ShardId;
    }

    /**
     * Set 分片节点Id
     * @param ShardId 分片节点Id
     */
    public void setShardId(String ShardId) {
        this.ShardId = ShardId;
    }

    /**
     * Get 角色 
     * @return Role 角色
     */
    public Long getRole() {
        return this.Role;
    }

    /**
     * Set 角色
     * @param Role 角色
     */
    public void setRole(Long Role) {
        this.Role = Role;
    }

    /**
     * Get Key数量 
     * @return Keys Key数量
     */
    public Long getKeys() {
        return this.Keys;
    }

    /**
     * Set Key数量
     * @param Keys Key数量
     */
    public void setKeys(Long Keys) {
        this.Keys = Keys;
    }

    /**
     * Get slot信息 
     * @return Slots slot信息
     */
    public String getSlots() {
        return this.Slots;
    }

    /**
     * Set slot信息
     * @param Slots slot信息
     */
    public void setSlots(String Slots) {
        this.Slots = Slots;
    }

    /**
     * Get 使用容量 
     * @return Storage 使用容量
     */
    public Long getStorage() {
        return this.Storage;
    }

    /**
     * Set 使用容量
     * @param Storage 使用容量
     */
    public void setStorage(Long Storage) {
        this.Storage = Storage;
    }

    /**
     * Get 容量倾斜率 
     * @return StorageSlope 容量倾斜率
     */
    public Float getStorageSlope() {
        return this.StorageSlope;
    }

    /**
     * Set 容量倾斜率
     * @param StorageSlope 容量倾斜率
     */
    public void setStorageSlope(Float StorageSlope) {
        this.StorageSlope = StorageSlope;
    }

    /**
     * Get 实例运行时节点Id 
     * @return Runid 实例运行时节点Id
     */
    public String getRunid() {
        return this.Runid;
    }

    /**
     * Set 实例运行时节点Id
     * @param Runid 实例运行时节点Id
     */
    public void setRunid(String Runid) {
        this.Runid = Runid;
    }

    /**
     * Get 服务状态:0-down;1-on 
     * @return Connected 服务状态:0-down;1-on
     */
    public Long getConnected() {
        return this.Connected;
    }

    /**
     * Set 服务状态:0-down;1-on
     * @param Connected 服务状态:0-down;1-on
     */
    public void setConnected(Long Connected) {
        this.Connected = Connected;
    }

    public InstanceClusterShard() {
    }

    /**
     * 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 InstanceClusterShard(InstanceClusterShard source) {
        if (source.ShardName != null) {
            this.ShardName = new String(source.ShardName);
        }
        if (source.ShardId != null) {
            this.ShardId = new String(source.ShardId);
        }
        if (source.Role != null) {
            this.Role = new Long(source.Role);
        }
        if (source.Keys != null) {
            this.Keys = new Long(source.Keys);
        }
        if (source.Slots != null) {
            this.Slots = new String(source.Slots);
        }
        if (source.Storage != null) {
            this.Storage = new Long(source.Storage);
        }
        if (source.StorageSlope != null) {
            this.StorageSlope = new Float(source.StorageSlope);
        }
        if (source.Runid != null) {
            this.Runid = new String(source.Runid);
        }
        if (source.Connected != null) {
            this.Connected = new Long(source.Connected);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "ShardName", this.ShardName);
        this.setParamSimple(map, prefix + "ShardId", this.ShardId);
        this.setParamSimple(map, prefix + "Role", this.Role);
        this.setParamSimple(map, prefix + "Keys", this.Keys);
        this.setParamSimple(map, prefix + "Slots", this.Slots);
        this.setParamSimple(map, prefix + "Storage", this.Storage);
        this.setParamSimple(map, prefix + "StorageSlope", this.StorageSlope);
        this.setParamSimple(map, prefix + "Runid", this.Runid);
        this.setParamSimple(map, prefix + "Connected", this.Connected);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy