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

package com.azure.resourcemanager.peering.implementation;

import com.azure.resourcemanager.peering.fluent.models.PeeringServiceProviderInner;
import com.azure.resourcemanager.peering.models.PeeringServiceProvider;
import java.util.Collections;
import java.util.List;

public final class PeeringServiceProviderImpl implements PeeringServiceProvider {
    private PeeringServiceProviderInner innerObject;

    private final com.azure.resourcemanager.peering.PeeringManager serviceManager;

    PeeringServiceProviderImpl(
        PeeringServiceProviderInner innerObject, com.azure.resourcemanager.peering.PeeringManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

    private com.azure.resourcemanager.peering.PeeringManager manager() {
        return this.serviceManager;
    }
}
