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

package com.azure.resourcemanager.securityinsights.implementation;

import com.azure.resourcemanager.securityinsights.fluent.models.ThreatIntelligenceMetricsListInner;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceMetrics;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceMetricsList;
import java.util.Collections;
import java.util.List;

public final class ThreatIntelligenceMetricsListImpl implements ThreatIntelligenceMetricsList {
    private ThreatIntelligenceMetricsListInner innerObject;

    private final com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager;

    ThreatIntelligenceMetricsListImpl(
        ThreatIntelligenceMetricsListInner innerObject,
        com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

    private com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager() {
        return this.serviceManager;
    }
}
