com.softlayer.api.service.network.backbone.location.Dependent 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.network.backbone.location;
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 java.util.List;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Network_Backbone_Location_Dependent
*/
@ApiType("SoftLayer_Network_Backbone_Location_Dependent")
public class Dependent extends Entity {
@ApiProperty
protected Location dependentLocation;
public Location getDependentLocation() {
return dependentLocation;
}
public void setDependentLocation(Location dependentLocation) {
this.dependentLocation = dependentLocation;
}
@ApiProperty
protected Location sourceLocation;
public Location getSourceLocation() {
return sourceLocation;
}
public void setSourceLocation(Location sourceLocation) {
this.sourceLocation = sourceLocation;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long dependentLocationId;
public Long getDependentLocationId() {
return dependentLocationId;
}
public void setDependentLocationId(Long dependentLocationId) {
dependentLocationIdSpecified = true;
this.dependentLocationId = dependentLocationId;
}
protected boolean dependentLocationIdSpecified;
public boolean isDependentLocationIdSpecified() {
return dependentLocationIdSpecified;
}
public void unsetDependentLocationId() {
dependentLocationId = null;
dependentLocationIdSpecified = 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 Long sourceLocationId;
public Long getSourceLocationId() {
return sourceLocationId;
}
public void setSourceLocationId(Long sourceLocationId) {
sourceLocationIdSpecified = true;
this.sourceLocationId = sourceLocationId;
}
protected boolean sourceLocationIdSpecified;
public boolean isSourceLocationIdSpecified() {
return sourceLocationIdSpecified;
}
public void unsetSourceLocationId() {
sourceLocationId = null;
sourceLocationIdSpecified = 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_Network_Backbone_Location_Dependent
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Network_Backbone_Location_Dependent")
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_Network_Backbone_Location_Dependent::getAllObjects
*/
@ApiMethod
public List getAllObjects();
/**
* @see SoftLayer_Network_Backbone_Location_Dependent::getObject
*/
@ApiMethod(instanceRequired = true)
public Dependent getObject();
/**
* @see SoftLayer_Network_Backbone_Location_Dependent::getSourceDependentsByName
*/
@ApiMethod
public Location getSourceDependentsByName(String locationName);
/**
* @see SoftLayer_Network_Backbone_Location_Dependent::getDependentLocation
*/
@ApiMethod(instanceRequired = true)
public Location getDependentLocation();
/**
* @see SoftLayer_Network_Backbone_Location_Dependent::getSourceLocation
*/
@ApiMethod(instanceRequired = true)
public Location getSourceLocation();
}
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#getAllObjects}
*/
public Future> getAllObjects();
public Future> getAllObjects(ResponseHandler> callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getSourceDependentsByName}
*/
public Future getSourceDependentsByName(String locationName);
public Future> getSourceDependentsByName(String locationName, ResponseHandler callback);
/**
* Async version of {@link Service#getDependentLocation}
*/
public Future getDependentLocation();
/**
* Async callback version of {@link Service#getDependentLocation}
*/
public Future> getDependentLocation(ResponseHandler callback);
/**
* Async version of {@link Service#getSourceLocation}
*/
public Future getSourceLocation();
/**
* Async callback version of {@link Service#getSourceLocation}
*/
public Future> getSourceLocation(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Location.Mask dependentLocation() {
return withSubMask("dependentLocation", com.softlayer.api.service.Location.Mask.class);
}
public com.softlayer.api.service.Location.Mask sourceLocation() {
return withSubMask("sourceLocation", com.softlayer.api.service.Location.Mask.class);
}
public Mask dependentLocationId() {
withLocalProperty("dependentLocationId");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask sourceLocationId() {
withLocalProperty("sourceLocationId");
return this;
}
}
}