com.emc.storageos.model.varray.EndpointChanges Maven / Gradle / Ivy
/*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.varray;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
/**
* Parameter for endpoint changes
*/
public class EndpointChanges {
private List add;
private List remove;
/**
* List of endpoints to be added
*
* @return list of endpoints to be added
*/
@XmlElementWrapper(required = false)
@XmlElement(name = "endpoint")
public List getAdd() {
return add;
}
public void setAdd(List add) {
this.add = add;
}
/**
* List of endpoints to be removed
*
* @return list of endpoints to be removed
*/
@XmlElementWrapper(required = false)
@XmlElement(name = "endpoint")
public List getRemove() {
return remove;
}
public void setRemove(List remove) {
this.remove = remove;
}
public boolean hasAdded() {
return (add != null && !add.isEmpty());
}
public boolean hasRemoved() {
return (remove != null && !remove.isEmpty());
}
public boolean hasUpdates() {
return (hasAdded() || hasRemoved());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy