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

package com.azure.resourcemanager.policyinsights.implementation;

import com.azure.resourcemanager.policyinsights.fluent.models.SummarizeResultsInner;
import com.azure.resourcemanager.policyinsights.models.SummarizeResults;
import com.azure.resourcemanager.policyinsights.models.Summary;
import java.util.Collections;
import java.util.List;

public final class SummarizeResultsImpl implements SummarizeResults {
    private SummarizeResultsInner innerObject;

    private final com.azure.resourcemanager.policyinsights.PolicyInsightsManager serviceManager;

    SummarizeResultsImpl(
        SummarizeResultsInner innerObject,
        com.azure.resourcemanager.policyinsights.PolicyInsightsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

    public Integer odataCount() {
        return this.innerModel().odataCount();
    }

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

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

    private com.azure.resourcemanager.policyinsights.PolicyInsightsManager manager() {
        return this.serviceManager;
    }
}
