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

com.tencentcloudapi.bm.v20180423.models.DeviceClassPartitionInfo 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.bm.v20180423.models;

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

public class DeviceClassPartitionInfo extends AbstractModel{

    /**
    * RAID类型ID
    */
    @SerializedName("RaidId")
    @Expose
    private Long RaidId;

    /**
    * RAID名称
    */
    @SerializedName("Raid")
    @Expose
    private String Raid;

    /**
    * RAID名称(前台展示用)
    */
    @SerializedName("RaidDisplay")
    @Expose
    private String RaidDisplay;

    /**
    * 系统盘总大小(单位GiB)
    */
    @SerializedName("SystemDiskSize")
    @Expose
    private Long SystemDiskSize;

    /**
    * 系统盘/分区默认大小(单位GiB)
    */
    @SerializedName("SysRootSpace")
    @Expose
    private Long SysRootSpace;

    /**
    * 系统盘swap分区默认大小(单位GiB)
    */
    @SerializedName("SysSwaporuefiSpace")
    @Expose
    private Long SysSwaporuefiSpace;

    /**
    * 系统盘/usr/local分区默认大小(单位GiB)
    */
    @SerializedName("SysUsrlocalSpace")
    @Expose
    private Long SysUsrlocalSpace;

    /**
    * 系统盘/data分区默认大小(单位GiB)
    */
    @SerializedName("SysDataSpace")
    @Expose
    private Long SysDataSpace;

    /**
    * 设备是否是uefi启动方式。0:legacy启动; 1:uefi启动
    */
    @SerializedName("SysIsUefiType")
    @Expose
    private Long SysIsUefiType;

    /**
    * 数据盘总大小
    */
    @SerializedName("DataDiskSize")
    @Expose
    private Long DataDiskSize;

    /**
    * 硬盘列表
    */
    @SerializedName("DeviceDiskSizeInfoSet")
    @Expose
    private DeviceDiskSizeInfo [] DeviceDiskSizeInfoSet;

    /**
     * Get RAID类型ID 
     * @return RaidId RAID类型ID
     */
    public Long getRaidId() {
        return this.RaidId;
    }

    /**
     * Set RAID类型ID
     * @param RaidId RAID类型ID
     */
    public void setRaidId(Long RaidId) {
        this.RaidId = RaidId;
    }

    /**
     * Get RAID名称 
     * @return Raid RAID名称
     */
    public String getRaid() {
        return this.Raid;
    }

    /**
     * Set RAID名称
     * @param Raid RAID名称
     */
    public void setRaid(String Raid) {
        this.Raid = Raid;
    }

    /**
     * Get RAID名称(前台展示用) 
     * @return RaidDisplay RAID名称(前台展示用)
     */
    public String getRaidDisplay() {
        return this.RaidDisplay;
    }

    /**
     * Set RAID名称(前台展示用)
     * @param RaidDisplay RAID名称(前台展示用)
     */
    public void setRaidDisplay(String RaidDisplay) {
        this.RaidDisplay = RaidDisplay;
    }

    /**
     * Get 系统盘总大小(单位GiB) 
     * @return SystemDiskSize 系统盘总大小(单位GiB)
     */
    public Long getSystemDiskSize() {
        return this.SystemDiskSize;
    }

    /**
     * Set 系统盘总大小(单位GiB)
     * @param SystemDiskSize 系统盘总大小(单位GiB)
     */
    public void setSystemDiskSize(Long SystemDiskSize) {
        this.SystemDiskSize = SystemDiskSize;
    }

    /**
     * Get 系统盘/分区默认大小(单位GiB) 
     * @return SysRootSpace 系统盘/分区默认大小(单位GiB)
     */
    public Long getSysRootSpace() {
        return this.SysRootSpace;
    }

    /**
     * Set 系统盘/分区默认大小(单位GiB)
     * @param SysRootSpace 系统盘/分区默认大小(单位GiB)
     */
    public void setSysRootSpace(Long SysRootSpace) {
        this.SysRootSpace = SysRootSpace;
    }

    /**
     * Get 系统盘swap分区默认大小(单位GiB) 
     * @return SysSwaporuefiSpace 系统盘swap分区默认大小(单位GiB)
     */
    public Long getSysSwaporuefiSpace() {
        return this.SysSwaporuefiSpace;
    }

    /**
     * Set 系统盘swap分区默认大小(单位GiB)
     * @param SysSwaporuefiSpace 系统盘swap分区默认大小(单位GiB)
     */
    public void setSysSwaporuefiSpace(Long SysSwaporuefiSpace) {
        this.SysSwaporuefiSpace = SysSwaporuefiSpace;
    }

    /**
     * Get 系统盘/usr/local分区默认大小(单位GiB) 
     * @return SysUsrlocalSpace 系统盘/usr/local分区默认大小(单位GiB)
     */
    public Long getSysUsrlocalSpace() {
        return this.SysUsrlocalSpace;
    }

    /**
     * Set 系统盘/usr/local分区默认大小(单位GiB)
     * @param SysUsrlocalSpace 系统盘/usr/local分区默认大小(单位GiB)
     */
    public void setSysUsrlocalSpace(Long SysUsrlocalSpace) {
        this.SysUsrlocalSpace = SysUsrlocalSpace;
    }

    /**
     * Get 系统盘/data分区默认大小(单位GiB) 
     * @return SysDataSpace 系统盘/data分区默认大小(单位GiB)
     */
    public Long getSysDataSpace() {
        return this.SysDataSpace;
    }

    /**
     * Set 系统盘/data分区默认大小(单位GiB)
     * @param SysDataSpace 系统盘/data分区默认大小(单位GiB)
     */
    public void setSysDataSpace(Long SysDataSpace) {
        this.SysDataSpace = SysDataSpace;
    }

    /**
     * Get 设备是否是uefi启动方式。0:legacy启动; 1:uefi启动 
     * @return SysIsUefiType 设备是否是uefi启动方式。0:legacy启动; 1:uefi启动
     */
    public Long getSysIsUefiType() {
        return this.SysIsUefiType;
    }

    /**
     * Set 设备是否是uefi启动方式。0:legacy启动; 1:uefi启动
     * @param SysIsUefiType 设备是否是uefi启动方式。0:legacy启动; 1:uefi启动
     */
    public void setSysIsUefiType(Long SysIsUefiType) {
        this.SysIsUefiType = SysIsUefiType;
    }

    /**
     * Get 数据盘总大小 
     * @return DataDiskSize 数据盘总大小
     */
    public Long getDataDiskSize() {
        return this.DataDiskSize;
    }

    /**
     * Set 数据盘总大小
     * @param DataDiskSize 数据盘总大小
     */
    public void setDataDiskSize(Long DataDiskSize) {
        this.DataDiskSize = DataDiskSize;
    }

    /**
     * Get 硬盘列表 
     * @return DeviceDiskSizeInfoSet 硬盘列表
     */
    public DeviceDiskSizeInfo [] getDeviceDiskSizeInfoSet() {
        return this.DeviceDiskSizeInfoSet;
    }

    /**
     * Set 硬盘列表
     * @param DeviceDiskSizeInfoSet 硬盘列表
     */
    public void setDeviceDiskSizeInfoSet(DeviceDiskSizeInfo [] DeviceDiskSizeInfoSet) {
        this.DeviceDiskSizeInfoSet = DeviceDiskSizeInfoSet;
    }

    public DeviceClassPartitionInfo() {
    }

    /**
     * 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 DeviceClassPartitionInfo(DeviceClassPartitionInfo source) {
        if (source.RaidId != null) {
            this.RaidId = new Long(source.RaidId);
        }
        if (source.Raid != null) {
            this.Raid = new String(source.Raid);
        }
        if (source.RaidDisplay != null) {
            this.RaidDisplay = new String(source.RaidDisplay);
        }
        if (source.SystemDiskSize != null) {
            this.SystemDiskSize = new Long(source.SystemDiskSize);
        }
        if (source.SysRootSpace != null) {
            this.SysRootSpace = new Long(source.SysRootSpace);
        }
        if (source.SysSwaporuefiSpace != null) {
            this.SysSwaporuefiSpace = new Long(source.SysSwaporuefiSpace);
        }
        if (source.SysUsrlocalSpace != null) {
            this.SysUsrlocalSpace = new Long(source.SysUsrlocalSpace);
        }
        if (source.SysDataSpace != null) {
            this.SysDataSpace = new Long(source.SysDataSpace);
        }
        if (source.SysIsUefiType != null) {
            this.SysIsUefiType = new Long(source.SysIsUefiType);
        }
        if (source.DataDiskSize != null) {
            this.DataDiskSize = new Long(source.DataDiskSize);
        }
        if (source.DeviceDiskSizeInfoSet != null) {
            this.DeviceDiskSizeInfoSet = new DeviceDiskSizeInfo[source.DeviceDiskSizeInfoSet.length];
            for (int i = 0; i < source.DeviceDiskSizeInfoSet.length; i++) {
                this.DeviceDiskSizeInfoSet[i] = new DeviceDiskSizeInfo(source.DeviceDiskSizeInfoSet[i]);
            }
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "RaidId", this.RaidId);
        this.setParamSimple(map, prefix + "Raid", this.Raid);
        this.setParamSimple(map, prefix + "RaidDisplay", this.RaidDisplay);
        this.setParamSimple(map, prefix + "SystemDiskSize", this.SystemDiskSize);
        this.setParamSimple(map, prefix + "SysRootSpace", this.SysRootSpace);
        this.setParamSimple(map, prefix + "SysSwaporuefiSpace", this.SysSwaporuefiSpace);
        this.setParamSimple(map, prefix + "SysUsrlocalSpace", this.SysUsrlocalSpace);
        this.setParamSimple(map, prefix + "SysDataSpace", this.SysDataSpace);
        this.setParamSimple(map, prefix + "SysIsUefiType", this.SysIsUefiType);
        this.setParamSimple(map, prefix + "DataDiskSize", this.DataDiskSize);
        this.setParamArrayObj(map, prefix + "DeviceDiskSizeInfoSet.", this.DeviceDiskSizeInfoSet);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy