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

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

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Dynamics AX OData resource dataset properties. */
@Fluent
public final class DynamicsAXResourceDatasetTypeProperties {
    /*
     * The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "path", required = true)
    private Object path;

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

    /**
     * Get the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType
     * string).
     *
     * @return the path value.
     */
    public Object path() {
        return this.path;
    }

    /**
     * Set the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType
     * string).
     *
     * @param path the path value to set.
     * @return the DynamicsAXResourceDatasetTypeProperties object itself.
     */
    public DynamicsAXResourceDatasetTypeProperties withPath(Object path) {
        this.path = path;
        return this;
    }

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

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