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

com.softlayer.api.service.location.reservation.Rack Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.location.reservation;

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 com.softlayer.api.service.Location;
import com.softlayer.api.service.location.Reservation;
import com.softlayer.api.service.location.reservation.rack.Member;
import com.softlayer.api.service.network.bandwidth.version1.Allotment;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_Location_Reservation_Rack
 */
@ApiType("SoftLayer_Location_Reservation_Rack")
public class Rack extends Entity {

    /**
     * The bandwidth allotment that the reservation belongs to.
     */
    @ApiProperty
    protected Allotment allotment;

    public Allotment getAllotment() {
        return allotment;
    }

    public void setAllotment(Allotment allotment) {
        this.allotment = allotment;
    }

    /**
     * Members of the rack.
     */
    @ApiProperty
    protected List children;

    public List getChildren() {
        if (children == null) {
            children = new ArrayList();
        }
        return children;
    }

    @ApiProperty
    protected Location location;

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    @ApiProperty
    protected Reservation locationReservation;

    public Reservation getLocationReservation() {
        return locationReservation;
    }

    public void setLocationReservation(Reservation locationReservation) {
        this.locationReservation = locationReservation;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long locationId;

    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        locationIdSpecified = true;
        this.locationId = locationId;
    }

    protected boolean locationIdSpecified;

    public boolean isLocationIdSpecified() {
        return locationIdSpecified;
    }

    public void unsetLocationId() {
        locationId = null;
        locationIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long locationReservationId;

    public Long getLocationReservationId() {
        return locationReservationId;
    }

    public void setLocationReservationId(Long locationReservationId) {
        locationReservationIdSpecified = true;
        this.locationReservationId = locationReservationId;
    }

    protected boolean locationReservationIdSpecified;

    public boolean isLocationReservationIdSpecified() {
        return locationReservationIdSpecified;
    }

    public void unsetLocationReservationId() {
        locationReservationId = null;
        locationReservationIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long networkConnectionCapacity;

    public Long getNetworkConnectionCapacity() {
        return networkConnectionCapacity;
    }

    public void setNetworkConnectionCapacity(Long networkConnectionCapacity) {
        networkConnectionCapacitySpecified = true;
        this.networkConnectionCapacity = networkConnectionCapacity;
    }

    protected boolean networkConnectionCapacitySpecified;

    public boolean isNetworkConnectionCapacitySpecified() {
        return networkConnectionCapacitySpecified;
    }

    public void unsetNetworkConnectionCapacity() {
        networkConnectionCapacity = null;
        networkConnectionCapacitySpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long networkConnectionReservation;

    public Long getNetworkConnectionReservation() {
        return networkConnectionReservation;
    }

    public void setNetworkConnectionReservation(Long networkConnectionReservation) {
        networkConnectionReservationSpecified = true;
        this.networkConnectionReservation = networkConnectionReservation;
    }

    protected boolean networkConnectionReservationSpecified;

    public boolean isNetworkConnectionReservationSpecified() {
        return networkConnectionReservationSpecified;
    }

    public void unsetNetworkConnectionReservation() {
        networkConnectionReservation = null;
        networkConnectionReservationSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long powerConnectionCapacity;

    public Long getPowerConnectionCapacity() {
        return powerConnectionCapacity;
    }

    public void setPowerConnectionCapacity(Long powerConnectionCapacity) {
        powerConnectionCapacitySpecified = true;
        this.powerConnectionCapacity = powerConnectionCapacity;
    }

    protected boolean powerConnectionCapacitySpecified;

    public boolean isPowerConnectionCapacitySpecified() {
        return powerConnectionCapacitySpecified;
    }

    public void unsetPowerConnectionCapacity() {
        powerConnectionCapacity = null;
        powerConnectionCapacitySpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long powerConnectionReservation;

    public Long getPowerConnectionReservation() {
        return powerConnectionReservation;
    }

    public void setPowerConnectionReservation(Long powerConnectionReservation) {
        powerConnectionReservationSpecified = true;
        this.powerConnectionReservation = powerConnectionReservation;
    }

    protected boolean powerConnectionReservationSpecified;

    public boolean isPowerConnectionReservationSpecified() {
        return powerConnectionReservationSpecified;
    }

    public void unsetPowerConnectionReservation() {
        powerConnectionReservation = null;
        powerConnectionReservationSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long slotCapacity;

    public Long getSlotCapacity() {
        return slotCapacity;
    }

    public void setSlotCapacity(Long slotCapacity) {
        slotCapacitySpecified = true;
        this.slotCapacity = slotCapacity;
    }

    protected boolean slotCapacitySpecified;

    public boolean isSlotCapacitySpecified() {
        return slotCapacitySpecified;
    }

    public void unsetSlotCapacity() {
        slotCapacity = null;
        slotCapacitySpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long slotReservation;

    public Long getSlotReservation() {
        return slotReservation;
    }

    public void setSlotReservation(Long slotReservation) {
        slotReservationSpecified = true;
        this.slotReservation = slotReservation;
    }

    protected boolean slotReservationSpecified;

    public boolean isSlotReservationSpecified() {
        return slotReservationSpecified;
    }

    public void unsetSlotReservation() {
        slotReservation = null;
        slotReservationSpecified = false;
    }

    /**
     * A count of members of the rack.
     */
    @ApiProperty
    protected Long childrenCount;

    public Long getChildrenCount() {
        return childrenCount;
    }

    public void setChildrenCount(Long childrenCount) {
        this.childrenCount = childrenCount;
    }

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

    /**
     * @see SoftLayer_Location_Reservation_Rack
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Location_Reservation_Rack")
    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_Location_Reservation_Rack::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Rack getObject();

        /**
         * The bandwidth allotment that the reservation belongs to.
         *
         * @see SoftLayer_Location_Reservation_Rack::getAllotment
         */
        @ApiMethod(instanceRequired = true)
        public Allotment getAllotment();

        /**
         * Members of the rack.
         *
         * @see SoftLayer_Location_Reservation_Rack::getChildren
         */
        @ApiMethod(instanceRequired = true)
        public List getChildren();

        /**
         * @see SoftLayer_Location_Reservation_Rack::getLocation
         */
        @ApiMethod(instanceRequired = true)
        public Location getLocation();

        /**
         * @see SoftLayer_Location_Reservation_Rack::getLocationReservation
         */
        @ApiMethod(instanceRequired = true)
        public Reservation getLocationReservation();

    }

    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);

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

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

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

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

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

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

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

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

    }

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

        public com.softlayer.api.service.network.bandwidth.version1.Allotment.Mask allotment() {
            return withSubMask("allotment", com.softlayer.api.service.network.bandwidth.version1.Allotment.Mask.class);
        }

        public com.softlayer.api.service.location.reservation.rack.Member.Mask children() {
            return withSubMask("children", com.softlayer.api.service.location.reservation.rack.Member.Mask.class);
        }

        public com.softlayer.api.service.Location.Mask location() {
            return withSubMask("location", com.softlayer.api.service.Location.Mask.class);
        }

        public com.softlayer.api.service.location.Reservation.Mask locationReservation() {
            return withSubMask("locationReservation", com.softlayer.api.service.location.Reservation.Mask.class);
        }

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

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

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy