com.softlayer.api.service.configuration.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.configuration;
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.configuration.template.Section;
import com.softlayer.api.service.configuration.template.section.Definition;
import com.softlayer.api.service.configuration.template.section.Reference;
import com.softlayer.api.service.configuration.template.section.definition.Value;
import com.softlayer.api.service.product.Item;
import com.softlayer.api.service.user.Customer;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;
/**
* The SoftLayer_Configuration_Template data type contains general information of an arbitrary resource.
*
* @see SoftLayer_Configuration_Template
*/
@ApiType("SoftLayer_Configuration_Template")
public class Template extends Entity {
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
@ApiProperty
protected List configurationSections;
public List getConfigurationSections() {
if (configurationSections == null) {
configurationSections = new ArrayList();
}
return configurationSections;
}
@ApiProperty
protected List defaultValues;
public List getDefaultValues() {
if (defaultValues == null) {
defaultValues = new ArrayList();
}
return defaultValues;
}
@ApiProperty
protected List definitions;
public List getDefinitions() {
if (definitions == null) {
definitions = new ArrayList();
}
return definitions;
}
@ApiProperty
protected Item item;
public Item getItem() {
return item;
}
public void setItem(Item item) {
this.item = item;
}
@ApiProperty
protected Reference linkedSectionReferences;
public Reference getLinkedSectionReferences() {
return linkedSectionReferences;
}
public void setLinkedSectionReferences(Reference linkedSectionReferences) {
this.linkedSectionReferences = linkedSectionReferences;
}
@ApiProperty
protected Template parent;
public Template getParent() {
return parent;
}
public void setParent(Template parent) {
this.parent = parent;
}
@ApiProperty
protected Customer user;
public Customer getUser() {
return user;
}
public void setUser(Customer user) {
this.user = user;
}
/**
* Internal identifier of a SoftLayer account that this configuration template belongs to
*/
@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;
}
/**
* Created date
*/
@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;
}
/**
* Configuration template 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;
}
/**
* Internal identifier of a configuration template.
*/
@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;
}
/**
* Internal identifier of a product item that this configuration template is associated with
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long itemId;
public Long getItemId() {
return itemId;
}
public void setItemId(Long itemId) {
itemIdSpecified = true;
this.itemId = itemId;
}
protected boolean itemIdSpecified;
public boolean isItemIdSpecified() {
return itemIdSpecified;
}
public void unsetItemId() {
itemId = null;
itemIdSpecified = false;
}
/**
* Last modified date
*/
@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;
}
/**
* Configuration template name
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String name;
public String getName() {
return name;
}
public void setName(String name) {
nameSpecified = true;
this.name = name;
}
protected boolean nameSpecified;
public boolean isNameSpecified() {
return nameSpecified;
}
public void unsetName() {
name = null;
nameSpecified = false;
}
/**
* Internal identifier of the parent configuration template
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long parentId;
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
parentIdSpecified = true;
this.parentId = parentId;
}
protected boolean parentIdSpecified;
public boolean isParentIdSpecified() {
return parentIdSpecified;
}
public void unsetParentId() {
parentId = null;
parentIdSpecified = false;
}
/**
* Internal identifier of a user that last modified this configuration template
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long userRecordId;
public Long getUserRecordId() {
return userRecordId;
}
public void setUserRecordId(Long userRecordId) {
userRecordIdSpecified = true;
this.userRecordId = userRecordId;
}
protected boolean userRecordIdSpecified;
public boolean isUserRecordIdSpecified() {
return userRecordIdSpecified;
}
public void unsetUserRecordId() {
userRecordId = null;
userRecordIdSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long configurationSectionCount;
public Long getConfigurationSectionCount() {
return configurationSectionCount;
}
public void setConfigurationSectionCount(Long configurationSectionCount) {
this.configurationSectionCount = configurationSectionCount;
}
/**
* A count of
*/
@ApiProperty
protected Long defaultValueCount;
public Long getDefaultValueCount() {
return defaultValueCount;
}
public void setDefaultValueCount(Long defaultValueCount) {
this.defaultValueCount = defaultValueCount;
}
/**
* A count of
*/
@ApiProperty
protected Long definitionCount;
public Long getDefinitionCount() {
return definitionCount;
}
public void setDefinitionCount(Long definitionCount) {
this.definitionCount = definitionCount;
}
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());
}
/**
* Configuration template class encapsulated an arbitrary configuration values for various resources.
*
* @see SoftLayer_Configuration_Template
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Configuration_Template")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Copy a configuration template and returns a newly created template copy
*
* @see SoftLayer_Configuration_Template::copyTemplate
*/
@ApiMethod(instanceRequired = true)
public Template copyTemplate(Template templateObject);
/**
* Deletes a customer configuration template.
*
* @see SoftLayer_Configuration_Template::deleteObject
*/
@ApiMethod(instanceRequired = true)
public Boolean deleteObject();
/**
* Edit the object by passing in a modified instance of the object. Use this method to modify configuration template name or description.
*
* @see SoftLayer_Configuration_Template::editObject
*/
@ApiMethod(instanceRequired = true)
public Boolean editObject(Template templateObject);
/**
* Retrieves all available configuration templates
*
* @see SoftLayer_Configuration_Template::getAllObjects
*/
@ApiMethod
public List getAllObjects();
/**
* @see SoftLayer_Configuration_Template::getObject
*/
@ApiMethod(instanceRequired = true)
public Template getObject();
/**
* Updates default configuration values.
*
* @see SoftLayer_Configuration_Template::updateDefaultValues
*/
@ApiMethod(instanceRequired = true)
public Boolean updateDefaultValues(List configurationValues);
/**
* @see SoftLayer_Configuration_Template::getAccount
*/
@ApiMethod(instanceRequired = true)
public Account getAccount();
/**
* @see SoftLayer_Configuration_Template::getConfigurationSections
*/
@ApiMethod(instanceRequired = true)
public List getConfigurationSections();
/**
* @see SoftLayer_Configuration_Template::getDefaultValues
*/
@ApiMethod(instanceRequired = true)
public List getDefaultValues();
/**
* @see SoftLayer_Configuration_Template::getDefinitions
*/
@ApiMethod(instanceRequired = true)
public List getDefinitions();
/**
* @see SoftLayer_Configuration_Template::getItem
*/
@ApiMethod(instanceRequired = true)
public Item getItem();
/**
* @see SoftLayer_Configuration_Template::getLinkedSectionReferences
*/
@ApiMethod(instanceRequired = true)
public Reference getLinkedSectionReferences();
/**
* @see SoftLayer_Configuration_Template::getParent
*/
@ApiMethod(instanceRequired = true)
public Template getParent();
/**
* @see SoftLayer_Configuration_Template::getUser
*/
@ApiMethod(instanceRequired = true)
public Customer getUser();
}
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#copyTemplate}
*/
public Future copyTemplate(Template templateObject);
public Future> copyTemplate(Template 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(Template templateObject);
public Future> editObject(Template templateObject, ResponseHandler callback);
/**
* 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#updateDefaultValues}
*/
public Future updateDefaultValues(List configurationValues);
public Future> updateDefaultValues(List configurationValues, 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#getConfigurationSections}
*/
public Future> getConfigurationSections();
/**
* Async callback version of {@link Service#getConfigurationSections}
*/
public Future> getConfigurationSections(ResponseHandler> callback);
/**
* Async version of {@link Service#getDefaultValues}
*/
public Future> getDefaultValues();
/**
* Async callback version of {@link Service#getDefaultValues}
*/
public Future> getDefaultValues(ResponseHandler> callback);
/**
* Async version of {@link Service#getDefinitions}
*/
public Future> getDefinitions();
/**
* Async callback version of {@link Service#getDefinitions}
*/
public Future> getDefinitions(ResponseHandler> callback);
/**
* Async version of {@link Service#getItem}
*/
public Future- getItem();
/**
* Async callback version of {@link Service#getItem}
*/
public Future> getItem(ResponseHandler
- callback);
/**
* Async version of {@link Service#getLinkedSectionReferences}
*/
public Future
getLinkedSectionReferences();
/**
* Async callback version of {@link Service#getLinkedSectionReferences}
*/
public Future> getLinkedSectionReferences(ResponseHandler callback);
/**
* Async version of {@link Service#getParent}
*/
public Future getParent();
/**
* Async callback version of {@link Service#getParent}
*/
public Future> getParent(ResponseHandler callback);
/**
* Async version of {@link Service#getUser}
*/
public Future getUser();
/**
* Async callback version of {@link Service#getUser}
*/
public Future> getUser(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.configuration.template.Section.Mask configurationSections() {
return withSubMask("configurationSections", com.softlayer.api.service.configuration.template.Section.Mask.class);
}
public com.softlayer.api.service.configuration.template.section.definition.Value.Mask defaultValues() {
return withSubMask("defaultValues", com.softlayer.api.service.configuration.template.section.definition.Value.Mask.class);
}
public com.softlayer.api.service.configuration.template.section.Definition.Mask definitions() {
return withSubMask("definitions", com.softlayer.api.service.configuration.template.section.Definition.Mask.class);
}
public com.softlayer.api.service.product.Item.Mask item() {
return withSubMask("item", com.softlayer.api.service.product.Item.Mask.class);
}
public com.softlayer.api.service.configuration.template.section.Reference.Mask linkedSectionReferences() {
return withSubMask("linkedSectionReferences", com.softlayer.api.service.configuration.template.section.Reference.Mask.class);
}
public Template.Mask parent() {
return withSubMask("parent", Template.Mask.class);
}
public com.softlayer.api.service.user.Customer.Mask user() {
return withSubMask("user", com.softlayer.api.service.user.Customer.Mask.class);
}
public Mask accountId() {
withLocalProperty("accountId");
return this;
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask description() {
withLocalProperty("description");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask itemId() {
withLocalProperty("itemId");
return this;
}
public Mask modifyDate() {
withLocalProperty("modifyDate");
return this;
}
public Mask name() {
withLocalProperty("name");
return this;
}
public Mask parentId() {
withLocalProperty("parentId");
return this;
}
public Mask userRecordId() {
withLocalProperty("userRecordId");
return this;
}
public Mask configurationSectionCount() {
withLocalProperty("configurationSectionCount");
return this;
}
public Mask defaultValueCount() {
withLocalProperty("defaultValueCount");
return this;
}
public Mask definitionCount() {
withLocalProperty("definitionCount");
return this;
}
}
}