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

com.softlayer.api.service.hardware.component.HardDrive Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.hardware.component;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.hardware.Component;
import com.softlayer.api.service.hardware.component.Partition;
import java.util.ArrayList;
import java.util.List;

/**
 * The SoftLayer_Hardware_Component_HardDrive data type abstracts information related to a hard drive. 
 *
 * @see SoftLayer_Hardware_Component_HardDrive
 */
@ApiType("SoftLayer_Hardware_Component_HardDrive")
public class HardDrive extends Component {

    /**
     * The attached component partitions.
     */
    @ApiProperty
    protected List partitions;

    public List getPartitions() {
        if (partitions == null) {
            partitions = new ArrayList();
        }
        return partitions;
    }

    /**
     * A hard drives physical security ID.
     */
    @ApiProperty
    protected String psid;

    public String getPsid() {
        return psid;
    }

    public void setPsid(String psid) {
        this.psid = psid;
    }

    /**
     * A count of the attached component partitions.
     */
    @ApiProperty
    protected Long partitionCount;

    public Long getPartitionCount() {
        return partitionCount;
    }

    public void setPartitionCount(Long partitionCount) {
        this.partitionCount = partitionCount;
    }

    public static class Mask extends com.softlayer.api.service.hardware.Component.Mask {

        public Partition.Mask partitions() {
            return withSubMask("partitions", Partition.Mask.class);
        }

        public Mask psid() {
            withLocalProperty("psid");
            return this;
        }

        public Mask partitionCount() {
            withLocalProperty("partitionCount");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy