package org.ovirt.engine.core.common.action;

import java.util.ArrayList;
import java.util.List;

import org.ovirt.engine.core.common.businessentities.storage.CinderDisk;
import org.ovirt.engine.core.compat.Guid;

public class RemoveCinderDiskParameters extends RemoveImageParameters {

    private CinderDisk removedVolume;
    private List<RemoveCinderDiskVolumeParameters> childCommandsParameters = new ArrayList<>();
    private List<Guid> finishedChildCmdIds = new ArrayList<>();
    private int removedVolumeIndex = 0;
    private Guid vmId;
    private Guid storageDomainId;
    private boolean updateSnapshot;

    public RemoveCinderDiskParameters() {
    }

    public RemoveCinderDiskParameters(Guid diskId) {
        // We use disk id instead of image id.
        super(diskId);
    }

    public CinderDisk getRemovedVolume() {
        return removedVolume;
    }

    public void setRemovedVolume(CinderDisk removedVolume) {
        this.removedVolume = removedVolume;
    }

    public Guid getDiskId() {
        return getImageId();
    }

    public List<RemoveCinderDiskVolumeParameters> getChildCommandsParameters() {
        return childCommandsParameters;
    }

    public void setChildCommandsParameters(List<RemoveCinderDiskVolumeParameters> childCommands) {
        this.childCommandsParameters = childCommands;
    }

    public List<Guid> getFinishedChildCmdIds() {
        return finishedChildCmdIds;
    }

    public void setFinishedChildCmdIds(List<Guid> finishedChildCmdIds) {
        this.finishedChildCmdIds = finishedChildCmdIds;
    }

    public int getRemovedVolumeIndex() {
        return removedVolumeIndex;
    }

    public void setRemovedVolumeIndex(int removedVolumeIndex) {
        this.removedVolumeIndex = removedVolumeIndex;
    }

    public boolean isUpdateSnapshot() {
        return updateSnapshot;
    }

    public void setUpdateSnapshot(boolean updateSnapshot) {
        this.updateSnapshot = updateSnapshot;
    }

    public Guid getVmId() {
        return vmId;
    }

    public void setVmId(Guid vmId) {
        this.vmId = vmId;
    }

    public Guid getStorageDomainId() {
        return storageDomainId;
    }

    public void setStorageDomainId(Guid storageDomainId) {
        this.storageDomainId = storageDomainId;
    }
}

@@ -67,16 +67,45 @@
 ayList;%0A
+import java.util.LinkedList;%0A
 import j
@@ -349,30 +349,38 @@
 lume;%0A    pr
-ivate 
+otected Linked
 List%3CRemoveC
@@ -428,37 +428,38 @@
 arameters = new 
-Array
+Linked
 List%3C%3E();%0A    pr
@@ -1094,24 +1094,30 @@
 %0A    public 
+Linked
 List%3CRemoveC
@@ -1264,16 +1264,22 @@
 ameters(
+Linked
 List%3CRem

Use linked list instead of list.