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

com.softlayer.api.service.product.pkg.Attribute Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.product.Package;
import com.softlayer.api.service.product.pkg.attribute.Type;

/**
 * @see SoftLayer_Product_Package_Attribute
 */
@ApiType("SoftLayer_Product_Package_Attribute")
public class Attribute extends Entity {

    @ApiProperty
    protected Type attributeType;

    public Type getAttributeType() {
        return attributeType;
    }

    public void setAttributeType(Type attributeType) {
        this.attributeType = attributeType;
    }

    @ApiProperty("package")
    protected Package attributePackage;

    public Package getAttributePackage() {
        return attributePackage;
    }

    public void setAttributePackage(Package attributePackage) {
        this.attributePackage = attributePackage;
    }

    @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.product.pkg.attribute.Type.Mask attributeType() {
            return withSubMask("attributeType", com.softlayer.api.service.product.pkg.attribute.Type.Mask.class);
        }

        public com.softlayer.api.service.product.Package.Mask attributePackage() {
            return withSubMask("package", com.softlayer.api.service.product.Package.Mask.class);
        }

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy