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

com.softlayer.api.service.hardware.component.motherboard.reboot.Time Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.hardware.component.Model;

/**
 * The SoftLayer_Hardware_Component_Motherboard_Reboot_Time contains the average reboot times for motherboards. There are two types of average times.  One is for motherboards without raid, and the other is for motherboards with raid.  These times are based on averages and have been gathered through numerous test cases. 
 *
 * @see SoftLayer_Hardware_Component_Motherboard_Reboot_Time
 */
@ApiType("SoftLayer_Hardware_Component_Motherboard_Reboot_Time")
public class Time extends Entity {

    /**
     * Motherboard's specifications (manufacturer, version, etc....)
     */
    @ApiProperty
    protected Model hardwareComponentModel;

    public Model getHardwareComponentModel() {
        return hardwareComponentModel;
    }

    public void setHardwareComponentModel(Model hardwareComponentModel) {
        this.hardwareComponentModel = hardwareComponentModel;
    }

    /**
     * Average reboot time in seconds for the motherboard when raid is installed.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long withRaid;

    public Long getWithRaid() {
        return withRaid;
    }

    public void setWithRaid(Long withRaid) {
        withRaidSpecified = true;
        this.withRaid = withRaid;
    }

    protected boolean withRaidSpecified;

    public boolean isWithRaidSpecified() {
        return withRaidSpecified;
    }

    public void unsetWithRaid() {
        withRaid = null;
        withRaidSpecified = false;
    }

    /**
     * Average reboot time in seconds for the motherboard when NO raid is installed.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long withoutRaid;

    public Long getWithoutRaid() {
        return withoutRaid;
    }

    public void setWithoutRaid(Long withoutRaid) {
        withoutRaidSpecified = true;
        this.withoutRaid = withoutRaid;
    }

    protected boolean withoutRaidSpecified;

    public boolean isWithoutRaidSpecified() {
        return withoutRaidSpecified;
    }

    public void unsetWithoutRaid() {
        withoutRaid = null;
        withoutRaidSpecified = false;
    }

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

        public com.softlayer.api.service.hardware.component.Model.Mask hardwareComponentModel() {
            return withSubMask("hardwareComponentModel", com.softlayer.api.service.hardware.component.Model.Mask.class);
        }

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy