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

package com.azure.resourcemanager.edgeorder.implementation;

import com.azure.resourcemanager.edgeorder.fluent.models.ConfigurationInner;
import com.azure.resourcemanager.edgeorder.models.AvailabilityInformation;
import com.azure.resourcemanager.edgeorder.models.Configuration;
import com.azure.resourcemanager.edgeorder.models.CostInformation;
import com.azure.resourcemanager.edgeorder.models.Description;
import com.azure.resourcemanager.edgeorder.models.Dimensions;
import com.azure.resourcemanager.edgeorder.models.FilterableProperty;
import com.azure.resourcemanager.edgeorder.models.HierarchyInformation;
import com.azure.resourcemanager.edgeorder.models.ImageInformation;
import com.azure.resourcemanager.edgeorder.models.Specification;
import java.util.Collections;
import java.util.List;

public final class ConfigurationImpl implements Configuration {
    private ConfigurationInner innerObject;

    private final com.azure.resourcemanager.edgeorder.EdgeOrderManager serviceManager;

    ConfigurationImpl(
        ConfigurationInner innerObject, com.azure.resourcemanager.edgeorder.EdgeOrderManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

    public Dimensions dimensions() {
        return this.innerModel().dimensions();
    }

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

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

    public Description description() {
        return this.innerModel().description();
    }

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

    public CostInformation costInformation() {
        return this.innerModel().costInformation();
    }

    public AvailabilityInformation availabilityInformation() {
        return this.innerModel().availabilityInformation();
    }

    public HierarchyInformation hierarchyInformation() {
        return this.innerModel().hierarchyInformation();
    }

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

    private com.azure.resourcemanager.edgeorder.EdgeOrderManager manager() {
        return this.serviceManager;
    }
}
