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

package com.azure.resourcemanager.synapse.implementation;

import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner;
import com.azure.resourcemanager.synapse.models.SkuDescription;
import com.azure.resourcemanager.synapse.models.SkuLocationInfoItem;
import java.util.Collections;
import java.util.List;

public final class SkuDescriptionImpl implements SkuDescription {
    private SkuDescriptionInner innerObject;

    private final com.azure.resourcemanager.synapse.SynapseManager serviceManager;

    SkuDescriptionImpl(
        SkuDescriptionInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

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

    private com.azure.resourcemanager.synapse.SynapseManager manager() {
        return this.serviceManager;
    }
}
