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

package com.azure.resourcemanager.security.models;

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

/** Represents a summary of the alerts of the machine group. */
@Fluent
public final class AdaptiveApplicationControlIssueSummary {
    /*
     * An alert that machines within a group can have
     */
    @JsonProperty(value = "issue")
    private AdaptiveApplicationControlIssue issue;

    /*
     * The number of machines in the group that have this alert
     */
    @JsonProperty(value = "numberOfVms")
    private Float numberOfVms;

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

    /**
     * Get the issue property: An alert that machines within a group can have.
     *
     * @return the issue value.
     */
    public AdaptiveApplicationControlIssue issue() {
        return this.issue;
    }

    /**
     * Set the issue property: An alert that machines within a group can have.
     *
     * @param issue the issue value to set.
     * @return the AdaptiveApplicationControlIssueSummary object itself.
     */
    public AdaptiveApplicationControlIssueSummary withIssue(AdaptiveApplicationControlIssue issue) {
        this.issue = issue;
        return this;
    }

    /**
     * Get the numberOfVms property: The number of machines in the group that have this alert.
     *
     * @return the numberOfVms value.
     */
    public Float numberOfVms() {
        return this.numberOfVms;
    }

    /**
     * Set the numberOfVms property: The number of machines in the group that have this alert.
     *
     * @param numberOfVms the numberOfVms value to set.
     * @return the AdaptiveApplicationControlIssueSummary object itself.
     */
    public AdaptiveApplicationControlIssueSummary withNumberOfVms(Float numberOfVms) {
        this.numberOfVms = numberOfVms;
        return this;
    }

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