com.softlayer.api.service.provisioning.maintenance.Slots 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
The newest version!
package com.softlayer.api.service.provisioning.maintenance;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import java.util.concurrent.Future;
/**
* The SoftLayer_Provisioning_Maintenance_Slots represent the available slots for a given maintenance window at a SoftLayer data center.
*
* @see SoftLayer_Provisioning_Maintenance_Slots
*/
@ApiType("SoftLayer_Provisioning_Maintenance_Slots")
public class Slots extends Entity {
/**
* The available slots for a maintenance window.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long availableSlots;
public Long getAvailableSlots() {
return availableSlots;
}
public void setAvailableSlots(Long availableSlots) {
availableSlotsSpecified = true;
this.availableSlots = availableSlots;
}
protected boolean availableSlotsSpecified;
public boolean isAvailableSlotsSpecified() {
return availableSlotsSpecified;
}
public void unsetAvailableSlots() {
availableSlots = null;
availableSlotsSpecified = false;
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
/**
* The SoftLayer_Provisioning_Maintenance_Slots service returns available maintenance slots at SoftLayer data centers.
*
* @see SoftLayer_Provisioning_Maintenance_Slots
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Provisioning_Maintenance_Slots")
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_Provisioning_Maintenance_Slots::getObject
*/
@ApiMethod(instanceRequired = true)
public Slots getObject();
}
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#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask availableSlots() {
withLocalProperty("availableSlots");
return this;
}
}
}