package com.sequenceiq.cloudbreak.cloud.event.resource;

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

import com.sequenceiq.cloudbreak.cloud.context.CloudContext;
import com.sequenceiq.cloudbreak.cloud.model.CloudCredential;
import com.sequenceiq.cloudbreak.cloud.model.CloudResource;
import com.sequenceiq.cloudbreak.cloud.model.CloudStack;

public class TerminateStackRequest<T> extends CloudStackRequest<T> {

    private final List<CloudResource> cloudResources;

    public TerminateStackRequest(CloudContext cloudContext, CloudStack cloudStack, CloudCredential cloudCredential, List<CloudResource> resources) {
        super(cloudContext, cloudCredential, cloudStack);
        cloudResources = new ArrayList<>(resources);
    }

    public List<CloudResource> getCloudResources() {
        return cloudResources;
    }

    //BEGIN GENERATED CODE
    @Override
    public String toString() {
        return getClass().getSimpleName() + "{, cloudResources=" + cloudResources + '}';
    }
    //END GENERATED CODE

}
