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

com.softlayer.api.service.user.customer.mobiledevice.OperatingSystem Maven / Gradle / Ivy

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

import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;

/**
 * This class represents the mobile operating system installed on a user's registered mobile device. It assists us when determining the how to get a push notification to the user. 
 *
 * @see SoftLayer_User_Customer_MobileDevice_OperatingSystem
 */
@ApiType("SoftLayer_User_Customer_MobileDevice_OperatingSystem")
public class OperatingSystem extends Entity {

    /**
     * Build revision number of the operating system.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long buildVersion;

    public Long getBuildVersion() {
        return buildVersion;
    }

    public void setBuildVersion(Long buildVersion) {
        buildVersionSpecified = true;
        this.buildVersion = buildVersion;
    }

    protected boolean buildVersionSpecified;

    public boolean isBuildVersionSpecified() {
        return buildVersionSpecified;
    }

    public void unsetBuildVersion() {
        buildVersion = null;
        buildVersionSpecified = false;
    }

    /**
     * Create date of the record.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar createDate;

    public GregorianCalendar getCreateDate() {
        return createDate;
    }

    public void setCreateDate(GregorianCalendar createDate) {
        createDateSpecified = true;
        this.createDate = createDate;
    }

    protected boolean createDateSpecified;

    public boolean isCreateDateSpecified() {
        return createDateSpecified;
    }

    public void unsetCreateDate() {
        createDate = null;
        createDateSpecified = false;
    }

    /**
     * Description of the mobile operating system..
     */
    @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;
    }

    /**
     * Indentifier for the record.
     */
    @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;
    }

    /**
     * Major revision number of the operating system.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long majorVersion;

    public Long getMajorVersion() {
        return majorVersion;
    }

    public void setMajorVersion(Long majorVersion) {
        majorVersionSpecified = true;
        this.majorVersion = majorVersion;
    }

    protected boolean majorVersionSpecified;

    public boolean isMajorVersionSpecified() {
        return majorVersionSpecified;
    }

    public void unsetMajorVersion() {
        majorVersion = null;
        majorVersionSpecified = false;
    }

    /**
     * Minor revision number of the operating system.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long minorVersion;

    public Long getMinorVersion() {
        return minorVersion;
    }

    public void setMinorVersion(Long minorVersion) {
        minorVersionSpecified = true;
        this.minorVersion = minorVersion;
    }

    protected boolean minorVersionSpecified;

    public boolean isMinorVersionSpecified() {
        return minorVersionSpecified;
    }

    public void unsetMinorVersion() {
        minorVersion = null;
        minorVersionSpecified = false;
    }

    /**
     * Modify date of the record.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar modifyDate;

    public GregorianCalendar getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(GregorianCalendar modifyDate) {
        modifyDateSpecified = true;
        this.modifyDate = modifyDate;
    }

    protected boolean modifyDateSpecified;

    public boolean isModifyDateSpecified() {
        return modifyDateSpecified;
    }

    public void unsetModifyDate() {
        modifyDate = null;
        modifyDateSpecified = false;
    }

    /**
     * Name of the mobile operating system.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        nameSpecified = true;
        this.name = name;
    }

    protected boolean nameSpecified;

    public boolean isNameSpecified() {
        return nameSpecified;
    }

    public void unsetName() {
        name = null;
        nameSpecified = false;
    }

    public Service asService(ApiClient client) {
        return service(client, id);
    }

    public static Service service(ApiClient client) {
        return client.createService(Service.class, null);
    }

    public static Service service(ApiClient client, Long id) {
        return client.createService(Service.class, id == null ? null : id.toString());
    }

    /**
     * @see SoftLayer_User_Customer_MobileDevice_OperatingSystem
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_User_Customer_MobileDevice_OperatingSystem")
    public static interface Service extends com.softlayer.api.Service {

        public ServiceAsync asAsync();
        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * @see SoftLayer_User_Customer_MobileDevice_OperatingSystem::getAllObjects
         */
        @ApiMethod
        public List getAllObjects();

        /**
         * @see SoftLayer_User_Customer_MobileDevice_OperatingSystem::getObject
         */
        @ApiMethod(instanceRequired = true)
        public OperatingSystem getObject();

    }

    public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {

        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * Async version of {@link Service#getAllObjects}
         */
        public Future> getAllObjects();

        public Future getAllObjects(ResponseHandler> callback);

        /**
         * Async version of {@link Service#getObject}
         */
        public Future getObject();

        public Future getObject(ResponseHandler callback);

    }

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

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

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy