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

package com.azure.resourcemanager.workloads.implementation;

import com.azure.resourcemanager.workloads.fluent.models.SapSupportedResourceSkusResultInner;
import com.azure.resourcemanager.workloads.models.SapSupportedResourceSkusResult;
import com.azure.resourcemanager.workloads.models.SapSupportedSku;
import java.util.Collections;
import java.util.List;

public final class SapSupportedResourceSkusResultImpl implements SapSupportedResourceSkusResult {
    private SapSupportedResourceSkusResultInner innerObject;

    private final com.azure.resourcemanager.workloads.WorkloadsManager serviceManager;

    SapSupportedResourceSkusResultImpl(
        SapSupportedResourceSkusResultInner innerObject,
        com.azure.resourcemanager.workloads.WorkloadsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

    private com.azure.resourcemanager.workloads.WorkloadsManager manager() {
        return this.serviceManager;
    }
}
