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

com.softlayer.api.service.flexiblecredit.Program Maven / Gradle / Ivy

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

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.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.flexiblecredit.Affiliate;
import com.softlayer.api.service.flexiblecredit.company.Type;
import java.util.List;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_FlexibleCredit_Program
 */
@ApiType("SoftLayer_FlexibleCredit_Program")
public class Program extends Entity {

    /**
     * Primary ID of the Flexible Credit Program
     */
    @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;
    }

    /**
     * Unique name for the Flexible Credit Program
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String keyName;

    public String getKeyName() {
        return keyName;
    }

    public void setKeyName(String keyName) {
        keyNameSpecified = true;
        this.keyName = keyName;
    }

    protected boolean keyNameSpecified;

    public boolean isKeyNameSpecified() {
        return keyNameSpecified;
    }

    public void unsetKeyName() {
        keyName = null;
        keyNameSpecified = false;
    }

    /**
     * Name of the Flexible Credit Program.
     */
    @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_FlexibleCredit_Program
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_FlexibleCredit_Program")
    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_FlexibleCredit_Program::getAffiliatesAvailableForSelfEnrollmentByVerificationType
         */
        @ApiMethod(instanceRequired = true)
        public List getAffiliatesAvailableForSelfEnrollmentByVerificationType(String verificationTypeKeyName);

        /**
         * @see SoftLayer_FlexibleCredit_Program::getCompanyTypes
         */
        @ApiMethod
        public List getCompanyTypes();

        /**
         * @see SoftLayer_FlexibleCredit_Program::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Program getObject();

        /**
         * @see SoftLayer_FlexibleCredit_Program::selfEnrollNewAccount
         */
        @ApiMethod(instanceRequired = true)
        public Account selfEnrollNewAccount(Account accountTemplate);

    }

    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#getAffiliatesAvailableForSelfEnrollmentByVerificationType}
         */
        public Future> getAffiliatesAvailableForSelfEnrollmentByVerificationType(String verificationTypeKeyName);

        public Future getAffiliatesAvailableForSelfEnrollmentByVerificationType(String verificationTypeKeyName, ResponseHandler> callback);

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

        public Future getCompanyTypes(ResponseHandler> callback);

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

        public Future getObject(ResponseHandler callback);

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

        public Future selfEnrollNewAccount(Account accountTemplate, ResponseHandler callback);

    }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy