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

package com.azure.resourcemanager.databox.implementation;

import com.azure.resourcemanager.databox.fluent.models.SkuInformationInner;
import com.azure.resourcemanager.databox.models.DataLocationToServiceLocationMap;
import com.azure.resourcemanager.databox.models.Sku;
import com.azure.resourcemanager.databox.models.SkuCapacity;
import com.azure.resourcemanager.databox.models.SkuCost;
import com.azure.resourcemanager.databox.models.SkuDisabledReason;
import com.azure.resourcemanager.databox.models.SkuInformation;
import java.util.Collections;
import java.util.List;

public final class SkuInformationImpl implements SkuInformation {
    private SkuInformationInner innerObject;

    private final com.azure.resourcemanager.databox.DataBoxManager serviceManager;

    SkuInformationImpl(
        SkuInformationInner innerObject, com.azure.resourcemanager.databox.DataBoxManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public Sku sku() {
        return this.innerModel().sku();
    }

    public Boolean enabled() {
        return this.innerModel().enabled();
    }

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

    public SkuCapacity capacity() {
        return this.innerModel().capacity();
    }

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

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

    public SkuDisabledReason disabledReason() {
        return this.innerModel().disabledReason();
    }

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

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

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

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

    private com.azure.resourcemanager.databox.DataBoxManager manager() {
        return this.serviceManager;
    }
}
