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

com.softlayer.api.service.account.partner.referral.Prospect Maven / Gradle / Ivy

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

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.survey.Question;
import java.util.List;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_Account_Partner_Referral_Prospect
 */
@ApiType("SoftLayer_Account_Partner_Referral_Prospect")
public class Prospect extends com.softlayer.api.service.user.customer.Prospect {

    @ApiProperty(canBeNullOrNotSet = true)
    protected String companyName;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        companyNameSpecified = true;
        this.companyName = companyName;
    }

    protected boolean companyNameSpecified;

    public boolean isCompanyNameSpecified() {
        return companyNameSpecified;
    }

    public void unsetCompanyName() {
        companyName = null;
        companyNameSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String emailAddress;

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        emailAddressSpecified = true;
        this.emailAddress = emailAddress;
    }

    protected boolean emailAddressSpecified;

    public boolean isEmailAddressSpecified() {
        return emailAddressSpecified;
    }

    public void unsetEmailAddress() {
        emailAddress = null;
        emailAddressSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String firstName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        firstNameSpecified = true;
        this.firstName = firstName;
    }

    protected boolean firstNameSpecified;

    public boolean isFirstNameSpecified() {
        return firstNameSpecified;
    }

    public void unsetFirstName() {
        firstName = null;
        firstNameSpecified = false;
    }

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

    @ApiProperty(canBeNullOrNotSet = true)
    protected String lastName;

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        lastNameSpecified = true;
        this.lastName = lastName;
    }

    protected boolean lastNameSpecified;

    public boolean isLastNameSpecified() {
        return lastNameSpecified;
    }

    public void unsetLastName() {
        lastName = null;
        lastNameSpecified = 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_Account_Partner_Referral_Prospect
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Account_Partner_Referral_Prospect")
    public static interface Service extends com.softlayer.api.Service {

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

        /**
         * Create a new Referral Partner Prospect 
         *
         * @see SoftLayer_Account_Partner_Referral_Prospect::createProspect
         */
        @ApiMethod
        public Prospect createProspect(com.softlayer.api.service.container.referral.partner.Prospect templateObject, Boolean commit);

        /**
         * @see SoftLayer_Account_Partner_Referral_Prospect::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Prospect getObject();

        /**
         * Retrieves Questions for a Referral Partner Survey 
         *
         * @see SoftLayer_Account_Partner_Referral_Prospect::getSurveyQuestions
         */
        @ApiMethod
        public List getSurveyQuestions();

    }

    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#createProspect}
         */
        public Future createProspect(com.softlayer.api.service.container.referral.partner.Prospect templateObject, Boolean commit);

        public Future createProspect(com.softlayer.api.service.container.referral.partner.Prospect templateObject, Boolean commit, ResponseHandler callback);

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

        public Future getObject(ResponseHandler callback);

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

        public Future getSurveyQuestions(ResponseHandler> callback);

    }

    public static class Mask extends com.softlayer.api.service.user.customer.Prospect.Mask {

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy