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

package com.azure.resourcemanager.machinelearning.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** The AssetContainer model. */
@Fluent
public class AssetContainer extends ResourceBase {
    /*
     * Is the asset archived?
     */
    @JsonProperty(value = "isArchived")
    private Boolean isArchived;

    /*
     * The latest version inside this container.
     */
    @JsonProperty(value = "latestVersion", access = JsonProperty.Access.WRITE_ONLY)
    private String latestVersion;

    /*
     * The next auto incremental version
     */
    @JsonProperty(value = "nextVersion", access = JsonProperty.Access.WRITE_ONLY)
    private String nextVersion;

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

    /**
     * Get the isArchived property: Is the asset archived?.
     *
     * @return the isArchived value.
     */
    public Boolean isArchived() {
        return this.isArchived;
    }

    /**
     * Set the isArchived property: Is the asset archived?.
     *
     * @param isArchived the isArchived value to set.
     * @return the AssetContainer object itself.
     */
    public AssetContainer withIsArchived(Boolean isArchived) {
        this.isArchived = isArchived;
        return this;
    }

    /**
     * Get the latestVersion property: The latest version inside this container.
     *
     * @return the latestVersion value.
     */
    public String latestVersion() {
        return this.latestVersion;
    }

    /**
     * Get the nextVersion property: The next auto incremental version.
     *
     * @return the nextVersion value.
     */
    public String nextVersion() {
        return this.nextVersion;
    }

    /** {@inheritDoc} */
    @Override
    public AssetContainer withDescription(String description) {
        super.withDescription(description);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AssetContainer withProperties(Map<String, String> properties) {
        super.withProperties(properties);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AssetContainer withTags(Map<String, String> tags) {
        super.withTags(tags);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
