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

package com.azure.resourcemanager.workloads.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.workloads.fluent.models.SapLandscapeMonitorInner;
import com.azure.resourcemanager.workloads.models.SapLandscapeMonitor;
import com.azure.resourcemanager.workloads.models.SapLandscapeMonitorMetricThresholds;
import com.azure.resourcemanager.workloads.models.SapLandscapeMonitorPropertiesGrouping;
import com.azure.resourcemanager.workloads.models.SapLandscapeMonitorProvisioningState;
import java.util.Collections;
import java.util.List;

public final class SapLandscapeMonitorImpl implements SapLandscapeMonitor {
    private SapLandscapeMonitorInner innerObject;

    private final com.azure.resourcemanager.workloads.WorkloadsManager serviceManager;

    SapLandscapeMonitorImpl(
        SapLandscapeMonitorInner innerObject, com.azure.resourcemanager.workloads.WorkloadsManager 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 SapLandscapeMonitorProvisioningState provisioningState() {
        return this.innerModel().provisioningState();
    }

    public SapLandscapeMonitorPropertiesGrouping grouping() {
        return this.innerModel().grouping();
    }

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

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

    private com.azure.resourcemanager.workloads.WorkloadsManager manager() {
        return this.serviceManager;
    }
}
