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

com.emc.storageos.model.varray.VirtualArrayRestRep 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.varray;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.emc.storageos.model.DataObjectRestRep;

@XmlRootElement(name = "varray")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class VirtualArrayRestRep extends DataObjectRestRep {
    private BlockSettings blockSettings;
    private ObjectSettings objectSettings;

    public VirtualArrayRestRep() {
    }

    @XmlElement(name = "block_settings")
    public BlockSettings getBlockSettings() {
        return blockSettings;
    }

    public void setBlockSettings(BlockSettings blockSettings) {
        this.blockSettings = blockSettings;
    }

    @XmlElement(name = "object_settings")
    public ObjectSettings getObjectSettings() {
        return objectSettings;
    }

    public void setObjectSettings(ObjectSettings objectSettings) {
        this.objectSettings = objectSettings;
    }

    /**
     * ViPR creates the required zones in the SAN fabric
     * when a request to export a volume is made in this
     * virtualstorage array. This will allow the exported
     * volume to be visible on the specified hosts.
     * 
     * @valid true
     * @valid false
     */
    @XmlElement(name = "auto_san_zoning")
    @Deprecated
    public Boolean getAutoSanZoning() {
        if (blockSettings != null) {
            return blockSettings.getAutoSanZoning();
        } else {
            return null;
        }
    }

    @Deprecated
    public void setAutoSanZoning(Boolean autoSanZoning) {
        if (blockSettings == null) {
            blockSettings = new BlockSettings();
        }
        blockSettings.setAutoSanZoning(autoSanZoning);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy