// 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.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationDetailedStatus;
import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

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

    /*
     * The more detailed status of the metrics configuration.
     */
    @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY)
    private ClusterMetricsConfigurationDetailedStatus detailedStatus;

    /*
     * The descriptive message about the current detailed status.
     */
    @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY)
    private String detailedStatusMessage;

    /*
     * The list of metrics that are available for the cluster but disabled at the moment.
     */
    @JsonProperty(value = "disabledMetrics", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> disabledMetrics;

    /*
     * 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;

    /*
     * The provisioning state of the metrics configuration.
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private ClusterMetricsConfigurationProvisioningState provisioningState;

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

    /**
     * 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 ClusterMetricsConfigurationProperties object itself.
     */
    public ClusterMetricsConfigurationProperties withCollectionInterval(long collectionInterval) {
        this.collectionInterval = collectionInterval;
        return this;
    }

    /**
     * Get the detailedStatus property: The more detailed status of the metrics configuration.
     *
     * @return the detailedStatus value.
     */
    public ClusterMetricsConfigurationDetailedStatus detailedStatus() {
        return this.detailedStatus;
    }

    /**
     * Get the detailedStatusMessage property: The descriptive message about the current detailed status.
     *
     * @return the detailedStatusMessage value.
     */
    public String detailedStatusMessage() {
        return this.detailedStatusMessage;
    }

    /**
     * Get the disabledMetrics property: The list of metrics that are available for the cluster but disabled at the
     * moment.
     *
     * @return the disabledMetrics value.
     */
    public List<String> disabledMetrics() {
        return this.disabledMetrics;
    }

    /**
     * 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 ClusterMetricsConfigurationProperties object itself.
     */
    public ClusterMetricsConfigurationProperties withEnabledMetrics(List<String> enabledMetrics) {
        this.enabledMetrics = enabledMetrics;
        return this;
    }

    /**
     * Get the provisioningState property: The provisioning state of the metrics configuration.
     *
     * @return the provisioningState value.
     */
    public ClusterMetricsConfigurationProvisioningState provisioningState() {
        return this.provisioningState;
    }

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