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

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

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

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.Generic;

/**
 * The SoftLayer_Hardware_Component_Model_Generic_Attribute data type contains information relating to a single SoftLayer generic component model.  Generic component model attributes can hold any information to describe functionality of the model. For Example: The number of cores that a processor has. 
 *
 * @see SoftLayer_Hardware_Component_Model_Generic_Attribute
 */
@ApiType("SoftLayer_Hardware_Component_Model_Generic_Attribute")
public class Attribute extends Entity {

    /**
     * An attributes generic component model.
     */
    @ApiProperty
    protected Generic hardwareGenericComponentModel;

    public Generic getHardwareGenericComponentModel() {
        return hardwareGenericComponentModel;
    }

    public void setHardwareGenericComponentModel(Generic hardwareGenericComponentModel) {
        this.hardwareGenericComponentModel = hardwareGenericComponentModel;
    }

    /**
     * A generic component model 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.component.model.Generic.Mask hardwareGenericComponentModel() {
            return withSubMask("hardwareGenericComponentModel", com.softlayer.api.service.hardware.component.model.Generic.Mask.class);
        }

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy