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

com.emc.storageos.model.vpool.ManagedResourcesCapacity Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2013 EMC Corporation
 * All Rights Reserved
 */
package com.emc.storageos.model.vpool;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.codehaus.jackson.annotate.JsonProperty;

import java.util.ArrayList;
import java.util.List;

@XmlRootElement
public class ManagedResourcesCapacity {

    private List resourceCapacityList = new ArrayList();

    /**
     * A list of managed resource capacity response instances.
     * 
     * @valid none
     */
    @XmlElement
    public List getResourceCapacityList() {
        if (resourceCapacityList == null) {
            resourceCapacityList = new ArrayList();
        }
        return resourceCapacityList;
    }

    public void setResourceCapacityList(
            List resourceCapacityList) {
        this.resourceCapacityList = resourceCapacityList;
    }

    @XmlRootElement
    public static class ManagedResourceCapacity {

        private CapacityResourceType type;
        private long numResources;
        private double resourceCapacity;

        /**
         * The type of the resources.
         * 
         * @valid VOLUME
         * @valid FILESHARE
         * @valid POOL
         * @valid BUCKET
         */
        @XmlElement
        public CapacityResourceType getType() {
            return type;
        }

        public void setType(CapacityResourceType type) {
            this.type = type;
        }

        /**
         * The number of resources.
         * 
         * @valid none
         */
        @XmlElement(name = "nResources")
        @JsonProperty("nResources")
        public long getNumResources() {
            return numResources;
        }

        public void setNumResources(long numResources) {
            this.numResources = numResources;
        }

        /**
         * The capacity of the resources.
         * 
         * @valid none
         */
        @XmlElement
        public double getResourceCapacity() {
            return resourceCapacity;
        }

        public void setResourceCapacity(double resourceCapacity) {
            this.resourceCapacity = resourceCapacity;
        }

    }

    public enum CapacityResourceType {
        VOLUME,
        FILESHARE,
        POOL, 
        BUCKET
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy