com.softlayer.api.service.resource.group.Template 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.resource.group;
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.product.Package;
import com.softlayer.api.service.resource.group.template.Member;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Resource_Group_Template
*/
@ApiType("SoftLayer_Resource_Group_Template")
public class Template extends Entity {
@ApiProperty
protected List children;
public List getChildren() {
if (children == null) {
children = new ArrayList();
}
return children;
}
@ApiProperty
protected List members;
public List getMembers() {
if (members == null) {
members = new ArrayList();
}
return members;
}
@ApiProperty("package")
protected Package templatePackage;
public Package getTemplatePackage() {
return templatePackage;
}
public void setTemplatePackage(Package templatePackage) {
this.templatePackage = templatePackage;
}
/**
* A resource group template's description.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String description;
public String getDescription() {
return description;
}
public void setDescription(String description) {
descriptionSpecified = true;
this.description = description;
}
protected boolean descriptionSpecified;
public boolean isDescriptionSpecified() {
return descriptionSpecified;
}
public void unsetDescription() {
description = null;
descriptionSpecified = 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;
}
/**
* A resource group template's keyname.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String keyName;
public String getKeyName() {
return keyName;
}
public void setKeyName(String keyName) {
keyNameSpecified = true;
this.keyName = keyName;
}
protected boolean keyNameSpecified;
public boolean isKeyNameSpecified() {
return keyNameSpecified;
}
public void unsetKeyName() {
keyName = null;
keyNameSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long childrenCount;
public Long getChildrenCount() {
return childrenCount;
}
public void setChildrenCount(Long childrenCount) {
this.childrenCount = childrenCount;
}
/**
* A count of
*/
@ApiProperty
protected Long memberCount;
public Long getMemberCount() {
return memberCount;
}
public void setMemberCount(Long memberCount) {
this.memberCount = memberCount;
}
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_Resource_Group_Template
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Resource_Group_Template")
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_Resource_Group_Template::getAllObjects
*/
@ApiMethod
public List getAllObjects();
/**
* @see SoftLayer_Resource_Group_Template::getObject
*/
@ApiMethod(instanceRequired = true)
public Template getObject();
/**
* @see SoftLayer_Resource_Group_Template::getChildren
*/
@ApiMethod(instanceRequired = true)
public List getChildren();
/**
* @see SoftLayer_Resource_Group_Template::getMembers
*/
@ApiMethod(instanceRequired = true)
public List getMembers();
/**
* @see SoftLayer_Resource_Group_Template::getTemplatePackage
*/
@ApiMethod(instanceRequired = true)
public Package getTemplatePackage();
}
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#getChildren}
*/
public Future> getChildren();
/**
* Async callback version of {@link Service#getChildren}
*/
public Future> getChildren(ResponseHandler> callback);
/**
* Async version of {@link Service#getMembers}
*/
public Future> getMembers();
/**
* Async callback version of {@link Service#getMembers}
*/
public Future> getMembers(ResponseHandler> callback);
/**
* Async version of {@link Service#getTemplatePackage}
*/
public Future getTemplatePackage();
/**
* Async callback version of {@link Service#getTemplatePackage}
*/
public Future> getTemplatePackage(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Template.Mask children() {
return withSubMask("children", Template.Mask.class);
}
public com.softlayer.api.service.resource.group.template.Member.Mask members() {
return withSubMask("members", com.softlayer.api.service.resource.group.template.Member.Mask.class);
}
public com.softlayer.api.service.product.Package.Mask templatePackage() {
return withSubMask("package", com.softlayer.api.service.product.Package.Mask.class);
}
public Mask description() {
withLocalProperty("description");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask keyName() {
withLocalProperty("keyName");
return this;
}
public Mask childrenCount() {
withLocalProperty("childrenCount");
return this;
}
public Mask memberCount() {
withLocalProperty("memberCount");
return this;
}
}
}