com.softlayer.api.service.hardware.Chassis 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;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.hardware.Function;
/**
* Every piece of hardware in SoftLayer's datacenters, including customer servers, are housed in one of many hardware chassis. The SoftLayer_Hardware_Chassis data type defines these chassis.
*
* @see SoftLayer_Hardware_Chassis
*/
@ApiType("SoftLayer_Hardware_Chassis")
public class Chassis extends Entity {
@ApiProperty
protected String backplaneCapacity;
public String getBackplaneCapacity() {
return backplaneCapacity;
}
public void setBackplaneCapacity(String backplaneCapacity) {
this.backplaneCapacity = backplaneCapacity;
}
@ApiProperty
protected String bayCapacity;
public String getBayCapacity() {
return bayCapacity;
}
public void setBayCapacity(String bayCapacity) {
this.bayCapacity = bayCapacity;
}
@ApiProperty
protected String driveCapacity;
public String getDriveCapacity() {
return driveCapacity;
}
public void setDriveCapacity(String driveCapacity) {
this.driveCapacity = driveCapacity;
}
@ApiProperty
protected String driveControllerCapacity;
public String getDriveControllerCapacity() {
return driveControllerCapacity;
}
public void setDriveControllerCapacity(String driveControllerCapacity) {
this.driveControllerCapacity = driveControllerCapacity;
}
@ApiProperty
protected String gpuCapacity;
public String getGpuCapacity() {
return gpuCapacity;
}
public void setGpuCapacity(String gpuCapacity) {
this.gpuCapacity = gpuCapacity;
}
/**
* A hardware's function.
*/
@ApiProperty
protected Function hardwareFunction;
public Function getHardwareFunction() {
return hardwareFunction;
}
public void setHardwareFunction(Function hardwareFunction) {
this.hardwareFunction = hardwareFunction;
}
@ApiProperty
protected String moduleCapacity;
public String getModuleCapacity() {
return moduleCapacity;
}
public void setModuleCapacity(String moduleCapacity) {
this.moduleCapacity = moduleCapacity;
}
@ApiProperty
protected String powerCapacity;
public String getPowerCapacity() {
return powerCapacity;
}
public void setPowerCapacity(String powerCapacity) {
this.powerCapacity = powerCapacity;
}
/**
* A hardware form factor internal identifier.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long formFactorId;
public Long getFormFactorId() {
return formFactorId;
}
public void setFormFactorId(Long formFactorId) {
formFactorIdSpecified = true;
this.formFactorId = formFactorId;
}
protected boolean formFactorIdSpecified;
public boolean isFormFactorIdSpecified() {
return formFactorIdSpecified;
}
public void unsetFormFactorId() {
formFactorId = null;
formFactorIdSpecified = false;
}
/**
* A hardware chassis' internal identifier.
*/
@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;
}
/**
* A hardware chassis' manufacturer.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String manufacturer;
public String getManufacturer() {
return manufacturer;
}
public void setManufacturer(String manufacturer) {
manufacturerSpecified = true;
this.manufacturer = manufacturer;
}
protected boolean manufacturerSpecified;
public boolean isManufacturerSpecified() {
return manufacturerSpecified;
}
public void unsetManufacturer() {
manufacturer = null;
manufacturerSpecified = false;
}
/**
* A hardware chassis' 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;
}
/**
* The physical size of a hardware chassis. Currently this relates to the 'U' size of a chassis buy default.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long unitSize;
public Long getUnitSize() {
return unitSize;
}
public void setUnitSize(Long unitSize) {
unitSizeSpecified = true;
this.unitSize = unitSize;
}
protected boolean unitSizeSpecified;
public boolean isUnitSizeSpecified() {
return unitSizeSpecified;
}
public void unsetUnitSize() {
unitSize = null;
unitSizeSpecified = false;
}
/**
* A hardware chassis' revision number.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String version;
public String getVersion() {
return version;
}
public void setVersion(String version) {
versionSpecified = true;
this.version = version;
}
protected boolean versionSpecified;
public boolean isVersionSpecified() {
return versionSpecified;
}
public void unsetVersion() {
version = null;
versionSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask backplaneCapacity() {
withLocalProperty("backplaneCapacity");
return this;
}
public Mask bayCapacity() {
withLocalProperty("bayCapacity");
return this;
}
public Mask driveCapacity() {
withLocalProperty("driveCapacity");
return this;
}
public Mask driveControllerCapacity() {
withLocalProperty("driveControllerCapacity");
return this;
}
public Mask gpuCapacity() {
withLocalProperty("gpuCapacity");
return this;
}
public Function.Mask hardwareFunction() {
return withSubMask("hardwareFunction", Function.Mask.class);
}
public Mask moduleCapacity() {
withLocalProperty("moduleCapacity");
return this;
}
public Mask powerCapacity() {
withLocalProperty("powerCapacity");
return this;
}
public Mask formFactorId() {
withLocalProperty("formFactorId");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask manufacturer() {
withLocalProperty("manufacturer");
return this;
}
public Mask name() {
withLocalProperty("name");
return this;
}
public Mask unitSize() {
withLocalProperty("unitSize");
return this;
}
public Mask version() {
withLocalProperty("version");
return this;
}
}
}