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

package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;

/** PAN Rulestack Describe Object. */
@Fluent
public final class GlobalRulestackInfoInner {
    /*
     * rulestack description
     */
    @JsonProperty(value = "azureId", required = true)
    private String azureId;

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

    /**
     * Get the azureId property: rulestack description.
     *
     * @return the azureId value.
     */
    public String azureId() {
        return this.azureId;
    }

    /**
     * Set the azureId property: rulestack description.
     *
     * @param azureId the azureId value to set.
     * @return the GlobalRulestackInfoInner object itself.
     */
    public GlobalRulestackInfoInner withAzureId(String azureId) {
        this.azureId = azureId;
        return this;
    }

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

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