// 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.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Script Package resources available for execution. */
@Immutable
public final class ScriptPackageInner extends ProxyResource {
    /*
     * ScriptPackage resource properties
     */
    @JsonProperty(value = "properties")
    private ScriptPackageProperties innerProperties;

    /** Creates an instance of ScriptPackageInner class. */
    public ScriptPackageInner() {
    }

    /**
     * Get the innerProperties property: ScriptPackage resource properties.
     *
     * @return the innerProperties value.
     */
    private ScriptPackageProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the description property: User friendly description of the package.
     *
     * @return the description value.
     */
    public String description() {
        return this.innerProperties() == null ? null : this.innerProperties().description();
    }

    /**
     * Get the version property: Module version.
     *
     * @return the version value.
     */
    public String version() {
        return this.innerProperties() == null ? null : this.innerProperties().version();
    }

    /**
     * Get the company property: Company that created and supports the package.
     *
     * @return the company value.
     */
    public String company() {
        return this.innerProperties() == null ? null : this.innerProperties().company();
    }

    /**
     * Get the uri property: Link to support by the package vendor.
     *
     * @return the uri value.
     */
    public String uri() {
        return this.innerProperties() == null ? null : this.innerProperties().uri();
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (innerProperties() != null) {
            innerProperties().validate();
        }
    }
}
