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

package com.azure.resourcemanager.avs.implementation;

import com.azure.resourcemanager.avs.fluent.models.ScriptCmdletInner;
import com.azure.resourcemanager.avs.models.ScriptCmdlet;
import com.azure.resourcemanager.avs.models.ScriptParameter;
import java.util.Collections;
import java.util.List;

public final class ScriptCmdletImpl implements ScriptCmdlet {
    private ScriptCmdletInner innerObject;

    private final com.azure.resourcemanager.avs.AvsManager serviceManager;

    ScriptCmdletImpl(ScriptCmdletInner innerObject, com.azure.resourcemanager.avs.AvsManager 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 description() {
        return this.innerModel().description();
    }

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

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

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

    private com.azure.resourcemanager.avs.AvsManager manager() {
        return this.serviceManager;
    }
}
