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

com.softlayer.api.service.layout.profile.Customer Maven / Gradle / Ivy

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

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.layout.Profile;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_Layout_Profile_Customer
 */
@ApiType("SoftLayer_Layout_Profile_Customer")
public class Customer extends Profile {

    @ApiProperty
    protected com.softlayer.api.service.user.Customer userRecord;

    public com.softlayer.api.service.user.Customer getUserRecord() {
        return userRecord;
    }

    public void setUserRecord(com.softlayer.api.service.user.Customer userRecord) {
        this.userRecord = userRecord;
    }

    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_Layout_Profile_Customer
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Layout_Profile_Customer")
    public static interface Service extends Profile.Service {

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

        /**
         * @see SoftLayer_Layout_Profile_Customer::getObject
         */
        @ApiMethod(value = "getObject", instanceRequired = true)
        public Customer getObjectForCustomer();

        /**
         * @see SoftLayer_Layout_Profile_Customer::getUserRecord
         */
        @ApiMethod(instanceRequired = true)
        public com.softlayer.api.service.user.Customer getUserRecord();

    }

    public static interface ServiceAsync extends Profile.ServiceAsync {

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

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

        public Future getObjectForCustomer(ResponseHandler callback);

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

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

    }

    public static class Mask extends com.softlayer.api.service.layout.Profile.Mask {

        public com.softlayer.api.service.user.Customer.Mask userRecord() {
            return withSubMask("userRecord", com.softlayer.api.service.user.Customer.Mask.class);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy