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

package com.azure.resourcemanager.security.implementation;

import com.azure.resourcemanager.security.fluent.models.IoTSecuritySolutionAnalyticsModelInner;
import com.azure.resourcemanager.security.models.IoTSecurityAlertedDevice;
import com.azure.resourcemanager.security.models.IoTSecurityDeviceAlert;
import com.azure.resourcemanager.security.models.IoTSecurityDeviceRecommendation;
import com.azure.resourcemanager.security.models.IoTSecuritySolutionAnalyticsModel;
import com.azure.resourcemanager.security.models.IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem;
import com.azure.resourcemanager.security.models.IoTSeverityMetrics;
import java.util.Collections;
import java.util.List;

public final class IoTSecuritySolutionAnalyticsModelImpl implements IoTSecuritySolutionAnalyticsModel {
    private IoTSecuritySolutionAnalyticsModelInner innerObject;

    private final com.azure.resourcemanager.security.SecurityManager serviceManager;

    IoTSecuritySolutionAnalyticsModelImpl(
        IoTSecuritySolutionAnalyticsModelInner innerObject,
        com.azure.resourcemanager.security.SecurityManager 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 IoTSeverityMetrics metrics() {
        return this.innerModel().metrics();
    }

    public Long unhealthyDeviceCount() {
        return this.innerModel().unhealthyDeviceCount();
    }

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

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

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

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

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

    private com.azure.resourcemanager.security.SecurityManager manager() {
        return this.serviceManager;
    }
}
