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

com.softlayer.api.service.location.group.Pricing Maven / Gradle / Ivy

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

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.location.Group;
import com.softlayer.api.service.product.item.Price;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Future;

/**
 * A pricing location group is a collection of locations that receive specific pricing. 
 *
 * @see SoftLayer_Location_Group_Pricing
 */
@ApiType("SoftLayer_Location_Group_Pricing")
public class Pricing extends Group {

    @ApiProperty
    protected List prices;

    public List getPrices() {
        if (prices == null) {
            prices = new ArrayList();
        }
        return prices;
    }

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

    public Long getPriceCount() {
        return priceCount;
    }

    public void setPriceCount(Long priceCount) {
        this.priceCount = priceCount;
    }

    public static Service service(ApiClient client) {
        return client.createService(Service.class, null);
    }

    /**
     * A pricing location group is a collection of locations that receive specific pricing. 
     *
     * @see SoftLayer_Location_Group_Pricing
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Location_Group_Pricing")
    public static interface Service extends Group.Service {

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

        /**
         * @see SoftLayer_Location_Group_Pricing::getAllObjects
         */
        @ApiMethod("getAllObjects")
        public List getAllObjectsForPricing();

        /**
         * @see SoftLayer_Location_Group_Pricing::getObject
         */
        @ApiMethod(value = "getObject", instanceRequired = true)
        public Pricing getObjectForPricing();

        /**
         * @see SoftLayer_Location_Group_Pricing::getPrices
         */
        @ApiMethod(instanceRequired = true)
        public List getPrices();

    }

    public static interface ServiceAsync extends Group.ServiceAsync {

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

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

        public Future getAllObjectsForPricing(ResponseHandler> callback);

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

        public Future getObjectForPricing(ResponseHandler callback);

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

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

    }

    public static class Mask extends com.softlayer.api.service.location.Group.Mask {

        public com.softlayer.api.service.product.item.Price.Mask prices() {
            return withSubMask("prices", com.softlayer.api.service.product.item.Price.Mask.class);
        }

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

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy