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

com.softlayer.api.service.hardware.resource.Configuration Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Hardware;
import com.softlayer.api.service.hardware.resource.configuration.Property;
import com.softlayer.api.service.hardware.resource.configuration.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * @see SoftLayer_Hardware_Resource_Configuration
 */
@ApiType("SoftLayer_Hardware_Resource_Configuration")
public class Configuration extends Entity {

    @ApiProperty
    protected Hardware hardware;

    public Hardware getHardware() {
        return hardware;
    }

    public void setHardware(Hardware hardware) {
        this.hardware = hardware;
    }

    @ApiProperty
    protected List properties;

    public List getProperties() {
        if (properties == null) {
            properties = new ArrayList();
        }
        return properties;
    }

    @ApiProperty
    protected Type type;

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long configurationTypeId;

    public Long getConfigurationTypeId() {
        return configurationTypeId;
    }

    public void setConfigurationTypeId(Long configurationTypeId) {
        configurationTypeIdSpecified = true;
        this.configurationTypeId = configurationTypeId;
    }

    protected boolean configurationTypeIdSpecified;

    public boolean isConfigurationTypeIdSpecified() {
        return configurationTypeIdSpecified;
    }

    public void unsetConfigurationTypeId() {
        configurationTypeId = null;
        configurationTypeIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareId;

    public Long getHardwareId() {
        return hardwareId;
    }

    public void setHardwareId(Long hardwareId) {
        hardwareIdSpecified = true;
        this.hardwareId = hardwareId;
    }

    protected boolean hardwareIdSpecified;

    public boolean isHardwareIdSpecified() {
        return hardwareIdSpecified;
    }

    public void unsetHardwareId() {
        hardwareId = null;
        hardwareIdSpecified = false;
    }

    /**
     * A count of 
     */
    @ApiProperty
    protected Long propertyCount;

    public Long getPropertyCount() {
        return propertyCount;
    }

    public void setPropertyCount(Long propertyCount) {
        this.propertyCount = propertyCount;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

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

        public com.softlayer.api.service.hardware.resource.configuration.Property.Mask properties() {
            return withSubMask("properties", com.softlayer.api.service.hardware.resource.configuration.Property.Mask.class);
        }

        public com.softlayer.api.service.hardware.resource.configuration.Type.Mask type() {
            return withSubMask("type", com.softlayer.api.service.hardware.resource.configuration.Type.Mask.class);
        }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy