com.softlayer.api.service.configuration.storage.Group 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.configuration.storage;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.configuration.storage.group.array.Type;
import com.softlayer.api.service.container.hardware.CaptureEnabled;
import com.softlayer.api.service.hardware.Component;
import com.softlayer.api.service.user.Employee;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* This class describes the base Storage Group for a Complex Drive Configuration
*
* @see SoftLayer_Configuration_Storage_Group
*/
@ApiType("SoftLayer_Configuration_Storage_Group")
public class Group extends Entity {
/**
* This class represents a storage groups ancestors
*/
@ApiProperty
protected List ancestorGroups;
public List getAncestorGroups() {
if (ancestorGroups == null) {
ancestorGroups = new ArrayList();
}
return ancestorGroups;
}
/**
* This class represents a storage group disk array type
*/
@ApiProperty
protected Type arrayType;
public Type getArrayType() {
return arrayType;
}
public void setArrayType(Type arrayType) {
this.arrayType = arrayType;
}
/**
* Determine if the storage group is able to be image captured. If unable to image capture the reasons will be provided.
*/
@ApiProperty
protected CaptureEnabled captureEnabledFlag;
public CaptureEnabled getCaptureEnabledFlag() {
return captureEnabledFlag;
}
public void setCaptureEnabledFlag(CaptureEnabled captureEnabledFlag) {
this.captureEnabledFlag = captureEnabledFlag;
}
@ApiProperty
protected Employee createEmployee;
public Employee getCreateEmployee() {
return createEmployee;
}
public void setCreateEmployee(Employee createEmployee) {
this.createEmployee = createEmployee;
}
/**
* This class represents a storage groups descendants
*/
@ApiProperty
protected List descendantGroups;
public List getDescendantGroups() {
if (descendantGroups == null) {
descendantGroups = new ArrayList();
}
return descendantGroups;
}
/**
* The hard drives contained within this storage group.
*/
@ApiProperty
protected List hardDrives;
public List getHardDrives() {
if (hardDrives == null) {
hardDrives = new ArrayList();
}
return hardDrives;
}
/**
* Storage group description
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String description;
public String getDescription() {
return description;
}
public void setDescription(String description) {
descriptionSpecified = true;
this.description = description;
}
protected boolean descriptionSpecified;
public boolean isDescriptionSpecified() {
return descriptionSpecified;
}
public void unsetDescription() {
description = null;
descriptionSpecified = false;
}
/**
* Storage group disk space
*/
@ApiProperty(canBeNullOrNotSet = true)
protected BigDecimal diskSpace;
public BigDecimal getDiskSpace() {
return diskSpace;
}
public void setDiskSpace(BigDecimal diskSpace) {
diskSpaceSpecified = true;
this.diskSpace = diskSpace;
}
protected boolean diskSpaceSpecified;
public boolean isDiskSpaceSpecified() {
return diskSpaceSpecified;
}
public void unsetDiskSpace() {
diskSpace = null;
diskSpaceSpecified = false;
}
/**
* Storage group type id
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* Flag to indicate if the storage group is setup for lvm
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Boolean lvmFlag;
public Boolean getLvmFlag() {
return lvmFlag;
}
public void setLvmFlag(Boolean lvmFlag) {
lvmFlagSpecified = true;
this.lvmFlag = lvmFlag;
}
protected boolean lvmFlagSpecified;
public boolean isLvmFlagSpecified() {
return lvmFlagSpecified;
}
public void unsetLvmFlag() {
lvmFlag = null;
lvmFlagSpecified = false;
}
/**
* Storage group name
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String name;
public String getName() {
return name;
}
public void setName(String name) {
nameSpecified = true;
this.name = name;
}
protected boolean nameSpecified;
public boolean isNameSpecified() {
return nameSpecified;
}
public void unsetName() {
name = null;
nameSpecified = false;
}
/**
* Storage group disk size units
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String units;
public String getUnits() {
return units;
}
public void setUnits(String units) {
unitsSpecified = true;
this.units = units;
}
protected boolean unitsSpecified;
public boolean isUnitsSpecified() {
return unitsSpecified;
}
public void unsetUnits() {
units = null;
unitsSpecified = false;
}
/**
* A count of this class represents a storage groups ancestors
*/
@ApiProperty
protected Long ancestorGroupCount;
public Long getAncestorGroupCount() {
return ancestorGroupCount;
}
public void setAncestorGroupCount(Long ancestorGroupCount) {
this.ancestorGroupCount = ancestorGroupCount;
}
/**
* A count of this class represents a storage groups descendants
*/
@ApiProperty
protected Long descendantGroupCount;
public Long getDescendantGroupCount() {
return descendantGroupCount;
}
public void setDescendantGroupCount(Long descendantGroupCount) {
this.descendantGroupCount = descendantGroupCount;
}
/**
* A count of the hard drives contained within this storage group.
*/
@ApiProperty
protected Long hardDriveCount;
public Long getHardDriveCount() {
return hardDriveCount;
}
public void setHardDriveCount(Long hardDriveCount) {
this.hardDriveCount = hardDriveCount;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Group.Mask ancestorGroups() {
return withSubMask("ancestorGroups", Group.Mask.class);
}
public com.softlayer.api.service.configuration.storage.group.array.Type.Mask arrayType() {
return withSubMask("arrayType", com.softlayer.api.service.configuration.storage.group.array.Type.Mask.class);
}
public com.softlayer.api.service.container.hardware.CaptureEnabled.Mask captureEnabledFlag() {
return withSubMask("captureEnabledFlag", com.softlayer.api.service.container.hardware.CaptureEnabled.Mask.class);
}
public com.softlayer.api.service.user.Employee.Mask createEmployee() {
return withSubMask("createEmployee", com.softlayer.api.service.user.Employee.Mask.class);
}
public Group.Mask descendantGroups() {
return withSubMask("descendantGroups", Group.Mask.class);
}
public com.softlayer.api.service.hardware.Component.Mask hardDrives() {
return withSubMask("hardDrives", com.softlayer.api.service.hardware.Component.Mask.class);
}
public Mask description() {
withLocalProperty("description");
return this;
}
public Mask diskSpace() {
withLocalProperty("diskSpace");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask lvmFlag() {
withLocalProperty("lvmFlag");
return this;
}
public Mask name() {
withLocalProperty("name");
return this;
}
public Mask units() {
withLocalProperty("units");
return this;
}
public Mask ancestorGroupCount() {
withLocalProperty("ancestorGroupCount");
return this;
}
public Mask descendantGroupCount() {
withLocalProperty("descendantGroupCount");
return this;
}
public Mask hardDriveCount() {
withLocalProperty("hardDriveCount");
return this;
}
}
}