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

com.softlayer.api.service.auxiliary.press.release.Content Maven / Gradle / Ivy

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

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.concurrent.Future;

/**
 * The SoftLayer_Auxiliary_Press_Release_Content service is associated with all actions pertaining to the press release management tool.  It can be used to obtain a the press release content for a given press release. 
 *
 * @see SoftLayer_Auxiliary_Press_Release_Content
 */
@ApiType("SoftLayer_Auxiliary_Press_Release_Content")
public class Content extends Entity {

    /**
     * the id of a single press release
     */
    @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 press release id that the content
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long pressReleaseId;

    public Long getPressReleaseId() {
        return pressReleaseId;
    }

    public void setPressReleaseId(Long pressReleaseId) {
        pressReleaseIdSpecified = true;
        this.pressReleaseId = pressReleaseId;
    }

    protected boolean pressReleaseIdSpecified;

    public boolean isPressReleaseIdSpecified() {
        return pressReleaseIdSpecified;
    }

    public void unsetPressReleaseId() {
        pressReleaseId = null;
        pressReleaseIdSpecified = false;
    }

    /**
     * the content of a press release
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String text;

    public String getText() {
        return text;
    }

    public void setText(String text) {
        textSpecified = true;
        this.text = text;
    }

    protected boolean textSpecified;

    public boolean isTextSpecified() {
        return textSpecified;
    }

    public void unsetText() {
        text = null;
        textSpecified = 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());
    }

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

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

        /**
         * getObject retrieves the SoftLayer_Auxiliary_Press_Release_Content 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_Content::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Content 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#getObject}
         */
        public Future getObject();

        public Future getObject(ResponseHandler callback);

    }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy