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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** Network device supported version properties. */
@Fluent
public final class SupportedVersionProperties {
    /*
     * Operating system and firmware combined versions.
     */
    @JsonProperty(value = "version")
    private String version;

    /*
     * Operating system version.
     */
    @JsonProperty(value = "vendorOsVersion")
    private String vendorOsVersion;

    /*
     * Firmware version.
     */
    @JsonProperty(value = "vendorFirmwareVersion")
    private String vendorFirmwareVersion;

    /*
     * If the current version is in use.
     */
    @JsonProperty(value = "isCurrent")
    private IsCurrentVersion isCurrent;

    /*
     * If the current version is a test version.
     */
    @JsonProperty(value = "isTest")
    private IsTestVersion isTest;

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

    /**
     * Get the version property: Operating system and firmware combined versions.
     *
     * @return the version value.
     */
    public String version() {
        return this.version;
    }

    /**
     * Set the version property: Operating system and firmware combined versions.
     *
     * @param version the version value to set.
     * @return the SupportedVersionProperties object itself.
     */
    public SupportedVersionProperties withVersion(String version) {
        this.version = version;
        return this;
    }

    /**
     * Get the vendorOsVersion property: Operating system version.
     *
     * @return the vendorOsVersion value.
     */
    public String vendorOsVersion() {
        return this.vendorOsVersion;
    }

    /**
     * Set the vendorOsVersion property: Operating system version.
     *
     * @param vendorOsVersion the vendorOsVersion value to set.
     * @return the SupportedVersionProperties object itself.
     */
    public SupportedVersionProperties withVendorOsVersion(String vendorOsVersion) {
        this.vendorOsVersion = vendorOsVersion;
        return this;
    }

    /**
     * Get the vendorFirmwareVersion property: Firmware version.
     *
     * @return the vendorFirmwareVersion value.
     */
    public String vendorFirmwareVersion() {
        return this.vendorFirmwareVersion;
    }

    /**
     * Set the vendorFirmwareVersion property: Firmware version.
     *
     * @param vendorFirmwareVersion the vendorFirmwareVersion value to set.
     * @return the SupportedVersionProperties object itself.
     */
    public SupportedVersionProperties withVendorFirmwareVersion(String vendorFirmwareVersion) {
        this.vendorFirmwareVersion = vendorFirmwareVersion;
        return this;
    }

    /**
     * Get the isCurrent property: If the current version is in use.
     *
     * @return the isCurrent value.
     */
    public IsCurrentVersion isCurrent() {
        return this.isCurrent;
    }

    /**
     * Set the isCurrent property: If the current version is in use.
     *
     * @param isCurrent the isCurrent value to set.
     * @return the SupportedVersionProperties object itself.
     */
    public SupportedVersionProperties withIsCurrent(IsCurrentVersion isCurrent) {
        this.isCurrent = isCurrent;
        return this;
    }

    /**
     * Get the isTest property: If the current version is a test version.
     *
     * @return the isTest value.
     */
    public IsTestVersion isTest() {
        return this.isTest;
    }

    /**
     * Set the isTest property: If the current version is a test version.
     *
     * @param isTest the isTest value to set.
     * @return the SupportedVersionProperties object itself.
     */
    public SupportedVersionProperties withIsTest(IsTestVersion isTest) {
        this.isTest = isTest;
        return this;
    }

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