// 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.implementation;

import com.azure.resourcemanager.customerinsights.fluent.models.KpiDefinitionInner;
import com.azure.resourcemanager.customerinsights.models.CalculationWindowTypes;
import com.azure.resourcemanager.customerinsights.models.EntityTypes;
import com.azure.resourcemanager.customerinsights.models.KpiAlias;
import com.azure.resourcemanager.customerinsights.models.KpiDefinition;
import com.azure.resourcemanager.customerinsights.models.KpiExtract;
import com.azure.resourcemanager.customerinsights.models.KpiFunctions;
import com.azure.resourcemanager.customerinsights.models.KpiGroupByMetadata;
import com.azure.resourcemanager.customerinsights.models.KpiParticipantProfilesMetadata;
import com.azure.resourcemanager.customerinsights.models.KpiThresholds;
import com.azure.resourcemanager.customerinsights.models.ProvisioningStates;
import java.util.Collections;
import java.util.List;
import java.util.Map;

public final class KpiDefinitionImpl implements KpiDefinition {
    private KpiDefinitionInner innerObject;

    private final com.azure.resourcemanager.customerinsights.CustomerInsightsManager serviceManager;

    KpiDefinitionImpl(
        KpiDefinitionInner innerObject,
        com.azure.resourcemanager.customerinsights.CustomerInsightsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public EntityTypes entityType() {
        return this.innerModel().entityType();
    }

    public String entityTypeName() {
        return this.innerModel().entityTypeName();
    }

    public String tenantId() {
        return this.innerModel().tenantId();
    }

    public String kpiName() {
        return this.innerModel().kpiName();
    }

    public Map<String, String> displayName() {
        Map<String, String> inner = this.innerModel().displayName();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

    public Map<String, String> description() {
        Map<String, String> inner = this.innerModel().description();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

    public CalculationWindowTypes calculationWindow() {
        return this.innerModel().calculationWindow();
    }

    public String calculationWindowFieldName() {
        return this.innerModel().calculationWindowFieldName();
    }

    public KpiFunctions function() {
        return this.innerModel().function();
    }

    public String expression() {
        return this.innerModel().expression();
    }

    public String unit() {
        return this.innerModel().unit();
    }

    public String filter() {
        return this.innerModel().filter();
    }

    public List<String> groupBy() {
        List<String> inner = this.innerModel().groupBy();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public List<KpiGroupByMetadata> groupByMetadata() {
        List<KpiGroupByMetadata> inner = this.innerModel().groupByMetadata();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public List<KpiParticipantProfilesMetadata> participantProfilesMetadata() {
        List<KpiParticipantProfilesMetadata> inner = this.innerModel().participantProfilesMetadata();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public ProvisioningStates provisioningState() {
        return this.innerModel().provisioningState();
    }

    public KpiThresholds thresHolds() {
        return this.innerModel().thresHolds();
    }

    public List<KpiAlias> aliases() {
        List<KpiAlias> inner = this.innerModel().aliases();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public List<KpiExtract> extracts() {
        List<KpiExtract> inner = this.innerModel().extracts();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public KpiDefinitionInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.customerinsights.CustomerInsightsManager manager() {
        return this.serviceManager;
    }
}
