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

package tsptest.armresourceprovider.implementation;

import com.azure.core.management.SystemData;
import java.util.Collections;
import java.util.Map;
import tsptest.armresourceprovider.fluent.models.ManagedMaintenanceWindowStatusInner;
import tsptest.armresourceprovider.models.ManagedMaintenanceWindowStatus;

public final class ManagedMaintenanceWindowStatusImpl implements ManagedMaintenanceWindowStatus {
    private ManagedMaintenanceWindowStatusInner innerObject;

    private final tsptest.armresourceprovider.ArmResourceProviderManager serviceManager;

    ManagedMaintenanceWindowStatusImpl(ManagedMaintenanceWindowStatusInner innerObject,
        tsptest.armresourceprovider.ArmResourceProviderManager 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 SystemData systemData() {
        return this.innerModel().systemData();
    }

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

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

    private tsptest.armresourceprovider.ArmResourceProviderManager manager() {
        return this.serviceManager;
    }
}
