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

package com.azure.resourcemanager.resourceconnector.models;

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

/** The SupportedVersionCatalogVersion object for appliance. */
@Immutable
public final class SupportedVersionCatalogVersion {
    /*
     * The newer supported version catalog version data.
     */
    @JsonProperty(value = "data", access = JsonProperty.Access.WRITE_ONLY)
    private SupportedVersionCatalogVersionData data;

    /*
     * The catalog version name for the version available for upgrade.
     */
    @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
    private String name;

    /*
     * The catalog version namespace for the version available for upgrade.
     */
    @JsonProperty(value = "namespace", access = JsonProperty.Access.WRITE_ONLY)
    private String namespace;

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

    /**
     * Get the data property: The newer supported version catalog version data.
     *
     * @return the data value.
     */
    public SupportedVersionCatalogVersionData data() {
        return this.data;
    }

    /**
     * Get the name property: The catalog version name for the version available for upgrade.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Get the namespace property: The catalog version namespace for the version available for upgrade.
     *
     * @return the namespace value.
     */
    public String namespace() {
        return this.namespace;
    }

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