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

package com.azure.resourcemanager.consumption.implementation;

import com.azure.resourcemanager.consumption.fluent.models.TagsResultInner;
import com.azure.resourcemanager.consumption.models.Tag;
import com.azure.resourcemanager.consumption.models.TagsResult;
import java.util.Collections;
import java.util.List;

public final class TagsResultImpl implements TagsResult {
    private TagsResultInner innerObject;

    private final com.azure.resourcemanager.consumption.ConsumptionManager serviceManager;

    TagsResultImpl(
        TagsResultInner innerObject, com.azure.resourcemanager.consumption.ConsumptionManager 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 String etag() {
        return this.innerModel().etag();
    }

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

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

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

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

    private com.azure.resourcemanager.consumption.ConsumptionManager manager() {
        return this.serviceManager;
    }
}
