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

com.softlayer.api.service.auxiliary.press.Release Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.auxiliary.press;

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 com.softlayer.api.service.auxiliary.press.release.Content;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;

/**
 * The SoftLayer_Auxiliary_Press_Release service is associated with all actions pertaining to the press release management tool.  It can be used to obtain a single press release, all press releases, press releases for a given year and highlighted press releases. 
 *
 * @see SoftLayer_Auxiliary_Press_Release
 */
@ApiType("SoftLayer_Auxiliary_Press_Release")
public class Release extends Entity {

    @ApiProperty
    protected List about;

    public List getAbout() {
        if (about == null) {
            about = new ArrayList();
        }
        return about;
    }

    @ApiProperty
    protected List contacts;

    public List getContacts() {
        if (contacts == null) {
            contacts = new ArrayList();
        }
        return contacts;
    }

    @ApiProperty
    protected List mediaPartners;

    public List getMediaPartners() {
        if (mediaPartners == null) {
            mediaPartners = new ArrayList();
        }
        return mediaPartners;
    }

    @ApiProperty
    protected Content pressReleaseContent;

    public Content getPressReleaseContent() {
        return pressReleaseContent;
    }

    public void setPressReleaseContent(Content pressReleaseContent) {
        this.pressReleaseContent = pressReleaseContent;
    }

    /**
     * A press release's internal identifier.
     */
    @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 data a press release was published.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar publishDate;

    public GregorianCalendar getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(GregorianCalendar publishDate) {
        publishDateSpecified = true;
        this.publishDate = publishDate;
    }

    protected boolean publishDateSpecified;

    public boolean isPublishDateSpecified() {
        return publishDateSpecified;
    }

    public void unsetPublishDate() {
        publishDate = null;
        publishDateSpecified = false;
    }

    /**
     * A press release's location.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String releaseLocation;

    public String getReleaseLocation() {
        return releaseLocation;
    }

    public void setReleaseLocation(String releaseLocation) {
        releaseLocationSpecified = true;
        this.releaseLocation = releaseLocation;
    }

    protected boolean releaseLocationSpecified;

    public boolean isReleaseLocationSpecified() {
        return releaseLocationSpecified;
    }

    public void unsetReleaseLocation() {
        releaseLocation = null;
        releaseLocationSpecified = false;
    }

    /**
     * A press release's sub-title.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String subTitle;

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        subTitleSpecified = true;
        this.subTitle = subTitle;
    }

    protected boolean subTitleSpecified;

    public boolean isSubTitleSpecified() {
        return subTitleSpecified;
    }

    public void unsetSubTitle() {
        subTitle = null;
        subTitleSpecified = false;
    }

    /**
     * A press release's title.
     */
    @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;
    }

    /**
     * Whether or not a press release is highlighted on the SoftLayer Website.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Boolean websiteHighlightFlag;

    public Boolean getWebsiteHighlightFlag() {
        return websiteHighlightFlag;
    }

    public void setWebsiteHighlightFlag(Boolean websiteHighlightFlag) {
        websiteHighlightFlagSpecified = true;
        this.websiteHighlightFlag = websiteHighlightFlag;
    }

    protected boolean websiteHighlightFlagSpecified;

    public boolean isWebsiteHighlightFlagSpecified() {
        return websiteHighlightFlagSpecified;
    }

    public void unsetWebsiteHighlightFlag() {
        websiteHighlightFlag = null;
        websiteHighlightFlagSpecified = false;
    }

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

    public Long getAboutCount() {
        return aboutCount;
    }

    public void setAboutCount(Long aboutCount) {
        this.aboutCount = aboutCount;
    }

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

    public Long getContactCount() {
        return contactCount;
    }

    public void setContactCount(Long contactCount) {
        this.contactCount = contactCount;
    }

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

    public Long getMediaPartnerCount() {
        return mediaPartnerCount;
    }

    public void setMediaPartnerCount(Long mediaPartnerCount) {
        this.mediaPartnerCount = mediaPartnerCount;
    }

    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());
    }

    /**
     * The SoftLayer_Auxiliary_Press_Release service is associated with all actions pertaining to the press release management tool.  It can be used to obtain a single press release, all press releases, press releases for a given year and highlighted press releases. 
     *
     * @see SoftLayer_Auxiliary_Press_Release
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Auxiliary_Press_Release")
    public static interface Service extends com.softlayer.api.Service {

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

        /**
         * Retrieve an array of SoftLayer_Auxiliary_Press_Release data types, which contain all press releases. 
         *
         * @see SoftLayer_Auxiliary_Press_Release::getAllObjects
         */
        @ApiMethod
        public List getAllObjects();

        /**
         * getObject retrieves the SoftLayer_Auxiliary_Press_Release object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Auxiliary_Press_Release service. 
         *
         * @see SoftLayer_Auxiliary_Press_Release::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Release getObject();

        /**
         * Retrieve an array of SoftLayer_Auxiliary_Press_Release data types, which contain all press releases. 
         *
         * @see SoftLayer_Auxiliary_Press_Release::getRenderedPressRelease
         */
        @ApiMethod(instanceRequired = true)
        public List getRenderedPressRelease();

        /**
         * Retrieve an array of SoftLayer_Auxiliary_Press_Release data types, which contain all press releases for a given year and or result limit. 
         *
         * @see SoftLayer_Auxiliary_Press_Release::getRenderedPressReleases
         */
        @ApiMethod
        public List getRenderedPressReleases(String resultLimit, String year);

        /**
         * Retrieve an array of SoftLayer_Auxiliary_Press_Release data types, which have the website highlight flag set. 
         *
         * @see SoftLayer_Auxiliary_Press_Release::getWebsiteHighlightPressReleases
         */
        @ApiMethod
        public List getWebsiteHighlightPressReleases();

        /**
         * @see SoftLayer_Auxiliary_Press_Release::getAbout
         */
        @ApiMethod(instanceRequired = true)
        public List getAbout();

        /**
         * @see SoftLayer_Auxiliary_Press_Release::getContacts
         */
        @ApiMethod(instanceRequired = true)
        public List getContacts();

        /**
         * @see SoftLayer_Auxiliary_Press_Release::getMediaPartners
         */
        @ApiMethod(instanceRequired = true)
        public List getMediaPartners();

        /**
         * @see SoftLayer_Auxiliary_Press_Release::getPressReleaseContent
         */
        @ApiMethod(instanceRequired = true)
        public Content getPressReleaseContent();

    }

    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);

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

        public Future getRenderedPressRelease(ResponseHandler> callback);

        /**
         * Async version of {@link Service#getRenderedPressReleases}
         */
        public Future> getRenderedPressReleases(String resultLimit, String year);

        public Future getRenderedPressReleases(String resultLimit, String year, ResponseHandler> callback);

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

        public Future getWebsiteHighlightPressReleases(ResponseHandler> callback);

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

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

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

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

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

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

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

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

    }

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

        public com.softlayer.api.service.auxiliary.press.release.about.press.Release.Mask about() {
            return withSubMask("about", com.softlayer.api.service.auxiliary.press.release.about.press.Release.Mask.class);
        }

        public com.softlayer.api.service.auxiliary.press.release.contact.press.Release.Mask contacts() {
            return withSubMask("contacts", com.softlayer.api.service.auxiliary.press.release.contact.press.Release.Mask.class);
        }

        public com.softlayer.api.service.auxiliary.press.release.media.partner.press.Release.Mask mediaPartners() {
            return withSubMask("mediaPartners", com.softlayer.api.service.auxiliary.press.release.media.partner.press.Release.Mask.class);
        }

        public com.softlayer.api.service.auxiliary.press.release.Content.Mask pressReleaseContent() {
            return withSubMask("pressReleaseContent", com.softlayer.api.service.auxiliary.press.release.Content.Mask.class);
        }

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

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

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy