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

org.openstack4j.openstack.storage.block.domain.CinderBlockQuotaSetUsage Maven / Gradle / Ivy

package org.openstack4j.openstack.storage.block.domain;

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

import org.openstack4j.model.common.QuotaDetails;
import org.openstack4j.model.storage.block.BlockQuotaSetUsage;
import org.openstack4j.openstack.common.QuotaDetailsEntity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;

/**
 * Block Quota-Set Usage Details
 * 
 * @author Jeremy Unruh
 */
@JsonRootName("quota_set")
@JsonIgnoreProperties(ignoreUnknown=true)
public class CinderBlockQuotaSetUsage implements BlockQuotaSetUsage {

    private static final long serialVersionUID = 1L;
    
    @JsonProperty
    private QuotaDetailsEntity snapshots;
    @JsonProperty
    private QuotaDetailsEntity volumes;
    @JsonProperty
    private QuotaDetailsEntity gigabytes;
    
    
    @Override
    public QuotaDetails getSnapshots() {
        return snapshots;
    }

    @Override
    public QuotaDetails getVolumes() {
        return volumes;
    }

    @Override
    public QuotaDetails getGigabytes() {
        return gigabytes;
    }
    
    @Override
    public String toString() {
        return toStringHelper(this).add("snapshots", snapshots).add("volumes", volumes).add("gigabytes", gigabytes).toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy