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

package azure.resourcemanager.resources.implementation;

import azure.resourcemanager.resources.fluent.models.SingletonTrackedResourceInner;
import azure.resourcemanager.resources.models.SingletonTrackedResource;
import azure.resourcemanager.resources.models.SingletonTrackedResourceProperties;
import com.azure.core.management.SystemData;
import java.util.Collections;
import java.util.Map;

public final class SingletonTrackedResourceImpl implements SingletonTrackedResource {
    private SingletonTrackedResourceInner innerObject;

    private final azure.resourcemanager.resources.ResourcesManager serviceManager;

    SingletonTrackedResourceImpl(SingletonTrackedResourceInner innerObject,
        azure.resourcemanager.resources.ResourcesManager 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 location() {
        return this.innerModel().location();
    }

    public Map<String, String> tags() {
        Map<String, String> inner = this.innerModel().tags();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

    public SingletonTrackedResourceProperties properties() {
        return this.innerModel().properties();
    }

    public SystemData systemData() {
        return this.innerModel().systemData();
    }

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

    private azure.resourcemanager.resources.ResourcesManager manager() {
        return this.serviceManager;
    }
}
