com.softlayer.api.service.hardware.component.HardDrive Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
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;
}
}
}