package com.sequenceiq.freeipa.api.v1.freeipa.stack.model.create;

import java.util.HashSet;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import io.swagger.annotations.ApiModel;

@ApiModel("FreeIpaRecommendationV1Response")
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FreeIpaRecommendationResponse {

    private Set<VmTypeResponse> vmTypes = new HashSet<>();

    private String defaultInstanceType;

    public FreeIpaRecommendationResponse() {
    }

    public FreeIpaRecommendationResponse(Set<VmTypeResponse> vmTypes, String defaultInstanceType) {
        this.vmTypes = vmTypes;
        this.defaultInstanceType = defaultInstanceType;
    }

    public Set<VmTypeResponse> getVmTypes() {
        return vmTypes;
    }

    public void setVmTypes(Set<VmTypeResponse> vmTypes) {
        this.vmTypes = vmTypes;
    }

    public String getDefaultInstanceType() {
        return defaultInstanceType;
    }

    public void setDefaultInstanceType(String defaultInstanceType) {
        this.defaultInstanceType = defaultInstanceType;
    }

    @Override
    public String toString() {
        return "FreeIpaRecommendationResponse{" +
                "vmTypes=" + vmTypes +
                ", defaultInstanceType='" + defaultInstanceType + '\'' +
                '}';
    }
}
