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

package com.azure.resourcemanager.eventgrid.implementation;

import com.azure.resourcemanager.eventgrid.fluent.models.DeliveryAttributeListResultInner;
import com.azure.resourcemanager.eventgrid.models.DeliveryAttributeListResult;
import com.azure.resourcemanager.eventgrid.models.DeliveryAttributeMapping;
import java.util.Collections;
import java.util.List;

public final class DeliveryAttributeListResultImpl implements DeliveryAttributeListResult {
    private DeliveryAttributeListResultInner innerObject;

    private final com.azure.resourcemanager.eventgrid.EventGridManager serviceManager;

    DeliveryAttributeListResultImpl(
        DeliveryAttributeListResultInner innerObject,
        com.azure.resourcemanager.eventgrid.EventGridManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

    private com.azure.resourcemanager.eventgrid.EventGridManager manager() {
        return this.serviceManager;
    }
}
