com.softlayer.api.service.hardware.resource.Configuration 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.resource;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Hardware;
import com.softlayer.api.service.hardware.resource.configuration.Property;
import com.softlayer.api.service.hardware.resource.configuration.Type;
import java.util.ArrayList;
import java.util.List;
/**
* @see SoftLayer_Hardware_Resource_Configuration
*/
@ApiType("SoftLayer_Hardware_Resource_Configuration")
public class Configuration extends Entity {
@ApiProperty
protected Hardware hardware;
public Hardware getHardware() {
return hardware;
}
public void setHardware(Hardware hardware) {
this.hardware = hardware;
}
@ApiProperty
protected List properties;
public List getProperties() {
if (properties == null) {
properties = new ArrayList();
}
return properties;
}
@ApiProperty
protected Type type;
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long configurationTypeId;
public Long getConfigurationTypeId() {
return configurationTypeId;
}
public void setConfigurationTypeId(Long configurationTypeId) {
configurationTypeIdSpecified = true;
this.configurationTypeId = configurationTypeId;
}
protected boolean configurationTypeIdSpecified;
public boolean isConfigurationTypeIdSpecified() {
return configurationTypeIdSpecified;
}
public void unsetConfigurationTypeId() {
configurationTypeId = null;
configurationTypeIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long hardwareId;
public Long getHardwareId() {
return hardwareId;
}
public void setHardwareId(Long hardwareId) {
hardwareIdSpecified = true;
this.hardwareId = hardwareId;
}
protected boolean hardwareIdSpecified;
public boolean isHardwareIdSpecified() {
return hardwareIdSpecified;
}
public void unsetHardwareId() {
hardwareId = null;
hardwareIdSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long propertyCount;
public Long getPropertyCount() {
return propertyCount;
}
public void setPropertyCount(Long propertyCount) {
this.propertyCount = propertyCount;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Hardware.Mask hardware() {
return withSubMask("hardware", com.softlayer.api.service.Hardware.Mask.class);
}
public com.softlayer.api.service.hardware.resource.configuration.Property.Mask properties() {
return withSubMask("properties", com.softlayer.api.service.hardware.resource.configuration.Property.Mask.class);
}
public com.softlayer.api.service.hardware.resource.configuration.Type.Mask type() {
return withSubMask("type", com.softlayer.api.service.hardware.resource.configuration.Type.Mask.class);
}
public Mask configurationTypeId() {
withLocalProperty("configurationTypeId");
return this;
}
public Mask hardwareId() {
withLocalProperty("hardwareId");
return this;
}
public Mask propertyCount() {
withLocalProperty("propertyCount");
return this;
}
}
}