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

org.openstack4j.openstack.common.QuotaDetailsEntity Maven / Gradle / Ivy

package org.openstack4j.openstack.common;

import static com.google.common.base.Objects.toStringHelper;

import org.openstack4j.model.common.QuotaDetails;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Quota Details Entity describing quota usage
 * 
 * @author Jeremy Unruh
 */
public class QuotaDetailsEntity implements QuotaDetails {

    private static final long serialVersionUID = 1L;

    @JsonProperty("in_use")
    private int inUse;
    @JsonProperty("limit")
    private int limit;
    @JsonProperty("reserved")
    private int reserved;
    
    @Override
    public int getInUse() {
        return inUse;
    }

    @Override
    public int getLimit() {
        return limit;
    }

    @Override
    public int getReserved() {
        return reserved;
    }
    
    @Override
    public String toString() {
        return toStringHelper(this).add("in_use", inUse).add("limit", limit).add("reserved", reserved).toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy