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

package com.azure.resourcemanager.netapp.implementation;

import com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner;
import com.azure.resourcemanager.netapp.models.RegionInfo;
import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem;
import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity;
import java.util.Collections;
import java.util.List;

public final class RegionInfoImpl implements RegionInfo {
    private RegionInfoInner innerObject;

    private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;

    RegionInfoImpl(RegionInfoInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public RegionStorageToNetworkProximity storageToNetworkProximity() {
        return this.innerModel().storageToNetworkProximity();
    }

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

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

    private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
        return this.serviceManager;
    }
}
