com.softlayer.api.service.hardware.component.Locator 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;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.hardware.component.locator.Result;
import java.util.List;
import java.util.concurrent.Future;
/**
* SoftLayer public API to determine the availability of generic hardware component models at data centers
*
* @see SoftLayer_Hardware_Component_Locator
*/
@ApiType("SoftLayer_Hardware_Component_Locator")
public class Locator extends Entity {
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
/**
* SoftLayer public API to determine the availability of generic hardware component models at data centers
*
* @see SoftLayer_Hardware_Component_Locator
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Hardware_Component_Locator")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* @see SoftLayer_Hardware_Component_Locator::getGenericComponentModelAvailability
*/
@ApiMethod
public List getGenericComponentModelAvailability(List genericComponentModelIds);
/**
* @see SoftLayer_Hardware_Component_Locator::getPackageItemsAvailability
*/
@ApiMethod
public List getPackageItemsAvailability(Long packageId);
/**
* @see SoftLayer_Hardware_Component_Locator::getServerPackageAvailability
*/
@ApiMethod
public List getServerPackageAvailability();
}
public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#getGenericComponentModelAvailability}
*/
public Future> getGenericComponentModelAvailability(List genericComponentModelIds);
public Future> getGenericComponentModelAvailability(List genericComponentModelIds, ResponseHandler> callback);
/**
* Async version of {@link Service#getPackageItemsAvailability}
*/
public Future> getPackageItemsAvailability(Long packageId);
public Future> getPackageItemsAvailability(Long packageId, ResponseHandler> callback);
/**
* Async version of {@link Service#getServerPackageAvailability}
*/
public Future> getServerPackageAvailability();
public Future> getServerPackageAvailability(ResponseHandler> callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
}
}