// 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.SapAvailabilityZoneDetailsResultInner;
import com.azure.resourcemanager.workloads.models.SapAvailabilityZoneDetailsResult;
import com.azure.resourcemanager.workloads.models.SapAvailabilityZonePair;
import java.util.Collections;
import java.util.List;

public final class SapAvailabilityZoneDetailsResultImpl implements SapAvailabilityZoneDetailsResult {
    private SapAvailabilityZoneDetailsResultInner innerObject;

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

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

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

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

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