package com.emc.ecs.managementClient.model;

import java.util.Map;

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

@XmlRootElement(name = "namespace_update")
public class NamespaceUpdate extends NamespaceModel {
    private String vpoolsAddedToAllowedVpoolsList;
    private String vpoolsAddedToDisallowedVpoolsList;
    private String vpoolsRemovedFromAllowedVpoolsList;
    private String vpoolsRemovedFromDisallowedVpoolsList;

    public NamespaceUpdate(Map<String, Object> params) {
	setExternalGroupNames(
		(String) params.get("domain-group-admins"));
	setIsEncryptionEnabled(
		(Boolean) params.get("encrypted"));
	setIsComplianceEnabled(
		(Boolean) params.get("compliance-enabled"));
	setIsStaleAllowed(
		(Boolean) params.get("access-during-outage"));
    }

    public NamespaceUpdate() {
	super();
    }

    @XmlElement(name = "vpools_added_to_allowed_vpools_list")
    public String getVpoolsAddedToAllowedVpoolsList() {
	return vpoolsAddedToAllowedVpoolsList;
    }

    public void setVpoolsAddedToAllowedVpoolsList(
	    String vpoolsAddedToAllowedVpoolsList) {
	this.vpoolsAddedToAllowedVpoolsList = vpoolsAddedToAllowedVpoolsList;
    }

    @XmlElement(name = "vpools_added_to_disallowed_vpools_list")
    public String getVpoolsAddedToDisallowedVpoolsList() {
	return vpoolsAddedToDisallowedVpoolsList;
    }

    public void setVpoolsAddedToDisallowedVpoolsList(
	    String vpoolsAddedToDisallowedVpoolsList) {
	this.vpoolsAddedToDisallowedVpoolsList = vpoolsAddedToDisallowedVpoolsList;
    }

    @XmlElement(name = "vpools_removed_from_allowed_vpools_list")
    public String getVpoolsRemovedFromAllowedVpoolsList() {
	return vpoolsRemovedFromAllowedVpoolsList;
    }

    public void setVpoolsRemovedFromAllowedVpoolsList(
	    String vpoolsRemovedFromAllowedVpoolsList) {
	this.vpoolsRemovedFromAllowedVpoolsList = vpoolsRemovedFromAllowedVpoolsList;
    }

    @XmlElement(name = "vpools_removed_from_disallowed_vpools_list")
    public String getVpoolsRemovedFromDisallowedVpoolsList() {
	return vpoolsRemovedFromDisallowedVpoolsList;
    }

    public void setVpoolsRemovedFromDisallowedVpoolsList(
	    String vpoolsRemovedFromDisallowedVpoolsList) {
	this.vpoolsRemovedFromDisallowedVpoolsList = vpoolsRemovedFromDisallowedVpoolsList;
    }
}

@@ -804,16 +804,102 @@
 age%22));%0A
+%09setDefaultBucketBlockSize(%0A%09%09(int) params.getOrDefault(%22default-bucket-quota%22, -1));%0A
     %7D%0A%0A 

Change NamespaceUpdate defabutl bucket block size to integer