// 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.Immutable;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.HealthStatus;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PanoramaStatus;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ReadOnlyProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Firewall Status. */
@Immutable
public final class FirewallStatusProperty {
    /*
     * Panorama Managed: Default is False. Default will be CloudSec managed
     */
    @JsonProperty(value = "isPanoramaManaged", access = JsonProperty.Access.WRITE_ONLY)
    private BooleanEnum isPanoramaManaged;

    /*
     * Current status of the Firewall
     */
    @JsonProperty(value = "healthStatus", access = JsonProperty.Access.WRITE_ONLY)
    private HealthStatus healthStatus;

    /*
     * Detail description of current health of the Firewall
     */
    @JsonProperty(value = "healthReason", access = JsonProperty.Access.WRITE_ONLY)
    private String healthReason;

    /*
     * Panorama Status
     */
    @JsonProperty(value = "panoramaStatus", access = JsonProperty.Access.WRITE_ONLY)
    private PanoramaStatus panoramaStatus;

    /*
     * Provisioning state of the resource.
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private ReadOnlyProvisioningState provisioningState;

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

    /**
     * Get the isPanoramaManaged property: Panorama Managed: Default is False. Default will be CloudSec managed.
     *
     * @return the isPanoramaManaged value.
     */
    public BooleanEnum isPanoramaManaged() {
        return this.isPanoramaManaged;
    }

    /**
     * Get the healthStatus property: Current status of the Firewall.
     *
     * @return the healthStatus value.
     */
    public HealthStatus healthStatus() {
        return this.healthStatus;
    }

    /**
     * Get the healthReason property: Detail description of current health of the Firewall.
     *
     * @return the healthReason value.
     */
    public String healthReason() {
        return this.healthReason;
    }

    /**
     * Get the panoramaStatus property: Panorama Status.
     *
     * @return the panoramaStatus value.
     */
    public PanoramaStatus panoramaStatus() {
        return this.panoramaStatus;
    }

    /**
     * Get the provisioningState property: Provisioning state of the resource.
     *
     * @return the provisioningState value.
     */
    public ReadOnlyProvisioningState provisioningState() {
        return this.provisioningState;
    }

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