com.softlayer.api.service.location.reservation.rack.Member 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.location.reservation.rack;
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.Location;
import com.softlayer.api.service.location.reservation.Rack;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Location_Reservation_Rack_Member
*/
@ApiType("SoftLayer_Location_Reservation_Rack_Member")
public class Member extends Entity {
/**
* Location relation for the rack member
*/
@ApiProperty
protected Location location;
public Location getLocation() {
return location;
}
public void setLocation(Location location) {
this.location = location;
}
@ApiProperty
protected Rack locationReservationRack;
public Rack getLocationReservationRack() {
return locationReservationRack;
}
public void setLocationReservationRack(Rack locationReservationRack) {
this.locationReservationRack = locationReservationRack;
}
@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 Long locationId;
public Long getLocationId() {
return locationId;
}
public void setLocationId(Long locationId) {
locationIdSpecified = true;
this.locationId = locationId;
}
protected boolean locationIdSpecified;
public boolean isLocationIdSpecified() {
return locationIdSpecified;
}
public void unsetLocationId() {
locationId = null;
locationIdSpecified = 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_Location_Reservation_Rack_Member
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Location_Reservation_Rack_Member")
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_Location_Reservation_Rack_Member::getObject
*/
@ApiMethod(instanceRequired = true)
public Member getObject();
/**
* Location relation for the rack member
*
* @see SoftLayer_Location_Reservation_Rack_Member::getLocation
*/
@ApiMethod(instanceRequired = true)
public Location getLocation();
/**
* @see SoftLayer_Location_Reservation_Rack_Member::getLocationReservationRack
*/
@ApiMethod(instanceRequired = true)
public Rack getLocationReservationRack();
}
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);
/**
* Async version of {@link Service#getLocation}
*/
public Future getLocation();
/**
* Async callback version of {@link Service#getLocation}
*/
public Future> getLocation(ResponseHandler callback);
/**
* Async version of {@link Service#getLocationReservationRack}
*/
public Future getLocationReservationRack();
/**
* Async callback version of {@link Service#getLocationReservationRack}
*/
public Future> getLocationReservationRack(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Location.Mask location() {
return withSubMask("location", com.softlayer.api.service.Location.Mask.class);
}
public com.softlayer.api.service.location.reservation.Rack.Mask locationReservationRack() {
return withSubMask("locationReservationRack", com.softlayer.api.service.location.reservation.Rack.Mask.class);
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask locationId() {
withLocalProperty("locationId");
return this;
}
}
}