// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appcomplianceautomation.implementation;

import com.azure.resourcemanager.appcomplianceautomation.fluent.models.DownloadResponseInner;
import com.azure.resourcemanager.appcomplianceautomation.models.ComplianceReportItem;
import com.azure.resourcemanager.appcomplianceautomation.models.DownloadResponse;
import com.azure.resourcemanager.appcomplianceautomation.models.DownloadResponseComplianceDetailedPdfReport;
import com.azure.resourcemanager.appcomplianceautomation.models.DownloadResponseCompliancePdfReport;
import com.azure.resourcemanager.appcomplianceautomation.models.ResourceItem;
import java.util.Collections;
import java.util.List;

public final class DownloadResponseImpl implements DownloadResponse {
    private DownloadResponseInner innerObject;

    private final com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager serviceManager;

    DownloadResponseImpl(
        DownloadResponseInner innerObject,
        com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public List<ResourceItem> resourceList() {
        List<ResourceItem> inner = this.innerModel().resourceList();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public List<ComplianceReportItem> complianceReport() {
        List<ComplianceReportItem> inner = this.innerModel().complianceReport();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public DownloadResponseCompliancePdfReport compliancePdfReport() {
        return this.innerModel().compliancePdfReport();
    }

    public DownloadResponseComplianceDetailedPdfReport complianceDetailedPdfReport() {
        return this.innerModel().complianceDetailedPdfReport();
    }

    public DownloadResponseInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager() {
        return this.serviceManager;
    }
}
