com.softlayer.api.service.virtual.guest.boot.Parameter 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.virtual.guest.boot;
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 com.softlayer.api.service.virtual.Guest;
import com.softlayer.api.service.virtual.guest.boot.parameter.Type;
import java.util.GregorianCalendar;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Virtual_Guest_Boot_Parameter
*/
@ApiType("SoftLayer_Virtual_Guest_Boot_Parameter")
public class Parameter extends Entity {
@ApiProperty
protected Guest guest;
public Guest getGuest() {
return guest;
}
public void setGuest(Guest guest) {
this.guest = guest;
}
@ApiProperty
protected Type guestBootParameterType;
public Type getGuestBootParameterType() {
return guestBootParameterType;
}
public void setGuestBootParameterType(Type guestBootParameterType) {
this.guestBootParameterType = guestBootParameterType;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar createDate;
public GregorianCalendar getCreateDate() {
return createDate;
}
public void setCreateDate(GregorianCalendar createDate) {
createDateSpecified = true;
this.createDate = createDate;
}
protected boolean createDateSpecified;
public boolean isCreateDateSpecified() {
return createDateSpecified;
}
public void unsetCreateDate() {
createDate = null;
createDateSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long guestBootParameterTypeId;
public Long getGuestBootParameterTypeId() {
return guestBootParameterTypeId;
}
public void setGuestBootParameterTypeId(Long guestBootParameterTypeId) {
guestBootParameterTypeIdSpecified = true;
this.guestBootParameterTypeId = guestBootParameterTypeId;
}
protected boolean guestBootParameterTypeIdSpecified;
public boolean isGuestBootParameterTypeIdSpecified() {
return guestBootParameterTypeIdSpecified;
}
public void unsetGuestBootParameterTypeId() {
guestBootParameterTypeId = null;
guestBootParameterTypeIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long guestId;
public Long getGuestId() {
return guestId;
}
public void setGuestId(Long guestId) {
guestIdSpecified = true;
this.guestId = guestId;
}
protected boolean guestIdSpecified;
public boolean isGuestIdSpecified() {
return guestIdSpecified;
}
public void unsetGuestId() {
guestId = null;
guestIdSpecified = false;
}
@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;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar modifyDate;
public GregorianCalendar getModifyDate() {
return modifyDate;
}
public void setModifyDate(GregorianCalendar modifyDate) {
modifyDateSpecified = true;
this.modifyDate = modifyDate;
}
protected boolean modifyDateSpecified;
public boolean isModifyDateSpecified() {
return modifyDateSpecified;
}
public void unsetModifyDate() {
modifyDate = null;
modifyDateSpecified = false;
}
public Service asService(ApiClient client) {
return service(client, id);
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
public static Service service(ApiClient client, Long id) {
return client.createService(Service.class, id == null ? null : id.toString());
}
/**
* @see SoftLayer_Virtual_Guest_Boot_Parameter
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Virtual_Guest_Boot_Parameter")
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_Virtual_Guest_Boot_Parameter::createObject
*/
@ApiMethod
public Boolean createObject(Parameter templateObject);
/**
* @see SoftLayer_Virtual_Guest_Boot_Parameter::deleteObject
*/
@ApiMethod(instanceRequired = true)
public Boolean deleteObject();
/**
* @see SoftLayer_Virtual_Guest_Boot_Parameter::editObject
*/
@ApiMethod(instanceRequired = true)
public Boolean editObject(Parameter templateObject);
/**
* @see SoftLayer_Virtual_Guest_Boot_Parameter::getObject
*/
@ApiMethod(instanceRequired = true)
public Parameter getObject();
/**
* @see SoftLayer_Virtual_Guest_Boot_Parameter::getGuest
*/
@ApiMethod(instanceRequired = true)
public Guest getGuest();
/**
* @see SoftLayer_Virtual_Guest_Boot_Parameter::getGuestBootParameterType
*/
@ApiMethod(instanceRequired = true)
public Type getGuestBootParameterType();
}
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#createObject}
*/
public Future createObject(Parameter templateObject);
public Future> createObject(Parameter templateObject, ResponseHandler callback);
/**
* Async version of {@link Service#deleteObject}
*/
public Future deleteObject();
public Future> deleteObject(ResponseHandler callback);
/**
* Async version of {@link Service#editObject}
*/
public Future editObject(Parameter templateObject);
public Future> editObject(Parameter templateObject, ResponseHandler callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getGuest}
*/
public Future getGuest();
/**
* Async callback version of {@link Service#getGuest}
*/
public Future> getGuest(ResponseHandler callback);
/**
* Async version of {@link Service#getGuestBootParameterType}
*/
public Future getGuestBootParameterType();
/**
* Async callback version of {@link Service#getGuestBootParameterType}
*/
public Future> getGuestBootParameterType(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.virtual.Guest.Mask guest() {
return withSubMask("guest", com.softlayer.api.service.virtual.Guest.Mask.class);
}
public com.softlayer.api.service.virtual.guest.boot.parameter.Type.Mask guestBootParameterType() {
return withSubMask("guestBootParameterType", com.softlayer.api.service.virtual.guest.boot.parameter.Type.Mask.class);
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask guestBootParameterTypeId() {
withLocalProperty("guestBootParameterTypeId");
return this;
}
public Mask guestId() {
withLocalProperty("guestId");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask modifyDate() {
withLocalProperty("modifyDate");
return this;
}
}
}