/**
* Copyright (c) 2008-2013 EMC Corporation
* All Rights Reserved
*
* This software contains the intellectual property of EMC Corporation
* or is licensed to EMC Corporation from third parties. Use of this
* software and the intellectual property contained therein is expressly
* limited to the terms and conditions of the License Agreement under which
* it is provided by or on behalf of EMC.
*/
package com.emc.storageos.model.ports;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.emc.storageos.model.pools.VirtualArrayAssignmentChanges;
import com.emc.storageos.model.varray.VirtualArrayResourceUpdateParam;
import java.net.URI;
/**
* Class encapsulates the parameters for a storage port update request.
*/
@XmlRootElement(name = "storage_port_update")
public class StoragePortUpdate extends VirtualArrayResourceUpdateParam {
private URI network;
public StoragePortUpdate() {}
public StoragePortUpdate(URI network) {
super(new VirtualArrayAssignmentChanges());
this.network = network;
}
public StoragePortUpdate(URI network, VirtualArrayAssignmentChanges varrayChanges) {
super(varrayChanges);
this.network = network;
}
/**
* The new network for a storage port update request
*
* @valid example: a valid URI.
*/
@XmlElement(name = "network")
public URI getNetwork() {
return network;
}
public void setNetwork(URI network) {
this.network = network;
}
}