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

com.softlayer.api.service.hardware.Function 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;

/**
 * The SoftLayer_Hardware_Function data type contains a generic object type for a piece of hardware, like switch, firewall, server, etc.. 
 *
 * @see SoftLayer_Hardware_Function
 */
@ApiType("SoftLayer_Hardware_Function")
public class Function extends Entity {

    /**
     * The code associated with this hardware function.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        codeSpecified = true;
        this.code = code;
    }

    protected boolean codeSpecified;

    public boolean isCodeSpecified() {
        return codeSpecified;
    }

    public void unsetCode() {
        code = null;
        codeSpecified = false;
    }

    /**
     * The description for a hardware function.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        descriptionSpecified = true;
        this.description = description;
    }

    protected boolean descriptionSpecified;

    public boolean isDescriptionSpecified() {
        return descriptionSpecified;
    }

    public void unsetDescription() {
        description = null;
        descriptionSpecified = false;
    }

    /**
     * The id associated with a hardware function.
     */
    @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;
    }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy