// 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.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The KPI participant profile metadata. */
@Fluent
public final class KpiParticipantProfilesMetadata {
    /*
     * Name of the type.
     */
    @JsonProperty(value = "typeName", required = true)
    private String typeName;

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

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

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

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (typeName() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException(
                        "Missing required property typeName in model KpiParticipantProfilesMetadata"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(KpiParticipantProfilesMetadata.class);
}
