All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.configuration.template.section.definition.Value Maven / Gradle / Ivy

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