com.softlayer.api.service.configuration.storage.group.Order 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.group;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.billing.order.Item;
import com.softlayer.api.service.configuration.storage.group.array.Type;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* Single storage group(array) used for a hardware server order.
*
* If a raid configuration is required this object will describe a single array that will be configured on the server. If the server requires more than one array, a storage group will need to be created for each array.
*
* @see SoftLayer_Configuration_Storage_Group_Order
*/
@ApiType("SoftLayer_Configuration_Storage_Group_Order")
public class Order extends Entity {
/**
* Raid mode for the storage group.
*/
@ApiProperty
protected Type arrayType;
public Type getArrayType() {
return arrayType;
}
public void setArrayType(Type arrayType) {
this.arrayType = arrayType;
}
/**
* The order item that relates to this storage group.
*/
@ApiProperty
protected Item billingOrderItem;
public Item getBillingOrderItem() {
return billingOrderItem;
}
public void setBillingOrderItem(Item billingOrderItem) {
this.billingOrderItem = billingOrderItem;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long arrayNumber;
public Long getArrayNumber() {
return arrayNumber;
}
public void setArrayNumber(Long arrayNumber) {
arrayNumberSpecified = true;
this.arrayNumber = arrayNumber;
}
protected boolean arrayNumberSpecified;
public boolean isArrayNumberSpecified() {
return arrayNumberSpecified;
}
public void unsetArrayNumber() {
arrayNumber = null;
arrayNumberSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected BigDecimal arraySize;
public BigDecimal getArraySize() {
return arraySize;
}
public void setArraySize(BigDecimal arraySize) {
arraySizeSpecified = true;
this.arraySize = arraySize;
}
protected boolean arraySizeSpecified;
public boolean isArraySizeSpecified() {
return arraySizeSpecified;
}
public void unsetArraySize() {
arraySize = null;
arraySizeSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long arrayTypeId;
public Long getArrayTypeId() {
return arrayTypeId;
}
public void setArrayTypeId(Long arrayTypeId) {
arrayTypeIdSpecified = true;
this.arrayTypeId = arrayTypeId;
}
protected boolean arrayTypeIdSpecified;
public boolean isArrayTypeIdSpecified() {
return arrayTypeIdSpecified;
}
public void unsetArrayTypeId() {
arrayTypeId = null;
arrayTypeIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long billingOrderItemId;
public Long getBillingOrderItemId() {
return billingOrderItemId;
}
public void setBillingOrderItemId(Long billingOrderItemId) {
billingOrderItemIdSpecified = true;
this.billingOrderItemId = billingOrderItemId;
}
protected boolean billingOrderItemIdSpecified;
public boolean isBillingOrderItemIdSpecified() {
return billingOrderItemIdSpecified;
}
public void unsetBillingOrderItemId() {
billingOrderItemId = null;
billingOrderItemIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected List hardDrives;
public List getHardDrives() {
if (hardDrives == null) {
hardDrives = new ArrayList();
}
return hardDrives;
}
protected boolean hardDrivesSpecified;
public boolean isHardDrivesSpecified() {
return hardDrivesSpecified;
}
public void unsetHardDrives() {
hardDrives = null;
hardDrivesSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected List hotSpareDrives;
public List getHotSpareDrives() {
if (hotSpareDrives == null) {
hotSpareDrives = new ArrayList();
}
return hotSpareDrives;
}
protected boolean hotSpareDrivesSpecified;
public boolean isHotSpareDrivesSpecified() {
return hotSpareDrivesSpecified;
}
public void unsetHotSpareDrives() {
hotSpareDrives = null;
hotSpareDrivesSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String partitionData;
public String getPartitionData() {
return partitionData;
}
public void setPartitionData(String partitionData) {
partitionDataSpecified = true;
this.partitionData = partitionData;
}
protected boolean partitionDataSpecified;
public boolean isPartitionDataSpecified() {
return partitionDataSpecified;
}
public void unsetPartitionData() {
partitionData = null;
partitionDataSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
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.billing.order.Item.Mask billingOrderItem() {
return withSubMask("billingOrderItem", com.softlayer.api.service.billing.order.Item.Mask.class);
}
public Mask arrayNumber() {
withLocalProperty("arrayNumber");
return this;
}
public Mask arraySize() {
withLocalProperty("arraySize");
return this;
}
public Mask arrayTypeId() {
withLocalProperty("arrayTypeId");
return this;
}
public Mask billingOrderItemId() {
withLocalProperty("billingOrderItemId");
return this;
}
public Mask hardDrives() {
withLocalProperty("hardDrives");
return this;
}
public Mask hotSpareDrives() {
withLocalProperty("hotSpareDrives");
return this;
}
public Mask partitionData() {
withLocalProperty("partitionData");
return this;
}
}
}