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

package com.azure.resourcemanager.alertsmanagement.models;

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

/** Aggregated property of each type. */
@Fluent
public final class SmartGroupAggregatedProperty {
    /*
     * Name of the type.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Total number of items of type.
     */
    @JsonProperty(value = "count")
    private Long count;

    /**
     * Get the name property: Name of the type.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Name of the type.
     *
     * @param name the name value to set.
     * @return the SmartGroupAggregatedProperty object itself.
     */
    public SmartGroupAggregatedProperty withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the count property: Total number of items of type.
     *
     * @return the count value.
     */
    public Long count() {
        return this.count;
    }

    /**
     * Set the count property: Total number of items of type.
     *
     * @param count the count value to set.
     * @return the SmartGroupAggregatedProperty object itself.
     */
    public SmartGroupAggregatedProperty withCount(Long count) {
        this.count = count;
        return this;
    }

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