// 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.SapDiskConfigurationsResultInner;
import com.azure.resourcemanager.workloads.models.SapDiskConfiguration;
import com.azure.resourcemanager.workloads.models.SapDiskConfigurationsResult;
import java.util.Collections;
import java.util.Map;

public final class SapDiskConfigurationsResultImpl implements SapDiskConfigurationsResult {
    private SapDiskConfigurationsResultInner innerObject;

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

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

    public Map<String, SapDiskConfiguration> volumeConfigurations() {
        Map<String, SapDiskConfiguration> inner = this.innerModel().volumeConfigurations();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

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

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