![JAR search and dependency download from the Maven repository](/logo.png)
com.softlayer.api.service.network.storage.DedicatedCluster 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.storage;
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.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.service.Resource;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Network_Storage_DedicatedCluster
*/
@ApiType("SoftLayer_Network_Storage_DedicatedCluster")
public class DedicatedCluster extends Entity {
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
@ApiProperty
protected Resource serviceResource;
public Resource getServiceResource() {
return serviceResource;
}
public void setServiceResource(Resource serviceResource) {
this.serviceResource = serviceResource;
}
/**
* The SoftLayer_Account->id of the customer account
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long accountId;
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
accountIdSpecified = true;
this.accountId = accountId;
}
protected boolean accountIdSpecified;
public boolean isAccountIdSpecified() {
return accountIdSpecified;
}
public void unsetAccountId() {
accountId = null;
accountIdSpecified = false;
}
/**
* The date when Dedicated service resource entry was created.
*/
@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;
}
/**
* The unique identifier for Dedicated service resource record.
*/
@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;
}
/**
* The cluster Id that is setup as dedicated for the customer.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long serviceResourceId;
public Long getServiceResourceId() {
return serviceResourceId;
}
public void setServiceResourceId(Long serviceResourceId) {
serviceResourceIdSpecified = true;
this.serviceResourceId = serviceResourceId;
}
protected boolean serviceResourceIdSpecified;
public boolean isServiceResourceIdSpecified() {
return serviceResourceIdSpecified;
}
public void unsetServiceResourceId() {
serviceResourceId = null;
serviceResourceIdSpecified = 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_Storage_DedicatedCluster
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Network_Storage_DedicatedCluster")
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_Storage_DedicatedCluster::getDedicatedClusterList
*/
@ApiMethod
public List getDedicatedClusterList();
/**
* @see SoftLayer_Network_Storage_DedicatedCluster::getObject
*/
@ApiMethod(instanceRequired = true)
public DedicatedCluster getObject();
/**
* @see SoftLayer_Network_Storage_DedicatedCluster::getAccount
*/
@ApiMethod(instanceRequired = true)
public Account getAccount();
/**
* @see SoftLayer_Network_Storage_DedicatedCluster::getServiceResource
*/
@ApiMethod(instanceRequired = true)
public Resource getServiceResource();
}
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#getDedicatedClusterList}
*/
public Future> getDedicatedClusterList();
public Future> getDedicatedClusterList(ResponseHandler> callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getAccount}
*/
public Future getAccount();
/**
* Async callback version of {@link Service#getAccount}
*/
public Future> getAccount(ResponseHandler callback);
/**
* Async version of {@link Service#getServiceResource}
*/
public Future getServiceResource();
/**
* Async callback version of {@link Service#getServiceResource}
*/
public Future> getServiceResource(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Account.Mask account() {
return withSubMask("account", com.softlayer.api.service.Account.Mask.class);
}
public com.softlayer.api.service.network.service.Resource.Mask serviceResource() {
return withSubMask("serviceResource", com.softlayer.api.service.network.service.Resource.Mask.class);
}
public Mask accountId() {
withLocalProperty("accountId");
return this;
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask serviceResourceId() {
withLocalProperty("serviceResourceId");
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy