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

com.softlayer.api.service.hardware.component.Revision Maven / Gradle / Ivy

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

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;
import com.softlayer.api.service.hardware.component.Firmware;
import java.util.GregorianCalendar;

/**
 * @see SoftLayer_Hardware_Component_Revision
 */
@ApiType("SoftLayer_Hardware_Component_Revision")
public class Revision extends Entity {

    /**
     * The firmware build date
     */
    @ApiProperty
    protected GregorianCalendar biosDate;

    public GregorianCalendar getBiosDate() {
        return biosDate;
    }

    public void setBiosDate(GregorianCalendar biosDate) {
        this.biosDate = biosDate;
    }

    /**
     * The Firmware installed on this record's Hardware Component.
     */
    @ApiProperty
    protected Firmware firmware;

    public Firmware getFirmware() {
        return firmware;
    }

    public void setFirmware(Firmware firmware) {
        this.firmware = firmware;
    }

    /**
     * The Hardware Component this revision record applies to.
     */
    @ApiProperty
    protected Component hardwareComponent;

    public Component getHardwareComponent() {
        return hardwareComponent;
    }

    public void setHardwareComponent(Component hardwareComponent) {
        this.hardwareComponent = hardwareComponent;
    }

    /**
     * The firmware revision
     */
    @ApiProperty
    protected String revision;

    public String getRevision() {
        return revision;
    }

    public void setRevision(String revision) {
        this.revision = revision;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long firmwareVersionId;

    public Long getFirmwareVersionId() {
        return firmwareVersionId;
    }

    public void setFirmwareVersionId(Long firmwareVersionId) {
        firmwareVersionIdSpecified = true;
        this.firmwareVersionId = firmwareVersionId;
    }

    protected boolean firmwareVersionIdSpecified;

    public boolean isFirmwareVersionIdSpecified() {
        return firmwareVersionIdSpecified;
    }

    public void unsetFirmwareVersionId() {
        firmwareVersionId = null;
        firmwareVersionIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareComponentId;

    public Long getHardwareComponentId() {
        return hardwareComponentId;
    }

    public void setHardwareComponentId(Long hardwareComponentId) {
        hardwareComponentIdSpecified = true;
        this.hardwareComponentId = hardwareComponentId;
    }

    protected boolean hardwareComponentIdSpecified;

    public boolean isHardwareComponentIdSpecified() {
        return hardwareComponentIdSpecified;
    }

    public void unsetHardwareComponentId() {
        hardwareComponentId = null;
        hardwareComponentIdSpecified = 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;
    }

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

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

        public Firmware.Mask firmware() {
            return withSubMask("firmware", Firmware.Mask.class);
        }

        public com.softlayer.api.service.hardware.Component.Mask hardwareComponent() {
            return withSubMask("hardwareComponent", com.softlayer.api.service.hardware.Component.Mask.class);
        }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy