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

com.emc.storageos.model.network.SanZoneUpdateParam 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.network;

import java.util.ArrayList;
import java.util.List;

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

/**
 * Class captures updating zone members and its name
 */
@XmlRootElement(name = "san_zone_update")
public class SanZoneUpdateParam {

    private String name; // original zone name
    private List addMembers;
    private List removeMembers;

    public SanZoneUpdateParam() {
    }

    /**
     * The zone name.
     * 
     * @valid A name starting with an alpha character and consisting of alpha-numberic characters and underscores.
     */
    @XmlElement(required = true)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * A list of Zone members, each consisting of a WWPN address or alias
     * 
     * @valid A list of WWPN addresses or alias (for example 10:00:00:00:00:00:00:01)
     */
    @XmlElementWrapper(name = "add")
    @XmlElement(name = "member")
    public List getAddMembers() {
        if (addMembers == null) {
            addMembers = new ArrayList();
        }
        return addMembers;
    }

    public void setAddMembers(List addMembers) {
        this.addMembers = addMembers;
    }

    /**
     * A list of Zone members, each consisting of a WWPN address or alias
     * 
     * @valid A list of WWPN addresses or alias (for example 10:00:00:00:00:00:00:01
     */
    @XmlElementWrapper(name = "remove")
    @XmlElement(name = "member")
    public List getRemoveMembers() {
        if (removeMembers == null) {
            removeMembers = new ArrayList();
        }
        return removeMembers;
    }

    public void setRemoveMembers(List removeMembers) {
        this.removeMembers = removeMembers;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy