// 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.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Generate support package post action properties. */
@Fluent
public final class UpdateVersionProperties {
    /*
     * The supported version defined in network device SKU.
     */
    @JsonProperty(value = "skuVersion", required = true)
    private String skuVersion;

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

    /**
     * Get the skuVersion property: The supported version defined in network device SKU.
     *
     * @return the skuVersion value.
     */
    public String skuVersion() {
        return this.skuVersion;
    }

    /**
     * Set the skuVersion property: The supported version defined in network device SKU.
     *
     * @param skuVersion the skuVersion value to set.
     * @return the UpdateVersionProperties object itself.
     */
    public UpdateVersionProperties withSkuVersion(String skuVersion) {
        this.skuVersion = skuVersion;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (skuVersion() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException(
                        "Missing required property skuVersion in model UpdateVersionProperties"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(UpdateVersionProperties.class);
}
