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

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

There is a newer version: 0.3.4
Show 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.attribute.Type;

/**
 * The SoftLayer_Hardware_Component_Attribute data type contains general information relating to a single hardware setting or attribute for a component model. For Example: A RAID controller may be setup for many different RAID configurations.  A RAID controller with a configuration of RAID-1 will have a single attribute for this RAID setting. 
 *
 * @see SoftLayer_Hardware_Component_Attribute
 */
@ApiType("SoftLayer_Hardware_Component_Attribute")
public class Attribute extends Entity {

    /**
     * A hardware component attribute's associated [[SoftLayer_Hardware_Component|Hardware Component]].
     */
    @ApiProperty
    protected Component hardwareComponent;

    public Component getHardwareComponent() {
        return hardwareComponent;
    }

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

    /**
     * A hardware component attribute's associated [[SoftLayer_Hardware_Component_Attribute_Type|type]].
     */
    @ApiProperty
    protected Type hardwareComponentAttributeType;

    public Type getHardwareComponentAttributeType() {
        return hardwareComponentAttributeType;
    }

    public void setHardwareComponentAttributeType(Type hardwareComponentAttributeType) {
        this.hardwareComponentAttributeType = hardwareComponentAttributeType;
    }

    /**
     * A hardware component attribute's associated [[SoftLayer_Hardware_Component_Attribute_Type|type]] Id.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareComponentAttributeTypeId;

    public Long getHardwareComponentAttributeTypeId() {
        return hardwareComponentAttributeTypeId;
    }

    public void setHardwareComponentAttributeTypeId(Long hardwareComponentAttributeTypeId) {
        hardwareComponentAttributeTypeIdSpecified = true;
        this.hardwareComponentAttributeTypeId = hardwareComponentAttributeTypeId;
    }

    protected boolean hardwareComponentAttributeTypeIdSpecified;

    public boolean isHardwareComponentAttributeTypeIdSpecified() {
        return hardwareComponentAttributeTypeIdSpecified;
    }

    public void unsetHardwareComponentAttributeTypeId() {
        hardwareComponentAttributeTypeId = null;
        hardwareComponentAttributeTypeIdSpecified = false;
    }

    /**
     * A hardware component attribute's associated [[SoftLayer_Hardware_Component|hardware component]] Id.
     */
    @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;
    }

    /**
     * A hardware component attribute's value.  A value can have many different values depending on the attributes [[SoftLayer_Hardware_Component_Attribute_Type|type]].
     */
    @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 class Mask extends com.softlayer.api.service.Entity.Mask {

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

        public com.softlayer.api.service.hardware.component.attribute.Type.Mask hardwareComponentAttributeType() {
            return withSubMask("hardwareComponentAttributeType", com.softlayer.api.service.hardware.component.attribute.Type.Mask.class);
        }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy