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

com.softlayer.api.service.auxiliary.marketing.Event Maven / Gradle / Ivy

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

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;

/**
 * @see SoftLayer_Auxiliary_Marketing_Event
 */
@ApiType("SoftLayer_Auxiliary_Marketing_Event")
public class Event extends Entity {

    @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;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long enabledFlag;

    public Long getEnabledFlag() {
        return enabledFlag;
    }

    public void setEnabledFlag(Long enabledFlag) {
        enabledFlagSpecified = true;
        this.enabledFlag = enabledFlag;
    }

    protected boolean enabledFlagSpecified;

    public boolean isEnabledFlagSpecified() {
        return enabledFlagSpecified;
    }

    public void unsetEnabledFlag() {
        enabledFlag = null;
        enabledFlagSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar endDate;

    public GregorianCalendar getEndDate() {
        return endDate;
    }

    public void setEndDate(GregorianCalendar endDate) {
        endDateSpecified = true;
        this.endDate = endDate;
    }

    protected boolean endDateSpecified;

    public boolean isEndDateSpecified() {
        return endDateSpecified;
    }

    public void unsetEndDate() {
        endDate = null;
        endDateSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String location;

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        locationSpecified = true;
        this.location = location;
    }

    protected boolean locationSpecified;

    public boolean isLocationSpecified() {
        return locationSpecified;
    }

    public void unsetLocation() {
        location = null;
        locationSpecified = false;
    }

    @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;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar startDate;

    public GregorianCalendar getStartDate() {
        return startDate;
    }

    public void setStartDate(GregorianCalendar startDate) {
        startDateSpecified = true;
        this.startDate = startDate;
    }

    protected boolean startDateSpecified;

    public boolean isStartDateSpecified() {
        return startDateSpecified;
    }

    public void unsetStartDate() {
        startDate = null;
        startDateSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        titleSpecified = true;
        this.title = title;
    }

    protected boolean titleSpecified;

    public boolean isTitleSpecified() {
        return titleSpecified;
    }

    public void unsetTitle() {
        title = null;
        titleSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String url;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        urlSpecified = true;
        this.url = url;
    }

    protected boolean urlSpecified;

    public boolean isUrlSpecified() {
        return urlSpecified;
    }

    public void unsetUrl() {
        url = null;
        urlSpecified = false;
    }

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

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

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

        /**
         * This method will return a collection of SoftLayer_Auxiliary_Marketing_Event objects ordered in ascending order by start date. 
         *
         * @see SoftLayer_Auxiliary_Marketing_Event::getMarketingEvents
         */
        @ApiMethod
        public List getMarketingEvents();

        /**
         * @see SoftLayer_Auxiliary_Marketing_Event::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Event 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#getMarketingEvents}
         */
        public Future> getMarketingEvents();

        public Future getMarketingEvents(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 createDate() {
            withLocalProperty("createDate");
            return this;
        }

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy