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

com.emc.storageos.model.vpool.VirtualPoolProtectionRPChanges Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2008-2013 EMC Corporation
 * All Rights Reserved
 */
package com.emc.storageos.model.vpool;

import java.util.LinkedHashSet;
import java.util.Set;

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

public class VirtualPoolProtectionRPChanges {

    private Set add;
    private Set remove;
    private ProtectionSourcePolicy sourcePolicy;

    public VirtualPoolProtectionRPChanges() {
    }

    public VirtualPoolProtectionRPChanges(
            Set add,
            Set remove,
            ProtectionSourcePolicy sourcePolicy) {
        this.add = add;
        this.remove = remove;
        this.sourcePolicy = sourcePolicy;
    }

    @XmlElementWrapper(name = "add_copies")
    /**
     * Protection virtual array settings to add to the virtual pool.
     * 
     * @valid none
     */
    @XmlElement(name = "protection_varray_vpool", required = false)
    public Set getAdd() {
        if (add == null) {
            add = new LinkedHashSet();
        }
        return add;
    }

    public void setAdd(Set add) {
        this.add = add;
    }

    @XmlElementWrapper(name = "remove_copies")
    /**
     * Protection virtual array settings to remove from the virtual pool.
     * 
     * @valid none
     */
    @XmlElement(name = "protection_varray_vpool", required = false)
    public Set getRemove() {
        if (remove == null) {
            remove = new LinkedHashSet();
        }
        return remove;
    }

    public void setRemove(Set remove) {
        this.remove = remove;
    }

    /**
     * The protection source policy for the virtual pool.
     * 
     * @valid none
     */
    @XmlElement(name = "source_policy")
    public ProtectionSourcePolicy getSourcePolicy() {
        return sourcePolicy;
    }

    public void setSourcePolicy(ProtectionSourcePolicy sourcePolicy) {
        this.sourcePolicy = sourcePolicy;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy