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

package com.azure.resourcemanager.apimanagement.implementation;

import com.azure.resourcemanager.apimanagement.fluent.models.OutboundEnvironmentEndpointListInner;
import com.azure.resourcemanager.apimanagement.models.OutboundEnvironmentEndpoint;
import com.azure.resourcemanager.apimanagement.models.OutboundEnvironmentEndpointList;
import java.util.Collections;
import java.util.List;

public final class OutboundEnvironmentEndpointListImpl implements OutboundEnvironmentEndpointList {
    private OutboundEnvironmentEndpointListInner innerObject;

    private final com.azure.resourcemanager.apimanagement.ApiManagementManager serviceManager;

    OutboundEnvironmentEndpointListImpl(
        OutboundEnvironmentEndpointListInner innerObject,
        com.azure.resourcemanager.apimanagement.ApiManagementManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

    public String nextLink() {
        return this.innerModel().nextLink();
    }

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

    private com.azure.resourcemanager.apimanagement.ApiManagementManager manager() {
        return this.serviceManager;
    }
}
