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

package com.azure.resourcemanager.avs.implementation;

import com.azure.resourcemanager.avs.fluent.models.ClusterZoneListInner;
import com.azure.resourcemanager.avs.models.ClusterZone;
import com.azure.resourcemanager.avs.models.ClusterZoneList;
import java.util.Collections;
import java.util.List;

public final class ClusterZoneListImpl implements ClusterZoneList {
    private ClusterZoneListInner innerObject;

    private final com.azure.resourcemanager.avs.AvsManager serviceManager;

    ClusterZoneListImpl(ClusterZoneListInner innerObject, com.azure.resourcemanager.avs.AvsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

    private com.azure.resourcemanager.avs.AvsManager manager() {
        return this.serviceManager;
    }
}
