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

com.softlayer.api.service.hardware.Blade Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.hardware;

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.Hardware;
import java.util.GregorianCalendar;
import java.util.concurrent.Future;

/**
 * The SoftLayer_Hardware_Blade service provides specific information about blade servers. 
 *
 * @see SoftLayer_Hardware_Blade
 */
@ApiType("SoftLayer_Hardware_Blade")
public class Blade extends Entity {

    @ApiProperty
    protected Hardware hardwareChild;

    public Hardware getHardwareChild() {
        return hardwareChild;
    }

    public void setHardwareChild(Hardware hardwareChild) {
        this.hardwareChild = hardwareChild;
    }

    @ApiProperty
    protected Hardware hardwareParent;

    public Hardware getHardwareParent() {
        return hardwareParent;
    }

    public void setHardwareParent(Hardware hardwareParent) {
        this.hardwareParent = hardwareParent;
    }

    @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;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long disabled;

    public Long getDisabled() {
        return disabled;
    }

    public void setDisabled(Long disabled) {
        disabledSpecified = true;
        this.disabled = disabled;
    }

    protected boolean disabledSpecified;

    public boolean isDisabledSpecified() {
        return disabledSpecified;
    }

    public void unsetDisabled() {
        disabled = null;
        disabledSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareChildId;

    public Long getHardwareChildId() {
        return hardwareChildId;
    }

    public void setHardwareChildId(Long hardwareChildId) {
        hardwareChildIdSpecified = true;
        this.hardwareChildId = hardwareChildId;
    }

    protected boolean hardwareChildIdSpecified;

    public boolean isHardwareChildIdSpecified() {
        return hardwareChildIdSpecified;
    }

    public void unsetHardwareChildId() {
        hardwareChildId = null;
        hardwareChildIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareParentId;

    public Long getHardwareParentId() {
        return hardwareParentId;
    }

    public void setHardwareParentId(Long hardwareParentId) {
        hardwareParentIdSpecified = true;
        this.hardwareParentId = hardwareParentId;
    }

    protected boolean hardwareParentIdSpecified;

    public boolean isHardwareParentIdSpecified() {
        return hardwareParentIdSpecified;
    }

    public void unsetHardwareParentId() {
        hardwareParentId = null;
        hardwareParentIdSpecified = 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;
    }

    @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;
    }

    /**
     * The name of this blade as referenced by the operating system.
     */
    @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;
    }

    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());
    }

    /**
     * The SoftLayer_Hardware_Blade service provides specific information about blade servers. 
     *
     * @see SoftLayer_Hardware_Blade
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Hardware_Blade")
    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_Hardware_Blade::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Blade getObject();

        /**
         * @see SoftLayer_Hardware_Blade::getHardwareChild
         */
        @ApiMethod(instanceRequired = true)
        public Hardware getHardwareChild();

        /**
         * @see SoftLayer_Hardware_Blade::getHardwareParent
         */
        @ApiMethod(instanceRequired = true)
        public Hardware getHardwareParent();

    }

    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#getHardwareChild}
         */
        public Future getHardwareChild();

        /**
         * Async callback version of {@link Service#getHardwareChild}
         */
        public Future getHardwareChild(ResponseHandler callback);

        /**
         * Async version of {@link Service#getHardwareParent}
         */
        public Future getHardwareParent();

        /**
         * Async callback version of {@link Service#getHardwareParent}
         */
        public Future getHardwareParent(ResponseHandler callback);

    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public com.softlayer.api.service.Hardware.Mask hardwareChild() {
            return withSubMask("hardwareChild", com.softlayer.api.service.Hardware.Mask.class);
        }

        public com.softlayer.api.service.Hardware.Mask hardwareParent() {
            return withSubMask("hardwareParent", com.softlayer.api.service.Hardware.Mask.class);
        }

        public Mask createDate() {
            withLocalProperty("createDate");
            return this;
        }

        public Mask disabled() {
            withLocalProperty("disabled");
            return this;
        }

        public Mask hardwareChildId() {
            withLocalProperty("hardwareChildId");
            return this;
        }

        public Mask hardwareParentId() {
            withLocalProperty("hardwareParentId");
            return this;
        }

        public Mask id() {
            withLocalProperty("id");
            return this;
        }

        public Mask modifyDate() {
            withLocalProperty("modifyDate");
            return this;
        }

        public Mask name() {
            withLocalProperty("name");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy