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

package com.azure.resourcemanager.appservice.fluent.models;

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

/** ResourceHealthMetadata resource specific properties. */
@Fluent
public final class ResourceHealthMetadataProperties {
    /*
     * The category that the resource matches in the RHC Policy File
     */
    @JsonProperty(value = "category")
    private String category;

    /*
     * Is there a health signal for the resource
     */
    @JsonProperty(value = "signalAvailability")
    private Boolean signalAvailability;

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

    /**
     * Get the category property: The category that the resource matches in the RHC Policy File.
     *
     * @return the category value.
     */
    public String category() {
        return this.category;
    }

    /**
     * Set the category property: The category that the resource matches in the RHC Policy File.
     *
     * @param category the category value to set.
     * @return the ResourceHealthMetadataProperties object itself.
     */
    public ResourceHealthMetadataProperties withCategory(String category) {
        this.category = category;
        return this;
    }

    /**
     * Get the signalAvailability property: Is there a health signal for the resource.
     *
     * @return the signalAvailability value.
     */
    public Boolean signalAvailability() {
        return this.signalAvailability;
    }

    /**
     * Set the signalAvailability property: Is there a health signal for the resource.
     *
     * @param signalAvailability the signalAvailability value to set.
     * @return the ResourceHealthMetadataProperties object itself.
     */
    public ResourceHealthMetadataProperties withSignalAvailability(Boolean signalAvailability) {
        this.signalAvailability = signalAvailability;
        return this;
    }

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