com.emc.storageos.model.block.export.HostsUpdateParam Maven / Gradle / Ivy
/*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.block.export;
import java.net.URI;
import java.util.HashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
/**
* Update parameter for host
*/
public class HostsUpdateParam extends UpdateParam {
public HostsUpdateParam() {
}
public HostsUpdateParam(Set add, Set remove) {
this.add = add;
this.remove = remove;
}
@XmlElementWrapper(required = false)
/**
* List of host URIs to be added to the export group.
* @valid example: [ urn:storageos:Host:2935a936-c821-4e0e-b69c-2d8a6d620ae5: ]
* @valid example: [ ]
*/
@XmlElement(name = "host")
public Set getAdd() {
if (add == null) {
add = new HashSet();
}
return add;
}
public void setAdd(Set add) {
this.add = add;
}
@XmlElementWrapper(required = false)
/**
* List of host URIs to be removed from the export group.
* @valid example: [ urn:storageos:Host:2935a936-c821-4e0e-b69c-2d8a6d620ae5: ]
* @valid example: [ ]
*/
@XmlElement(name = "host")
public Set getRemove() {
if (remove == null) {
remove = new HashSet();
}
return remove;
}
public void setRemove(Set remove) {
this.remove = remove;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy