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

com.softlayer.api.service.layout.Preference Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.layout.preference.Type;

/**
 * The SoftLayer_Layout_Preference contains definitions for default layout item preferences 
 *
 * @see SoftLayer_Layout_Preference
 */
@ApiType("SoftLayer_Layout_Preference")
public class Preference extends Entity {

    /**
     * The type of the preference object
     */
    @ApiProperty
    protected Type layoutPreferenceType;

    public Type getLayoutPreferenceType() {
        return layoutPreferenceType;
    }

    public void setLayoutPreferenceType(Type layoutPreferenceType) {
        this.layoutPreferenceType = layoutPreferenceType;
    }

    /**
     * The internal identifier of a layout preference
     */
    @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;
    }

    /**
     * The internal identifier of the related [[SoftLayer_Layout_Preference_Type]]
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long layoutPreferenceTypeId;

    public Long getLayoutPreferenceTypeId() {
        return layoutPreferenceTypeId;
    }

    public void setLayoutPreferenceTypeId(Long layoutPreferenceTypeId) {
        layoutPreferenceTypeIdSpecified = true;
        this.layoutPreferenceTypeId = layoutPreferenceTypeId;
    }

    protected boolean layoutPreferenceTypeIdSpecified;

    public boolean isLayoutPreferenceTypeIdSpecified() {
        return layoutPreferenceTypeIdSpecified;
    }

    public void unsetLayoutPreferenceTypeId() {
        layoutPreferenceTypeId = null;
        layoutPreferenceTypeIdSpecified = false;
    }

    /**
     * The default value of the preference
     */
    @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.layout.preference.Type.Mask layoutPreferenceType() {
            return withSubMask("layoutPreferenceType", com.softlayer.api.service.layout.preference.Type.Mask.class);
        }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy