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

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

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.hardware.component.model;

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;
import com.softlayer.api.service.hardware.component.model.attribute.Type;

/**
 * The SoftLayer_Hardware_Component__Model_Attribute data type contains general information relating to a single hardware setting or attribute for a component model. 
 *
 * @see SoftLayer_Hardware_Component_Model_Attribute
 */
@ApiType("SoftLayer_Hardware_Component_Model_Attribute")
public class Attribute extends Entity {

    @ApiProperty
    protected Model hardwareComponent;

    public Model getHardwareComponent() {
        return hardwareComponent;
    }

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

    @ApiProperty
    protected Type hardwareComponentAttributeType;

    public Type getHardwareComponentAttributeType() {
        return hardwareComponentAttributeType;
    }

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

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

    public Long getAttributeTypeId() {
        return attributeTypeId;
    }

    public void setAttributeTypeId(Long attributeTypeId) {
        attributeTypeIdSpecified = true;
        this.attributeTypeId = attributeTypeId;
    }

    protected boolean attributeTypeIdSpecified;

    public boolean isAttributeTypeIdSpecified() {
        return attributeTypeIdSpecified;
    }

    public void unsetAttributeTypeId() {
        attributeTypeId = null;
        attributeTypeIdSpecified = false;
    }

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

    public Long getHardwareComponentModelId() {
        return hardwareComponentModelId;
    }

    public void setHardwareComponentModelId(Long hardwareComponentModelId) {
        hardwareComponentModelIdSpecified = true;
        this.hardwareComponentModelId = hardwareComponentModelId;
    }

    protected boolean hardwareComponentModelIdSpecified;

    public boolean isHardwareComponentModelIdSpecified() {
        return hardwareComponentModelIdSpecified;
    }

    public void unsetHardwareComponentModelId() {
        hardwareComponentModelId = null;
        hardwareComponentModelIdSpecified = false;
    }

    /**
     * A hardware component model attribute's value.  A value can have many different values depending on the attributes [[SoftLayer_Hardware_Component_Model_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.Model.Mask hardwareComponent() {
            return withSubMask("hardwareComponent", com.softlayer.api.service.hardware.component.Model.Mask.class);
        }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy