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

package com.azure.resourcemanager.devspaces.implementation;

import com.azure.resourcemanager.devspaces.fluent.models.ControllerConnectionDetailsListInner;
import com.azure.resourcemanager.devspaces.models.ControllerConnectionDetails;
import com.azure.resourcemanager.devspaces.models.ControllerConnectionDetailsList;
import java.util.Collections;
import java.util.List;

public final class ControllerConnectionDetailsListImpl implements ControllerConnectionDetailsList {
    private ControllerConnectionDetailsListInner innerObject;

    private final com.azure.resourcemanager.devspaces.DevSpacesManager serviceManager;

    ControllerConnectionDetailsListImpl(
        ControllerConnectionDetailsListInner innerObject,
        com.azure.resourcemanager.devspaces.DevSpacesManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

    private com.azure.resourcemanager.devspaces.DevSpacesManager manager() {
        return this.serviceManager;
    }
}
