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

package com.azure.resourcemanager.cognitiveservices.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountModelInner;
import com.azure.resourcemanager.cognitiveservices.models.AccountModel;
import com.azure.resourcemanager.cognitiveservices.models.CallRateLimit;
import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel;
import com.azure.resourcemanager.cognitiveservices.models.ModelDeprecationInfo;
import com.azure.resourcemanager.cognitiveservices.models.ModelLifecycleStatus;
import java.util.Collections;
import java.util.Map;

public final class AccountModelImpl implements AccountModel {
    private AccountModelInner innerObject;

    private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager;

    AccountModelImpl(
        AccountModelInner innerObject,
        com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

    public CallRateLimit callRateLimit() {
        return this.innerModel().callRateLimit();
    }

    public DeploymentModel baseModel() {
        return this.innerModel().baseModel();
    }

    public Integer maxCapacity() {
        return this.innerModel().maxCapacity();
    }

    public Map<String, String> capabilities() {
        Map<String, String> inner = this.innerModel().capabilities();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

    public Map<String, String> finetuneCapabilities() {
        Map<String, String> inner = this.innerModel().finetuneCapabilities();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

    public ModelDeprecationInfo deprecation() {
        return this.innerModel().deprecation();
    }

    public ModelLifecycleStatus lifecycleStatus() {
        return this.innerModel().lifecycleStatus();
    }

    public SystemData systemData() {
        return this.innerModel().systemData();
    }

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

    private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() {
        return this.serviceManager;
    }
}
