com.emc.storageos.model.varray.VirtualArrayResourceRestRep Maven / Gradle / Ivy
/*
* Copyright (c) 2013 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.varray;
import java.util.LinkedHashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import com.emc.storageos.model.DiscoveredDataObjectRestRep;
@XmlAccessorType(XmlAccessType.PROPERTY)
public class VirtualArrayResourceRestRep extends DiscoveredDataObjectRestRep {
private Set assignedVirtualArrays;
private Set connectedVirtualArrays;
private Set taggedVirtualArrays;
public VirtualArrayResourceRestRep() {
}
/**
* The virtual arrays to which this resource has been explicitly
* assigned by a user.
*
* @valid none
*/
@XmlElement(name = "assigned_varrays")
public Set getAssignedVirtualArrays() {
if (assignedVirtualArrays == null) {
assignedVirtualArrays = new LinkedHashSet();
}
return assignedVirtualArrays;
}
public void setAssignedVirtualArrays(Set assignedVirtualArrays) {
this.assignedVirtualArrays = assignedVirtualArrays;
}
/**
* The virtual arrays that are associated with this resource due to network
* connectivity. For example, a storage port would be connected to a virtual
* array if the port is in a network assigned to the virtual array. Similarly,
* the storage pools on that storage port's storage system would also be
* connected to the virtual array.
*
* @valid none
*/
@XmlElement(name = "connected_varrays")
public Set getConnectedVirtualArrays() {
if (connectedVirtualArrays == null) {
connectedVirtualArrays = new LinkedHashSet();
}
return connectedVirtualArrays;
}
public void setConnectedVirtualArrays(Set connectedVirtualArrays) {
this.connectedVirtualArrays = connectedVirtualArrays;
}
/**
* The virtual arrays that are associated with this resource for the purpose
* of searching for resources that are associated with a virtual array. If a
* resource is explicitly assigned to one or more virtual arrays, those
* virtual arrays are the tagged virtual arrays. If there are no explicit
* assignments for the resource, all of the connected virtual arrays are the
* tagged virtual arrays.
*
* @valid none
*/
@XmlElement(name = "tagged_varrays")
public Set getTaggedVirtualArrays() {
if (taggedVirtualArrays == null) {
taggedVirtualArrays = new LinkedHashSet();
}
return taggedVirtualArrays;
}
public void setTaggedVirtualArrays(Set taggedVirtualArrays) {
this.taggedVirtualArrays = taggedVirtualArrays;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy