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

package com.azure.resourcemanager.extendedlocation.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.extendedlocation.fluent.models.EnabledResourceTypeInner;
import com.azure.resourcemanager.extendedlocation.models.EnabledResourceType;
import com.azure.resourcemanager.extendedlocation.models.EnabledResourceTypePropertiesTypesMetadataItem;
import java.util.Collections;
import java.util.List;

public final class EnabledResourceTypeImpl implements EnabledResourceType {
    private EnabledResourceTypeInner innerObject;

    private final com.azure.resourcemanager.extendedlocation.CustomLocationsManager serviceManager;

    EnabledResourceTypeImpl(
        EnabledResourceTypeInner innerObject,
        com.azure.resourcemanager.extendedlocation.CustomLocationsManager 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 SystemData systemData() {
        return this.innerModel().systemData();
    }

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

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

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

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

    private com.azure.resourcemanager.extendedlocation.CustomLocationsManager manager() {
        return this.serviceManager;
    }
}
