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

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

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.hardware.attribute.Type;

/**
 * The SoftLayer_Hardware_Attribute type contains general information for a hardware attribute. Hardware attributes can be assigned to specific hardware objects to describe relatively arbitrary information. 
 *
 * @see SoftLayer_Hardware_Attribute
 */
@ApiType("SoftLayer_Hardware_Attribute")
public class Attribute extends Entity {

    /**
     * The type of hardware attribute that this represents.
     */
    @ApiProperty
    protected Type hardwareAttributeType;

    public Type getHardwareAttributeType() {
        return hardwareAttributeType;
    }

    public void setHardwareAttributeType(Type hardwareAttributeType) {
        this.hardwareAttributeType = hardwareAttributeType;
    }

    /**
     * The unique identifier of a hardware attribute's type.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareAttributeTypeId;

    public Long getHardwareAttributeTypeId() {
        return hardwareAttributeTypeId;
    }

    public void setHardwareAttributeTypeId(Long hardwareAttributeTypeId) {
        hardwareAttributeTypeIdSpecified = true;
        this.hardwareAttributeTypeId = hardwareAttributeTypeId;
    }

    protected boolean hardwareAttributeTypeIdSpecified;

    public boolean isHardwareAttributeTypeIdSpecified() {
        return hardwareAttributeTypeIdSpecified;
    }

    public void unsetHardwareAttributeTypeId() {
        hardwareAttributeTypeId = null;
        hardwareAttributeTypeIdSpecified = false;
    }

    /**
     * A hardware attribute's unique identifier.
     */
    @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;
    }

    /**
     * A hardware attribute's value.
     */
    @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.attribute.Type.Mask hardwareAttributeType() {
            return withSubMask("hardwareAttributeType", com.softlayer.api.service.hardware.attribute.Type.Mask.class);
        }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy