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

package com.azure.resourcemanager.customerinsights.models;

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

/** The KPI GroupBy field metadata. */
@Fluent
public final class KpiGroupByMetadata {
    /*
     * The display name.
     */
    @JsonProperty(value = "displayName")
    @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
    private Map<String, String> displayName;

    /*
     * The name of the field.
     */
    @JsonProperty(value = "fieldName")
    private String fieldName;

    /*
     * The type of the field.
     */
    @JsonProperty(value = "fieldType")
    private String fieldType;

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

    /**
     * Get the displayName property: The display name.
     *
     * @return the displayName value.
     */
    public Map<String, String> displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: The display name.
     *
     * @param displayName the displayName value to set.
     * @return the KpiGroupByMetadata object itself.
     */
    public KpiGroupByMetadata withDisplayName(Map<String, String> displayName) {
        this.displayName = displayName;
        return this;
    }

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

    /**
     * Set the fieldName property: The name of the field.
     *
     * @param fieldName the fieldName value to set.
     * @return the KpiGroupByMetadata object itself.
     */
    public KpiGroupByMetadata withFieldName(String fieldName) {
        this.fieldName = fieldName;
        return this;
    }

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

    /**
     * Set the fieldType property: The type of the field.
     *
     * @param fieldType the fieldType value to set.
     * @return the KpiGroupByMetadata object itself.
     */
    public KpiGroupByMetadata withFieldType(String fieldType) {
        this.fieldType = fieldType;
        return this;
    }

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