/*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.file;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Attributes associated with a file system Quota directory, specified
* during the Quota directory creation.
*
*/
@XmlRootElement(name = "quota_directory_modify")
public class QuotaDirectoryUpdateParam {
private Boolean oplock;
private String size; // Quota size - hard limit.
// UNIX, NTFS, Mixed
private String securityStyle;
private int softLimit;
private int notificationLimit;
private int softGrace;
public QuotaDirectoryUpdateParam() {
}
public QuotaDirectoryUpdateParam(Boolean oplock, String size, String securityStyle) {
this.oplock = oplock;
this.size = size;
this.securityStyle = securityStyle;
}
/**
* Limit total space usage within this file system directory in Bytes.
*
*/
@XmlElement(name = "size")
public String getSize() {
return size;
}
public void setSize(String size) {
this.size = size;
}
/**
* Flag to specify Read/Write cache enable for this quota directory.
*
*/
@XmlElement(name = "oplock")
public Boolean getOpLock() {
return oplock;
}
public void setOpLock(Boolean oplock) {
this.oplock = oplock;
}
/**
* Security style for the Quota directory. Default is
* "UNIX".
* Valid values:
* UNIX
* NIFS
* Mixed
*/
@XmlElement(name = "security_style")
public String getSecurityStyle() {
return securityStyle;
}
public void setSecurityStyle(String securityStyle) {
this.securityStyle = securityStyle;
}
@XmlElement(name="soft_limit")
public int getSoftLimit() {
return softLimit;
}
public void setSoftLimit(int softLimit) {
this.softLimit = softLimit;
}
@XmlElement(name="notification_limit")
public int getNotificationLimit() {
return notificationLimit;
}
public void setNotificationLimit(int notificationLimit) {
this.notificationLimit = notificationLimit;
}
@XmlElement(name="soft_grace")
public int getSoftGrace() {
return softGrace;
}
public void setSoftGrace(int softGrace) {
this.softGrace = softGrace;
}
}