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

package tsptest.armcustomization.implementation;

import com.azure.core.management.SystemData;
import java.util.Collections;
import java.util.Map;
import tsptest.armcustomization.fluent.models.VaultInner;
import tsptest.armcustomization.models.Vault;
import tsptest.armcustomization.models.VaultProperties;

public final class VaultImpl implements Vault {
    private VaultInner innerObject;

    private final tsptest.armcustomization.ArmCustomizationManager serviceManager;

    VaultImpl(VaultInner innerObject, tsptest.armcustomization.ArmCustomizationManager 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 VaultProperties properties() {
        return this.innerModel().properties();
    }

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

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

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

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

    private tsptest.armcustomization.ArmCustomizationManager manager() {
        return this.serviceManager;
    }
}
