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

org.aarboard.nextcloud.api.provisioning.Quota Maven / Gradle / Ivy

The newest version!
package org.aarboard.nextcloud.api.provisioning;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import java.util.Optional;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Quota {
    @JsonDeserialize(using = QuotaDeserializer.class)
    private Optional quota = Optional.empty();
    private long free;
    private long used;
    private long total;
    private float relative;

    public Optional getQuota() {
        return quota;
    }

    public long getFree() {
        return free;
    }

    public long getUsed() {
        return used;
    }

    public long getTotal() {
        return total;
    }

    public float getRelative() {
        return relative;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy