com.softlayer.api.service.configuration.template.section.definition.Value 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.configuration.template.section.definition;
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.configuration.Template;
import com.softlayer.api.service.configuration.template.section.Definition;
import java.util.GregorianCalendar;
import java.util.concurrent.Future;
/**
* SoftLayer_Configuration_Section_Value is used to set the value for a configuration definition
*
* @see SoftLayer_Configuration_Template_Section_Definition_Value
*/
@ApiType("SoftLayer_Configuration_Template_Section_Definition_Value")
public class Value extends Entity {
@ApiProperty
protected Definition definition;
public Definition getDefinition() {
return definition;
}
public void setDefinition(Definition definition) {
this.definition = definition;
}
@ApiProperty
protected Template template;
public Template getTemplate() {
return template;
}
public void setTemplate(Template template) {
this.template = template;
}
/**
* 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;
}
/**
* Internal identifier of a configuration definition that this configuration value if defined by
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long definitionId;
public Long getDefinitionId() {
return definitionId;
}
public void setDefinitionId(Long definitionId) {
definitionIdSpecified = true;
this.definitionId = definitionId;
}
protected boolean definitionIdSpecified;
public boolean isDefinitionIdSpecified() {
return definitionIdSpecified;
}
public void unsetDefinitionId() {
definitionId = null;
definitionIdSpecified = false;
}
/**
* Internal 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;
}
/**
* Internal identifier of a configuration template that this configuration value belongs to
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long templateId;
public Long getTemplateId() {
return templateId;
}
public void setTemplateId(Long templateId) {
templateIdSpecified = true;
this.templateId = templateId;
}
protected boolean templateIdSpecified;
public boolean isTemplateIdSpecified() {
return templateIdSpecified;
}
public void unsetTemplateId() {
templateId = null;
templateIdSpecified = false;
}
/**
* Internal Configuration value
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String value;
public String getValue() {
return value;
}
public void setValue(String value) {
valueSpecified = true;
this.value = value;
}
protected boolean valueSpecified;
public boolean isValueSpecified() {
return valueSpecified;
}
public void unsetValue() {
value = null;
valueSpecified = false;
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
/**
* SoftLayer_Configuration_Section_Value is used to set the value for a configuration definition
*
* @see SoftLayer_Configuration_Template_Section_Definition_Value
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Configuration_Template_Section_Definition_Value")
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_Configuration_Template_Section_Definition_Value::getObject
*/
@ApiMethod(instanceRequired = true)
public Value getObject();
/**
* @see SoftLayer_Configuration_Template_Section_Definition_Value::getDefinition
*/
@ApiMethod(instanceRequired = true)
public Definition getDefinition();
/**
* @see SoftLayer_Configuration_Template_Section_Definition_Value::getTemplate
*/
@ApiMethod(instanceRequired = true)
public Template getTemplate();
}
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#getDefinition}
*/
public Future getDefinition();
/**
* Async callback version of {@link Service#getDefinition}
*/
public Future> getDefinition(ResponseHandler callback);
/**
* Async version of {@link Service#getTemplate}
*/
public Future getTemplate();
/**
* Async callback version of {@link Service#getTemplate}
*/
public Future> getTemplate(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.configuration.template.section.Definition.Mask definition() {
return withSubMask("definition", com.softlayer.api.service.configuration.template.section.Definition.Mask.class);
}
public com.softlayer.api.service.configuration.Template.Mask template() {
return withSubMask("template", com.softlayer.api.service.configuration.Template.Mask.class);
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask definitionId() {
withLocalProperty("definitionId");
return this;
}
public Mask modifyDate() {
withLocalProperty("modifyDate");
return this;
}
public Mask templateId() {
withLocalProperty("templateId");
return this;
}
public Mask value() {
withLocalProperty("value");
return this;
}
}
}