com.softlayer.api.service.hardware.component.locator.Result 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.locator;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import java.util.ArrayList;
import java.util.List;
/**
* This object holds a generic component model id and the list of datacenter names where it is available.
*
* @see SoftLayer_Hardware_Component_Locator_Result
*/
@ApiType("SoftLayer_Hardware_Component_Locator_Result")
public class Result extends Entity {
/**
* array of datacenter names where generic component model is available
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List datacenters;
public List getDatacenters() {
if (datacenters == null) {
datacenters = new ArrayList();
}
return datacenters;
}
protected boolean datacentersSpecified;
public boolean isDatacentersSpecified() {
return datacentersSpecified;
}
public void unsetDatacenters() {
datacenters = null;
datacentersSpecified = false;
}
/**
* generic component model id
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long genericComponentModelId;
public Long getGenericComponentModelId() {
return genericComponentModelId;
}
public void setGenericComponentModelId(Long genericComponentModelId) {
genericComponentModelIdSpecified = true;
this.genericComponentModelId = genericComponentModelId;
}
protected boolean genericComponentModelIdSpecified;
public boolean isGenericComponentModelIdSpecified() {
return genericComponentModelIdSpecified;
}
public void unsetGenericComponentModelId() {
genericComponentModelId = null;
genericComponentModelIdSpecified = false;
}
/**
* Id of SoftLayer_Product_Package_Server
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long serverPackageId;
public Long getServerPackageId() {
return serverPackageId;
}
public void setServerPackageId(Long serverPackageId) {
serverPackageIdSpecified = true;
this.serverPackageId = serverPackageId;
}
protected boolean serverPackageIdSpecified;
public boolean isServerPackageIdSpecified() {
return serverPackageIdSpecified;
}
public void unsetServerPackageId() {
serverPackageId = null;
serverPackageIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask datacenters() {
withLocalProperty("datacenters");
return this;
}
public Mask genericComponentModelId() {
withLocalProperty("genericComponentModelId");
return this;
}
public Mask serverPackageId() {
withLocalProperty("serverPackageId");
return this;
}
}
}