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

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

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * ClusterMetricsConfigurationPatchProperties represents the properties of metrics configuration for the cluster for
 * patching.
 */
@Fluent
public final class ClusterMetricsConfigurationPatchProperties {
    /*
     * The interval in minutes by which metrics will be collected.
     */
    @JsonProperty(value = "collectionInterval")
    private Long collectionInterval;

    /*
     * The list of metric names that have been chosen to be enabled in addition to the core set of enabled metrics.
     */
    @JsonProperty(value = "enabledMetrics")
    private List<String> enabledMetrics;

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

    /**
     * Get the collectionInterval property: The interval in minutes by which metrics will be collected.
     *
     * @return the collectionInterval value.
     */
    public Long collectionInterval() {
        return this.collectionInterval;
    }

    /**
     * Set the collectionInterval property: The interval in minutes by which metrics will be collected.
     *
     * @param collectionInterval the collectionInterval value to set.
     * @return the ClusterMetricsConfigurationPatchProperties object itself.
     */
    public ClusterMetricsConfigurationPatchProperties withCollectionInterval(Long collectionInterval) {
        this.collectionInterval = collectionInterval;
        return this;
    }

    /**
     * Get the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the
     * core set of enabled metrics.
     *
     * @return the enabledMetrics value.
     */
    public List<String> enabledMetrics() {
        return this.enabledMetrics;
    }

    /**
     * Set the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the
     * core set of enabled metrics.
     *
     * @param enabledMetrics the enabledMetrics value to set.
     * @return the ClusterMetricsConfigurationPatchProperties object itself.
     */
    public ClusterMetricsConfigurationPatchProperties withEnabledMetrics(List<String> enabledMetrics) {
        this.enabledMetrics = enabledMetrics;
        return this;
    }

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