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

com.emc.storageos.model.block.BlockMigrationBulkRep Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2013 EMC Corporation
 * All Rights Reserved
 */
package com.emc.storageos.model.block;

import com.emc.storageos.model.BulkRestRep;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * Response class for bulk requests for block migrations.
 */
@XmlRootElement(name = "bulk_block_migrations")
public class BlockMigrationBulkRep extends BulkRestRep {

    // List of migration responses.
    private List migrations;

    /**
     * Default constructor.
     */
    public BlockMigrationBulkRep() {
    }

    /**
     * Constructor takes the list of migration response instances.
     * 
     * @param list The list of migration response instances.
     */
    public BlockMigrationBulkRep(List migrations) {
        this.migrations = migrations;
    }

    /**
     * The list of migration response instances.
     * 
     * @valid none
     * 
     * @return The list of migration response instances.
     */
    @XmlElement(name = "block_migration")
    public List getMigrations() {
        if (migrations == null) {
            migrations = new ArrayList();
        }
        return migrations;
    }

    /**
     * Setter for the list of migration response instances.
     * 
     * @param list The list of migration response instances.
     */
    public void setMigrations(List list) {
        migrations = list;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy